AI agents Intermediate

OpenAI Agent Builder Shutdown: Rebuild in n8n or the Agents SDK

OpenAI scheduled Agent Builder to shut down on 30 November 2026, and there is no converter that turns its canvas into something another tool can open. Export each workflow as Agents SDK code, then decide per workflow whether it belongs in your own app, a ChatGPT workspace agent, or an n8n AI Agent workflow.

Author
Hisham Asghar
Time needed
8 min
Steps
5 steps
Published
LinkedIn Post on X

Don't take our word for it, ask

On this page · 12
  1. What you will take away
  2. What is actually going away
  3. Before you rebuild anything
  4. Step 1: Export each workflow as Agents SDK code
  5. Step 2: Choose where each workflow should run
  6. Step 3: Keep the chat window, replace the backend
  7. Step 4: Rebuild in n8n when the agent is really a business workflow
  8. Step 5: Migrate in order, then switch traffic
  9. Known limits
  10. Frequently asked questions
  11. If the agent already stopped answering
  12. Sources

What you will take away

  • Export every Agent Builder workflow as Agents SDK code before you lose access to the canvas
  • Choose between the Agents SDK, a ChatGPT workspace agent, the Agents API and n8n for each workflow
  • Keep a ChatKit chat on your site working by moving it to your own server-side agent
  • Check the other OpenAI deprecations dated 30 November 2026 that can break the same app
  • Test the rebuilt agent against real conversations before you switch traffic

What is actually going away

Term: OpenAI Agent Builder

Definition

A visual canvas in the OpenAI platform for building multi-step agent workflows from nodes. Published workflows get an ID and versions, and were deployed either by passing the ID to ChatKit or by downloading Agents SDK code. OpenAI announced the deprecation on 3 June 2026 and scheduled the shutdown for 30 November 2026. ChatKit, the embeddable chat interface, remains available.

Example

A support chat on a website that uses ChatKit with an Agent Builder workflow ID loses its hosted workflow. The chat window can stay, but it needs a backend agent you run.

Before you rebuild anything

  • Access to each workflow in Agent Builder, if your account still has it
  • A list of every place a workflow ID is used: ChatKit embeds, backend calls, internal tools
  • Five to ten real conversations per workflow, including one that should be refused or handed to a person
  • The API keys, tool endpoints and data sources each workflow calls
  • A named owner who decides what the new agent may change without approval

Step 1: Export each workflow as Agents SDK code

OpenAI's migration guide gives one export path: open the workflow in Agent Builder, select Code in the top navigation, choose Agents SDK, pick TypeScript or Python, and copy the complete export. There is no file download and no graph converter, and OpenAI says the process does not guarantee that every behavior transfers unchanged.

Commit each export to version control with the workflow ID and version it came from. If the canvas is already closed for your account, rebuild from what you still have: your prompts, tool definitions, the ChatKit configuration, and logs of real conversations.

Expected result: One exported code file per workflow, stored with its workflow ID and version.

Step 2: Choose where each workflow should run

OpenAI points Agent Builder users to the Agents SDK or ChatGPT workspace agents. The same documentation also describes the Agents API. For workflows that mostly move data between business apps, n8n's AI Agent node is a practical fourth option.

Agents SDK in your own app The SDK runs inside your application. You control deployment, storage, approvals and runtime integration, and its runner handles the agent loop and handoffs You have developers, the agent is part of a product, and you want the export to keep working as code The export is a starting point. OpenAI says it does not convert the graph or guarantee identical behavior
ChatGPT workspace agent Paste the exported code into a new workspace agent and let ChatGPT convert it. Needs a ChatGPT Business, Enterprise or Edu workspace with permission to create agents The agent is used by your own team inside ChatGPT, not by customers on your site OpenAI warns that workflows with strong determinism at their core may not migrate faithfully
Agents API OpenAI runs a managed Codex harness and saves the agent's progress Long-running tasks where you want OpenAI to manage the agent infrastructure A different runtime from the SDK, with its own state and cleanup rules
n8n AI Agent node Connect a chat model and at least one tool, and the agent decides which tool to call. Tools can require human approval before they run The agent mostly moves data between business apps (CRM, inbox, sheets, helpdesk) and your team already maintains workflows You rebuild by hand. Nothing imports an Agent Builder graph into n8n

Expected result: A runtime chosen for each workflow, with the reason written next to it.

Step 3: Keep the chat window, replace the backend

If customers reach the agent through ChatKit, the front end does not have to change much. OpenAI's ChatKit guide says an existing Agent Builder-hosted workflow can only be used during the transition window, and points to the advanced integration for connecting ChatKit to your own server-side agent. That server-side agent can be the exported Agents SDK code, or an endpoint that hands the conversation to an n8n workflow.

Test the new backend with the same user accounts and the same conversations before you change the embed.

Expected result: ChatKit pointed at a backend you run, tested on real conversations.

