Put an employee behind your website chat
Approve customer sources, test the website policy and connect through your company backend.
Open the employee's Customer channels, then Website and API on web or desktop. An office owner or administrator prepares the integration. Your Office must support this integration before you can activate it.
Prepare and test
Choose the project and the staging or production environment. Write the rules this integration may use and select the exact document versions approved for customers. The employee's ordinary document access does not publish those documents.
Use Refresh status to retry an integration or source read.
Save the revision. Practice answer uses the website’s answering engine with its own history. Test staging with two visitors runs two separate visitor scenarios, including an attempt to claim Office authority. Practice and staging consume the shared balance. They issue no live key and do not activate the integration.
Review the answers before selecting Activate this revision. Saving changed rules, sources, project or environment creates a draft that needs staging checks and activation again. A changed document version, revoked source access or ended approval authority blocks use of stale material. Pause answers stops new website admission while retaining request receipts.
Customer replies use approved text material. It has no employee private memory, private identity documents, skills, MCP tools, Office history or native learning. It cannot delegate jobs or take external actions. These limits apply to customer replies; Office work stays separate.
Install through your backend
The route is website chat → company backend → Faena.team. Create a named backend key and save the secret when it appears. Faena.team cannot show it again. Keep it in your backend secret store, outside browser code, localStorage, URLs and logs.
New and rotated keys start with a zero monthly limit. An authorized Organization person sets the limit on the Organization website. Setting a budget does not activate or test the integration.
Open Backend installation and example for the exact public base URL, employee model and supported routes. The example uses an opaque Secure, HttpOnly, SameSite cookie for an anonymous application session. Your backend owns the mapping from that cookie to a Faena customer session. Your backend must also enforce any login binding policy and must never accept a browser-selected Faena session, employee, Office or role.
The v1 wire accepts one new user string message per Chat Completions call, with stream true or false and the endpoint's exact model. Client-supplied history, other roles, tools, multimodal content and authority fields are refused. Faena.team stores visitor history in the Office. Sessions expire after 30 days and accept at most 40 requests; one unresolved request holds later turns in that session.
The backend registers a session with POST /v1/customer-sessions, a backend-owned visitorReference and an Idempotency-Key. Chat calls require X-Faena-Customer-Session and Idempotency-Key. Session reads and request reconciliation use only the routes shown in the example. Opaque IDs must be URL encoded. These headers and routes are a Faena.team extension to the OpenAI SDK. Responses and native runs are unavailable to these keys.
Recover the same request
Save the operation ID before calling Faena.team. Disable automatic SDK retries. A timeout or disconnected stream may leave work running; read the same operation with GET /v1/customer-sessions/:sessionId/requests/:operationId first. The response reports admitted, running, completed, failed-before-dispatch or outcome-unknown. A completed receipt includes the reply. Repeating the same operation and content joins that receipt. Changed content conflicts. When the receipt confirms failed-before-dispatch, resolve the reported capacity or budget issue, then send the same operation and content again while it remains the session’s latest request. An admission interrupted before execution can become failed-before-dispatch after 30 seconds. Read its receipt before retrying. An unknown outcome does not allow a new paid run or automatic stream resumption.
Rotation ends the old secret and creates a zero-limit key in the same authorized family. The successor can reconcile that family's existing sessions and receipts before receiving a new paid limit. A separately created key has a different family and cannot inherit them.
Revocation is permanent. Revoked secrets and removed issuers cannot admit or read customer work; Faena.team stops further stream delivery when it detects revocation. Already dispatched model work and emitted answers cannot be undone. Refresh the confirmed status before taking another action.
Other office keys also count as outside the office. On Chat Completions they get one answer from the documents chosen for that employee, with no tools and no office work. Documents are given to an employee only with Give them documents, in the phone setup, or by saving a website integration that uses them; there is no place to choose them for a key. Until some are given, the answer uses no documents. These keys have no visitor sessions, so do not use them for the visitor integration described here.