The export lives inside the product you are losing, and OpenAI's migration guide never mentions the deadline, the package name, or what breaks.
OpenAI shuts down Agent Builder on 30 November 2026. If you have a workflow in it, the single most important thing to understand is this: the export lives inside the product you are losing. There is no post-shutdown download, no archive link, no support ticket that retrieves it. Export first, migrate second.
OpenAI's own migration guide is about four thousand characters long. It tells you which menu to click. It does not tell you the deadline, does not map a single Agent Builder concept onto its Agents SDK equivalent, and does not name the package you need to install. This article fills those gaps.
What is actually shutting down
Two entries on OpenAI's deprecations page share a 30 November 2026 shutdown date and a 3 June 2026 notice date. They are not the same kind of change, and a lot of secondary coverage has conflated them.
| Product | Status on 30 Nov 2026 | OpenAI's stated replacement |
|---|---|---|
| Agent Builder | Deprecated — shut down | Agents SDK or ChatGPT Workspace Agents |
| Evals dashboard, API, and graders | Read-only | Promptfoo |
| ChatKit | Unaffected | — "ChatKit remains available" |
Do this first: export, before anything else
This takes under a minute and it is the only step with a hard deadline. Everything else in this article can be done calmly in December. This cannot.
- Open your workflow in Agent Builder.
- Select Code in the top navigation.
- Select Agents SDK in the code dialog.
- Select TypeScript or Python, then copy the complete export.
Paste it somewhere permanent and commit it. Do this for every workflow you have, including ones you think are abandoned — judging which workflows matter is a December problem, and in December you will not be able to export them.
What the export gives you, and what it does not
OpenAI is unusually direct about the limits, in language worth reading carefully before you plan the work:
- "This process does not convert your workflow graph or guarantee that every behavior transfers unchanged."
- "Some workflow behavior may need manual recreation. Review control flow, triggers, tools, and permissions as you test the migrated agent."
- For the SDK path, an implementation "requires you to validate your application's runtime configuration, tools, authentication, permissions, and deployment."
Read that as: the export is a starting point, not a build artifact. It is closer to scaffolding generated from your workflow than to a faithful translation of it. Budget time to test behaviour rather than to paste and ship.
The concept mapping OpenAI's guide leaves out
This is the part that makes the export usable. Agent Builder's nodes have Agents SDK equivalents, but the migration guide names none of them. The table below maps them, with the class and parameter names as the SDK's published documentation prints them.
| Agent Builder concept | Agents SDK equivalent |
|---|---|
| An agent node | Agent(name=..., instructions=...) |
| Running the workflow | Runner.run(agent, input) → RunResult |
| Routing to another agent | Agent(handoffs=[...]), or handoff() for control |
| A custom function node | @tool on a Python function |
| File search over a vector store | FileSearchTool(vector_store_ids=[...]) |
| An MCP server connection | Agent(mcp_servers=[...]) or HostedMCPTool |
| Input/output validation | @input_guardrail / @output_guardrail |
| A human approval step | @tool(needs_approval=True) + result.interruptions |
| Conversation state between turns | result.to_input_list(), or a session |
Install and the smallest thing that runs
The Python package is openai-agents, and it imports as agents — a mismatch that catches people out. OpenAI's migration guide does not mention the package name at all.
pip install openai-agents
# then:
import asyncio
from agents import Agent, Runner
agent = Agent(
name="History Tutor",
instructions="You answer history questions clearly and concisely.",
)
async def main():
result = await Runner.run(agent, "When did the Roman Empire fall?")
print(result.final_output)
asyncio.run(main())Your vector stores survive the migration
This is the single piece of good news in the whole move. File search in the SDK takes the same vector store IDs you were already using, so your indexed data does not need rebuilding — only rewiring.
from agents import Agent, FileSearchTool
agent = Agent(
name="Assistant",
tools=[
FileSearchTool(
max_num_results=3, # 1 to 50
vector_store_ids=["VECTOR_STORE_ID"],
),
],
)Human approval steps become interruptions
Agent Builder's approval nodes have a direct equivalent, but the control flow inverts: instead of the platform pausing a hosted run, your own code receives an interruption and decides what to do with it. That means you now own the persistence of a paused run.
from agents.decorators import tool
@tool(needs_approval=True)
def refund_order(order_id: str) -> str:
"""Refund an order.
Args:
order_id: The order to refund.
"""
return f"refunded {order_id}"
# When the model wants to call it, the run stops and hands you the decision:
result = await Runner.run(agent, "refund order 123")
if result.interruptions:
state = result.to_state()
for interruption in result.interruptions:
state.approve(interruption) # or state.reject(interruption)
result = await Runner.run(agent, state)Routing between agents becomes handoffs
If your workflow branched to different agents, that becomes a handoff. The mental model is worth absorbing because it differs from a workflow edge: a handoff is exposed to the model as a tool, and the model decides to call it. You are not drawing a transition any more, you are offering one.
from agents import Agent
refund_agent = Agent(
name="Refund Agent",
instructions="You process refunds.",
handoff_description="Handles refund requests", # shown to the routing model
)
triage = Agent(
name="Triage",
instructions="Route the customer to the right specialist.",
handoffs=[refund_agent],
)
result = await Runner.run(triage, "I want my money back")
print(result.last_agent.name) # which agent actually answeredValidation nodes become guardrails
Guardrails are the SDK's equivalent of a validation step, with one important scoping rule that catches people: input guardrails run only for the first agent in a chain, and output guardrails only for the agent producing the final output. A guardrail attached to a mid-chain agent will not fire where you expect.
from agents import Agent, GuardrailFunctionOutput, InputGuardrailTripwireTriggered
from agents.decorators import input_guardrail
@input_guardrail
async def block_empty(ctx, agent, user_input):
return GuardrailFunctionOutput(
output_info={"len": len(user_input)},
tripwire_triggered=len(user_input.strip()) == 0,
)
agent = Agent(name="Assistant", input_guardrails=[block_empty])
try:
await Runner.run(agent, "")
except InputGuardrailTripwireTriggered:
... # handle the rejectionMCP connections move with you
If your workflow called an MCP server, the SDK supports both shapes: servers you run and connect to directly, and hosted servers declared as a tool. Note that the SSE transport is documented as deprecated — prefer Streamable HTTP or stdio for anything you are rebuilding now, rather than porting an SSE connection across.
from agents import Agent
from agents.mcp import MCPServerStreamableHttp
async with MCPServerStreamableHttp(
name="Internal Tools",
params={
"url": "http://localhost:8000/mcp",
"headers": {"Authorization": f"Bearer {token}"},
"timeout": 10,
},
cache_tools_list=True,
) as server:
agent = Agent(name="Assistant", mcp_servers=[server])
result = await Runner.run(agent, "list open tickets")A naming inconsistency in the docs that will cost you ten minutes
The SDK's documentation disagrees with itself about the function-tool decorator. Every code block prints @tool, imported as from agents.decorators import tool. Several paragraphs of surrounding prose instead refer to @function_tool. The documentation nowhere states whether these are aliases, or whether one replaced the other.
Published code is the stronger signal, so @tool is what this article uses. If you hit an import error on one, try the other before concluding your install is broken — and do not assume a blog post using the other name is out of date.
The other path: ChatGPT Workspace Agents
OpenAI offers a second destination, and for some workflows it is the better one. You paste the exported code into a workspace agent chat and let it convert. It needs a ChatGPT Business, Enterprise or Edu workspace with permission to create agents.
One caveat decides this for most teams, and OpenAI states it plainly: "Workflows with strong determinism at their core may not migrate faithfully to a workspace agent." If your workflow is a reliable sequence of steps that must execute the same way every time, that is exactly the property at risk. Deterministic pipelines belong in the SDK, where you own the control flow.
| Choose | When |
|---|---|
| Agents SDK | You deploy it yourself, the control flow matters, or the behaviour must be repeatable and testable |
| Workspace Agents | The workflow is conversational, your team needs to edit it without code, and exact step ordering is not load-bearing |
What to test once it runs
The export compiles and produces output, which is the point at which most migrations are declared finished. OpenAI's warning that behaviour may not transfer unchanged means the opposite: a running agent is the start of the verification, not the end of it. These are the things that actually drift.
| Check | Why it drifts |
|---|---|
| Control flow and ordering | The workflow graph is not converted. Branching the builder enforced is now the model's decision via handoffs |
| Tool call arguments | Schemas are regenerated from Python type hints and docstrings, not from your node configuration |
| Guardrail placement | Input guardrails fire only on the first agent, output only on the last — mid-chain validation silently does not run |
| Auth and permissions | Explicitly out of scope for the migration; rebuilt by hand in both paths |
| Approval behaviour | Previously a platform pause, now an interruption your code must handle — if you ignore result.interruptions the tool simply never runs |
What this migration actually costs you
No migration is free, and this one has a specific shape worth naming before you start.
| What you gain | What it costs you |
|---|---|
| Full control of the agent loop | You now own hosting, deployment and uptime — previously OpenAI's problem |
| Testable, version-controlled agents | A visual workflow becomes a codebase, which non-engineers can no longer edit |
| Your vector stores carry over unchanged | Nothing else does: auth, permissions and connected apps are rebuilt by hand |
| Paused runs become serialisable state | Persisting and securing that state is your responsibility now |
The honest summary is that you are trading a managed product for a library. That is a real loss of convenience, and worth acknowledging rather than dressing up — but it is also why the result is testable in a way a hosted visual builder never was.
Quick reference
- Export every workflow before 30 November 2026. The export is inside the product you are losing.
- Agent Builder shuts down; Evals goes read-only and points to Promptfoo; ChatKit is unaffected.
- pip install openai-agents, import from agents.
- Vector store IDs carry over into FileSearchTool unchanged — nothing to re-index.
- Approval nodes become result.interruptions plus state.approve() / state.reject().
- The decorator is @tool in every published code sample, whatever the prose says.
- Deterministic workflows belong in the SDK, not in a Workspace Agent.
- Budget testing time: the export does not guarantee behaviour transfers unchanged.