OpenAI is closing its visual canvas for agent workflows. The notice at the top of the Agent Builder guide reads: "OpenAI is deprecating Agent Builder. Existing users can continue using it during the transition window, and the product is scheduled to shut down on November 30, 2026. ChatKit remains available." The deprecations page dates the notice June 3, 2026 and names the replacements: "Agents SDK or ChatGPT Workspace Agents."
Microsoft retires a visual builder the next day. Its Foundry workflow page says "Microsoft Foundry is retiring workflows on December 1, 2026", and that after that date "the visual designer and in-portal workflow execution aren't supported". Foundry keeps running YAML workflow definitions deployed as a hosted agent.
One question the OpenAI pages do not answer: what happens after November 30 to a workflow you already published and call by its ID. This post does not guess. Export the workflow before that date, whatever you choose next.
Is this the right exit for you? #
OpenAI's migration guide exports a workflow as Agents SDK code, to keep in your own application or to paste into a new Workspace Agent. It is frank about the limits: "This process does not convert your workflow graph or guarantee that every behavior transfers unchanged." And, under Limitations: "Workflows with strong determinism at their core may not migrate faithfully to a workspace agent."
That second sentence describes the workflows Nika is for. A Nika workflow is a file: its steps, their order, their conditions and what each step may touch are written in it. Your coding agent can write that file; nika check inspects it before anything runs, the way a roadworthiness inspection looks at a car before it goes back on the road. The inspection is static, deterministic, local and portable: it reads the file, calls no model and no host, and runs wherever the binary runs. Only its ACCESS line looks at the machine, to say which key or sign-in a run would use.
Nika fits when:
- your workflow is a job: an input comes in, fixed steps run, a result goes out;
- the steps are mostly routing around a few model calls;
- you want to run it from a terminal, a script or CI;
- you want to see what it may touch, and its worst-case output cost, before it runs;
- you want to keep OpenAI models, or be free to switch provider.
Take the Agents SDK export instead when:
- your users talk to the workflow through ChatKit. Nika runs jobs; it has no chat front end to embed in a site;
- it relies on File search over OpenAI vector stores.
nika:readandnika:grepread local files; they do not search by meaning; - it relies on Guardrails nodes to screen content. Nika checks what a workflow may touch, not what a text says;
- it needs a While loop on an open-ended condition;
- it calls remote MCP connectors. Nika 0.124.5 reaches only local MCP servers that it starts as a command.
Node by node #
The nodes are the ones in OpenAI's node reference.
- Start becomes
inputs:, typed, with defaults. A run passes values with--var. - Agent without tools becomes
infer:, one model call. Addschema:for structured output. - Agent with tools becomes
agent:, a loop over the tools you list (none by default) that stops aftermax_turnsturns (10 by default). - If/else becomes
when:on a task: the task runs only when its expression is true. - Transform becomes an
invoke:ofnika:jq. - Set state becomes
const:for fixed values. A task's output reaches the next task throughwith:. - Human approval becomes an
invoke:ofnika:prompt. The run pauses until someone answers, and every step that acts tests the answer withwhen:. - MCP becomes an
invoke:ofmcp:<server>/<tool>, for a local server. You declare the server in.nika/mcp_servers.jsonand approve it withnika mcp approve <server>, which pins its tool definitions; a server whose tools change afterwards is refused until you approve it again. - Note becomes a YAML comment.
- While has no equivalent. A loop over a known list is
for_each:; trying a step again isretry:. - File search has no equivalent.
- Guardrails has no equivalent. The closest are
schema:andnika:assert, which judge shape and rules, not meaning. - ChatKit, the chat front end, has no equivalent.
There is no importer. You, or your coding agent, rewrite the steps, and nika check tells you what does not hold.
A worked example: support ticket triage #
A common Agent Builder shape: a ticket comes in, an agent classifies it, an If/else routes it, a second agent drafts the reply, a person approves it, the reply goes out. Here is the same job as one file. The last step is a plain HTTP request to keep the example small; on the canvas it is often an MCP node.
# A support-ticket triage from an Agent Builder canvas, as one file.
nika: ticket-triage
inputs:
ticket:
type: string
description: "The support ticket, as the customer wrote it"
model: openai/gpt-6-luna
permits:
tools: ["nika:prompt", "nika:fetch"]
net: { http: ["helpdesk.example.com"] }
tasks:
# Agent node with structured output
classify:
infer:
max_tokens: 300
prompt: |
Classify this support ticket as billing, technical or other.
${{ inputs.ticket }}
schema:
type: object
additionalProperties: false
required: [category]
properties:
category: { type: string, enum: [billing, technical, other] }
# If/else: only billing and technical tickets get a reply
draft:
with:
c: ${{ tasks.classify.output }}
when: ${{ with.c.category != "other" }}
infer:
max_tokens: 1000
prompt: |
Write a short, polite reply to this ${{ with.c.category }} support ticket.
Never promise a refund. For a technical ticket, ask for the app version
and the steps to reproduce.
${{ inputs.ticket }}
# Human approval, asked only when there is a reply to send
approve:
with:
c: ${{ tasks.classify.output }}
reply: ${{ tasks.draft.output }}
when: ${{ with.c.category != "other" }}
invoke:
tool: "nika:prompt"
args:
mode: confirm
message: "Send this reply? ${{ with.reply }}"
# Runs only on a yes
send:
with:
go: "${{ tasks.approve.output }}"
reply: ${{ tasks.draft.output }}
when: ${{ with.go == true }}
invoke:
tool: "nika:fetch"
args:
url: "https://helpdesk.example.com/api/replies"
method: POST
body: { reply: "${{ with.reply }}" }
outputs:
category: ${{ tasks.classify.output.category }}The permits: block is the whole list of what this file may touch: two tools and one host. A run starts from a default-deny boundary, so anything else is refused.
Three when: lines carry the routing and the approval. draft and approve run only for billing and technical tickets; send runs only when the answer to approve is true. The approval tests the category too, because a skipped task still hands null to the tasks that read it: without that line, an "other" ticket would ask a person to send an empty reply, and a yes would send it. A no has to stop the next step tells the same rule from the other side.
Check it #
Nothing runs and no model is called. This is what the published Nika 0.124.5 printed in a fresh directory, with OPENAI_API_KEY set:
$ nika check ticket-triage.nika
nika check · ticket-triage.nika
✔ PLAN 4 waves · 4 tasks · max parallelism 1
wave 1 classify (infer · openai/gpt-6-luna)
wave 2 draft (infer · openai/gpt-6-luna)
wave 3 approve (invoke · nika:prompt)
wave 4 send (invoke · nika:fetch)
✔ MODELS 1 model resolves in this binary · this machine's paths on the ACCESS line
✔ ACCESS openai/gpt-6-luna → openai (api · api_metered · discovered) · key present · not validated (check never dials) · chosen over codex (not installed · Codex is not installed. Install it or choose an API key or a local engine instead (`nika doctor --verbose` lists them).)
✔ COST $0.0001 – $0.0006 worst-case output ceiling · prompts, exec + mcp unpriced · prices 2026-10-12
classify openai/gpt-6-luna ≤300 tk $0.0001
draft openai/gpt-6-luna ≤1000 tk $0.0005
○ ENERGY unpriced — no sourced Wh figure for any task model · never 0 Wh (NEP-0018)
✔ SECRETS no declared secret reaches an effect · model echo untracked
✔ TYPES deep references fit the shapes tasks declare · builtin output has none
✔ TOOLS every named nika: tool is canonical · globs + mcp: not checked
✔ ARGS every builtin invoke arg key is declared + required args present
✔ SCHEMA no known-unsatisfiable form in an authored schema: · $ref opaque
✔ GATES no task proven dead · status literals in vocabulary
✔ WRITES no two unordered tasks write the same static path · computed paths at run · engine writes .nika/traces
✔ EXEC no literal argv the exec floor refuses at run · a templated argv is the RUN's verdict
✔ RETRY no `retry:` on a keyless mutating `nika:fetch` · a templated method/headers is the RUN's verdict
✔ ORDER no exec: sits downstream of a net-effecting task · unauthored content never reaches a shell
✔ PERMITS literal + const: args fit the boundary · computed programs, paths + symlinks are the RUN's verdict
✔ TRIFECTA no lethal trifecta over the declared permits: without a human gate
✔ JOURNEY internal · 0 sources · 1 destination · 2 model endpoints · no secret reaches an external destination
✔ JOURNEY cloud endpoint openai · task data leaves this machine · retention 30 · training no
↳ HINT [documentation-host] task `send` fetches `helpdesk.example.com` — a documentation host (RFC 2606/6761) the transport never dials, so that request fails NIKA-BUILTIN-FETCH-001 once the boundary admits it; point the task at a real host, or own the failure with `on_error: { recover: … }`
↳ HINT [headless-prompt] `nika:prompt` on `approve` declares no `default:` — unattended (CI, or an agent handing it over) the run pauses at this gate awaiting a human (exit 4 · the resume line taught on the frame); at a terminal it asks directly. Answer it in one pass with `nika run <file> --answer approve=<value>`, or refuse this invocation with `--answer approve=false`. Keep this gate without `default:` when fresh human approval is required; a workflow default answers itself unattended and does not pause for a human
✔ audited · 4 tasks · 4 waves · permits tools:nika:prompt,nika:fetch http:helpdesk.example.com · est out ≤$0.0006 · 2 hints · risk supervised
layers · valid ✔ · access ready ✔ · capacity fit ✔ · run ready ✔
↳ NEXT see `nika explain` for coded findings — nothing here is a typed rename, so these are yours to placeRead it from the top. The plan has four waves of one task each. The cost line is a ceiling: each step's max_tokens at the price table the binary carries (dated 2026-10-12), with prompt tokens left unpriced. The TRIFECTA line looks for a file that may read private files, take in untrusted content and send data out, with no blocking human gate in front of the send; it found none. The two JOURNEY lines say where the data goes: the ticket text leaves this machine for OpenAI.
The two hints are worth reading. helpdesk.example.com is a documentation host the engine never dials, so send fails until you name your real helpdesk. And the gate has no default:, so an unattended run pauses at it instead of answering for you. That pause is the point of the gate.
What the check does not judge: whether the classifier picks the right category, whether the reply is any good, whether your helpdesk accepts the request. It does not validate the key, as its ACCESS line says. Literal arguments must fit the permits; computed values are judged when the run reaches them. A clean check says the file holds together inside its boundary. It does not say the job does what you want.
Rehearse it without a model #
--model mock/echo swaps in a stand-in that echoes the prompt, so you can watch the steps and the pause without a key:
$ nika run ticket-triage.nika --model mock/echo --var ticket="I was charged twice this month."
rehearsal: mock/echo answers by echoing the prompt — not a real answer · a real one: `--model <provider/model>` with its key, or `--access <seat>` (nika doctor lists them)
🦋 nika · ticket-triage · 4 tasks
permits ✓ declared boundary · default-deny
✔ classify infer · mock/echo · untrusted input from inputs.ticket 4ms
✔ draft infer · mock/echo · untrusted input from inputs.ticket 0ms
4 tasks · 4 waves · 0 retries · 37 tok
── 2/4 done · unpriced (2 calls) · elapsed 0.0s ────────────────
wrote .nika/traces
verify it: nika trace verify
said "mock(echo) · Write a short, polite reply to…"
see it whole: nika trace outputs
rehearsal · a mock model echoed the prompt — not a real answer
◇ paused · awaiting an answer for `approve`
answer: nika run --answer approve=true FILE (boolean true/false, not yes)
explore: nika run ticket-triage.nika --json > run.ndjson · nika trace outputs run.ndjson
trace: .nika/traces/2026-11-24T06-50-39Z-ca8c.ndjson · 10 events · chain fbbdb8af18847317405f4f3ba93c718586a86f1250359463b3919821470c3a71
resume: nika run ticket-triage.nika --var 'ticket=I was charged twice this month.' --model mock/echo --resume .nika/traces/2026-11-24T06-50-39Z-ca8c.ndjson --answer approve=true · or falseWith a schema, the stand-in returned the first category the enum allows, billing, so the billing path ran and the run stopped at the question. Unattended, it exits with code 4 and prints the line that resumes it. Answer no:
$ nika run ticket-triage.nika --var 'ticket=I was charged twice this month.' --model mock/echo --resume .nika/traces/2026-11-24T06-50-39Z-ca8c.ndjson --answer approve=false
rehearsal: mock/echo answers by echoing the prompt — not a real answer · a real one: `--model <provider/model>` with its key, or `--access <seat>` (nika doctor lists them)
🦋 nika · ticket-triage · 4 tasks
permits ✓ declared boundary · default-deny
↷ classify cache hit (resume)
↷ draft cache hit (resume)
✔ approve invoke · nika:prompt · untrusted input from inputs.ticket 17ms
↷ send when: closed (post-gate)
4 tasks · 4 waves · 0 retries
── 4/4 done · unmetered · elapsed 0.1s ─────────────────────────
wrote .nika/traces
verify it: nika trace verify
explore: nika run ticket-triage.nika --json > run.ndjson · nika trace outputs run.ndjson
trace: .nika/traces/2026-11-24T06-50-49Z-b334.ndjson · 13 events · chain 837798f41e805bd8d64e6b2ff7b03a2977a64a69ec21fe9d75a56d782a537262
resumed · 2 skipped (cache hit) · 1 ran livesend is skipped: its when: line is false. On a yes it runs. The stand-in replaces the model only, so in a rehearsal a yes sends the request for real; with the documentation host above it fails with NIKA-BUILTIN-FETCH-001, as the check warned. An answer is used once.
To run it for real, set OPENAI_API_KEY, point send at your helpdesk (its key goes in a header, from secrets:), check the file again and drop --model mock/echo.
Move in four steps #
- Export first. In Agent Builder, open the workflow, select Code, then Agents SDK, choose TypeScript or Python and copy the complete export. Keep that copy whatever you choose next, and make it before November 30.
- Rewrite the steps as a .nika file, with the list above, by hand or with your coding agent.
- Check it with
nika check your-file.nika, and fix what it reports. - Rehearse, then run. First with
--model mock/echo, then with your real model under a budget:--max-cost-usd 1refuses to start a run whose cost floor is already above one dollar, and starts nothing new once the spend crosses it.
Install the engine on macOS or Linux:
curl -LsSf https://nika.sh/install.sh | shHomebrew works too (brew install nika-open/tap/nika), and the install page lists the other ways.
Know before you move #
- Nika is open source (AGPL-3.0-or-later) and needs no account. It runs where you run it: your machine, your server, your CI. You pay your model provider.
- A paused question waits 15 minutes. After that, an answer is not used and the run asks again.
- Nika checks what a workflow may touch. It does not screen the content of a text.
- Remote MCP servers are not supported in 0.124.5.
- Each run writes a hash-chained trace under
.nika/traces, andnika trace verifysays whether it is intact. In its own words the chain is "tamper-evident, not tamper-proof".
What this post did not do #
- It did not start from a real Agent Builder export. The example follows OpenAI's node reference, not an exported file.
- It did not run the example against OpenAI. It checked the file and rehearsed it with the stand-in model, on Nika 0.124.5.
- It does not say whether already-published Agent Builder workflows keep running after November 30. The OpenAI pages it read do not say.
Read OpenAI's migration guide before you choose, the v0.124.5 release behind these outputs, and The run that waits for you for the approval gate.