Embeddable ChatKit + Orcheo Backend

This page shows a minimal wiring between the OpenAI ChatKit web component and the new Orcheo backend endpoints (/api/chatkit/session and /api/chatkit/workflows/:id/trigger). Configure your backend URL and workflow identifier in the script block below, then open the ChatKit widget to dispatch workflow runs straight from the embedded UI.

Generate or copy a ChatKit client secret and expose it to the backend by setting CHATKIT_CLIENT_SECRET (or CHATKIT_CLIENT_SECRET_<WORKFLOW_ID>) in the API environment. The session endpoint will hand that token to the widget and the client-tool callback invokes the workflow trigger endpoint.