OpenAI has scheduled Agent Builder to shut down on November 30, 2026. ChatKit itself is staying. If your site’s chat window connects to a workflow hosted in Agent Builder, the part you need to replace is what runs behind the chat, not necessarily what visitors see. Start by checking the server that creates your chat sessions.
Find out which ChatKit setup you have
Open the server-side code that supplies the chat frontend with a session token. If it calls POST /v1/chatkit/sessions with a workflow.id from Agent Builder, or does the same through an SDK, that deployed chat depends on the hosted workflow. Record the workflow ID and, if your app pins one, the version. Find every environment that uses it; production and staging may not point to the same workflow.
A ChatKit React import or script tag alone doesn’t tell you which setup you have. If the component already calls your own server implementing the ChatKit protocol, follow that route to see what actually runs the agent. A custom server that doesn’t depend on Agent Builder isn’t affected by this retirement.
Export the workflow while you can still open it
- Open the existing workflow in Agent Builder. Select Code, then Agents SDK, and copy the complete export for Python or TypeScript.
- Save a separate record of the behavior the code has to preserve: inputs, branches, required tools, approvals, and what happens when a step fails. Put actual credentials in your normal secret store, not in the export.
- Run the implementation in a staging environment. For a website, connect the ChatKit frontend to a custom ChatKit server that calls your agent. Follow the integration guide for the client configuration and server protocol; swapping the workflow ID alone is not the migration.
OpenAI’s migration guide warns that the export does not convert the workflow graph or guarantee identical behavior. Treat it as starting code. Plan separately for whether users can keep their previous conversations: a code export is not a transfer of existing sessions or thread history.
Four checks before you switch traffic
| Try in staging | What should happen |
|---|---|
| A normal request | The expected branch runs and its result appears in the chat. |
| A missing input or failed tool | The agent asks for what it needs or fails clearly, without taking the wrong action. |
| A follow-up in the same thread | The agent retains the context it should and doesn’t duplicate an earlier action. |
| A second signed-in test user | Their chat opens without the first user’s messages or attachments. |
Use server-side authentication and enforce ownership when reading or writing threads. If your workflow uses approvals or attachments, test those too. Keep the old frontend configuration available only while it still works during the transition; after the shutdown date, don’t count on the hosted workflow as your rollback plan.
What if the agent is just for your team?
For internal use, OpenAI lists ChatGPT Workspace Agents as a separate path for eligible Business, Enterprise and Edu workspaces. That means recreating the workflow as a workspace agent and reviewing connections and permissions. It isn’t the same as moving the backend for a public website.
OpenAI’s deprecation schedule lists November 30 but does not give a cutoff hour. Export first rather than waiting for the last day. If the same app also references reusable prompt objects, that is a separate migration on the same date.
Sources
ChatKit integration guide, Agent Builder migration guide, custom ChatKit server guide and OpenAI deprecation schedule. The featured image is an original diagram showing which part of the integration changes.