Step 4: Rebuild in n8n when the agent is really a business workflow

Many Agent Builder workflows were a model plus a few tools: look up a customer, create a ticket, send a reply. In n8n, that becomes an AI Agent node with a chat model and tool sub-nodes. n8n's human-in-the-loop for tools lets a person approve or deny a tool call in Slack, Telegram or n8n Chat before it runs, which suits tools that send messages or change records.

Our n8n AI Agent playbook covers tool design, memory and guardrails in more depth. Add an error workflow so a failed run alerts someone.

Expected result: An n8n workflow with the same tools, approval on risky actions, and an error workflow.

Step 5: Migrate in order, then switch traffic

  1. Inventory. List every published workflow, its workflow ID, the version in use, and where it is called from: a ChatKit embed, your backend, or an internal tool.
  2. Export while you still can. Open each workflow in Agent Builder, select Code, choose Agents SDK, pick TypeScript or Python, and copy the complete export into your repository. OpenAI's migration guide says you need access to the workflow in Agent Builder to do this.
  3. Write down what the code will not tell you: the five or ten real conversations the workflow must handle, which tool calls change data, and who approves risky actions.
  4. Pick the runtime per workflow using the table above. A customer-facing chat on your site and an internal triage helper rarely end up in the same place.
  5. Rebuild and run both side by side on the same test conversations. Compare tool calls and final answers, not only the tone of the reply.
  6. Switch the caller. For ChatKit, move the embed to the advanced integration that talks to your own server-side agent. For backend calls, point them at the new endpoint or workflow.
  7. Keep an error path. In n8n that is an error workflow that starts with the Error Trigger. In your own code it is an alert to a person, not a silent retry.

While you are in the OpenAI dashboard, check the deprecations page. It lists two other changes on the same date: /v1/prompts and reusable prompt objects are deprecated, with content moving into your application code, and the Evals dashboard, API and graders become read-only. If your agent stack also uses either, plan those moves in the same project.

Expected result: Every workflow either migrated and tested, or retired on purpose.

Sources: 2, 3, 4, 5, 6, 7, 8, 9, 10

Known limits

  • The export is code, not a workflow file: Treat the Agents SDK export as a specification. Run it, read it, and rebuild where it does not match how the workflow behaved. Do not promise anyone a one-click move.
  • Workspace agents are for teams inside ChatGPT: They need a ChatGPT Business, Enterprise or Edu workspace and permission to create agents. For a chat on your public site, use the Agents SDK with ChatKit's advanced integration, or another backend you run.
  • Deterministic flows may not survive conversion to an agent: OpenAI's own guide warns about this. If the workflow is a fixed sequence of steps with a model in one or two places, rebuild it as a workflow in n8n or as plain code, and keep the model for the steps that need it.
  • Connected apps and permissions do not carry over: Re-create credentials, tool access and approval rules in the new runtime, and review them with the owner before go-live.

Frequently asked questions

When does OpenAI Agent Builder shut down?

OpenAI's Agent Builder guide and deprecations page list 30 November 2026. The deprecation was announced on 3 June 2026.

Does ChatKit stop working too?

No. OpenAI says ChatKit remains available. What ends is the Agent Builder-hosted workflow behind it, so connect ChatKit to your own server-side agent through the advanced integration.

Can I import an Agent Builder workflow into n8n?

Not directly. OpenAI's only export is Agents SDK code. Use that code, your prompts and your tool definitions as the specification, and rebuild the steps in n8n with an AI Agent node and the same tools.

Should I pick the Agents SDK or n8n?

Pick the Agents SDK when the agent is part of a product and developers will own the code. Pick n8n when the agent mostly connects business apps and an operations team will maintain it. Some teams use both: n8n for the business steps, and the SDK where the chat lives.

If the agent already stopped answering

If a customer-facing agent stopped working after the shutdown, start with a Rescue triage call. We reproduce the failure, confirm what the export and your logs can still recover, and quote the rebuild in writing. The live System Rescue page starts with a free 20-minute triage call. If a diagnostic is needed, it is USD 199 and credited toward any repair, and repairs are quoted in writing with a cap you approve.

If the workflow is still running and you want one agent rebuilt in n8n with a written scope, a fixed price and an acceptance checklist, see the n8n service. The live Automation Sprint page lists the current Sprint prices, including a quoted Starter after a scope review, a fixed Production price, and Complex work quoted from a starting figure. Re-check the page before you budget. Tool subscriptions, API usage and hosting are billed to your own accounts.

Sources

Topics #OpenAI Agent Builder #Agent Builder shutdown #OpenAI Agents SDK #ChatKit #n8n AI agent #agent migration

Finished the guide? Share it with your team.

LinkedIn Post on X
From guide to production

Want it running on your stack?

We implement this guide for clients, tailored to your stack, your data, and your team's workflow, and handed over documented.