What is the Workflow Builder, and how does a workflow run?

The Workflow Builder turns a process you describe into a saved workflow: a tree of steps (agents, teams, single tool calls, other workflows) wired together with loops, conditions, routers and parallel branches. You build it by chatting with the builder while a live canvas draws each step. The routing is fixed and saved, so the same input always takes the same path, and plain data-shaping steps use no model at all. Run it on demand, on a schedule, from a link, or in the cloud.

What makes it different

what it does the primitive behind it what that buys you
A saved graph, not a chat plan Every workflow is a step tree saved in ~/.irene/workflows/<id>/, re-loaded at startup Run it next week without rebuilding the plan in a chat
Model calls only where judgement lives Conditions, filters and transforms can be plain rules (functions or simple expressions); only steps that need language use a model Routing and reshaping data cost nothing per run
Wired from real output, not guesses The builder runs the workflow up to a step and reads its real output before wiring the next step to its fields Later steps read fields that actually exist
Typed step outputs A step can be given a structured output, and later steps refer to its fields by name ({{step.field}}) Clean hand-offs between steps instead of parsing prose
Failure is part of the design Each step has its own retries (3 by default) and an on-error rule: skip, halt, notify, fall back, or branch You decide what happens when a step fails, before it does
Live canvas Every node lights up as active, done or failed while it runs You watch the workflow move

How it works

Building one

You describe the process; the builder: 1. Starts a draft with a stable name (lowercase, unique across your agents, teams and workflows). 2. Looks at what's available: your agents, teams, other workflows, toolkits. 3. Adds and configures nodes, drawing them on the canvas as it goes. 4. Probes as it builds. It runs the draft up to a node and reads the real output shape, a sample and the field names, then wires the next step to those fields. Why: binding a later step to a guessed shape is the most common way a workflow breaks. The trade-off is that probing really runs the earlier steps, so a step that sends or spends will do so during the probe. 5. Validates and finalises. The workflow becomes runnable only after it validates.

What a step can be

step does
agent an agent you've built, or a step agent made just for this workflow (it can later be promoted to a reusable agent)
team one of your teams
workflow another workflow, nested
tool one tool call with fixed arguments, e.g. "post to this channel"
function a built-in helper for glue work

Shaping the flow

node does
Steps (group) runs its children in order
Parallel runs its children at the same time
Loop repeats until an end condition or a maximum count. With refine on, each pass works on the last pass's output
Condition picks a branch
Router picks one of several branches
Map over items runs a sub-flow for every item in a list, 4 at a time by default
Filter list keeps the items that pass a test
Transform reshapes data with a simple expression, no model
Guardrail checks a step's output before it moves on

Decisions (condition, router, loop end, filter) can be a named rule, a simple expression, or a model judge when the choice needs language. Why the choice: a rule is free and always decides the same way; a judge costs a call and understands meaning. Use a judge only where a rule can't decide.

Passing data along

{{input}} is the workflow's input, {{previous}} the last step's output, and {{step.field}} a named field from an earlier step.

Same path, not identical words

The path a run takes is fixed by the graph and by your rules. Steps that use a model (agents, judges) still write their own words each time, so two runs on the same input follow the same route but may phrase their results differently.

Nesting

Workflows can contain workflows: up to 5 levels at run time, and 6 levels of nested steps in one workflow. A workflow can't contain itself.

Running it

  • Run mode: the workflow's name, where it runs (On your Mac or Public link), a Default or saved-variant picker, an Input for this run… box, and Run / Stop. The canvas lights up step by step.
  • Variants save an input and per-step overrides, so the same workflow can run several ways.
  • Reopening a past run replays it on the canvas.
  • Schedules and triggers: run on a schedule, or from a watch that wakes the workflow only when something changes (checked with no model). → Schedules & watches
  • Phone numbers and channels can be attached so people reach the workflow directly. → Channels
  • Chat history is off by default. Turn it on and each run in the same chat sees earlier inputs and outputs. Scheduled and link-started runs always start fresh.

Approvals and auto mode

  • Tool steps go through the normal approval gate. A step that sends, deletes or spends can still stop and wait for you.
  • Saved steps. A tool step whose arguments are all fixed (none filled in from earlier steps) counts as a saved step: in auto mode it runs without the judge, because you approved exactly that call when you built it. A step whose arguments come from data is judged like any other call.
  • Per-tool rules: for each tool in the workflow you can set always allow, always ask or deny.
  • Held calls show in an end-of-run summary.

→ Approvals & auto mode

Where you see it

  • Build mode: the builder chat; an Add a node palette (Parallel, Steps (group), Loop, Condition, Router, Map over items, Filter list, Transform, Guardrail node, New inline agent, plus your agents, teams, sub-workflows, functions and single tool calls); a node inspector (arguments, Save args, Remove node, and for step agents their prompt, model, toolkits, structured output, Build / update agent and Promote); and the canvas. The empty canvas says "Ask the builder to start a workflow, then add nodes from the left. The canvas mirrors the draft."
  • Run mode: described above.
  • Workforce lists every workflow you've built. → Workforce

Deploying to the cloud

A finished workflow can be deployed as one cloud pod carrying the workflow and every agent and tool it uses. It can scale to zero when idle, and has its own spend-capped key. Secrets are stored encrypted and are shared by all of that workflow's steps. A workflow whose steps need this computer (desktop-only tools, or agents that can't run in the cloud) can't be deployed until those steps change.

Connector steps can be set to per user, so on a public pod each person's own account is used, not yours.

→ Deploy to the cloud

What it costs

  • Agent and team steps use plan usage at what we pay + 20%, on each agent's own model.
  • Rules, transforms, filters and functions use no model.
  • Judges and guardrails that use a model cost one small call each.
  • Probing while building really runs the earlier steps, and costs what they cost.
  • Cloud pods are priced on the deploy page. → Deploy to the cloud

Limits

  • No reflex step. To use a reflex, call it from an agent step or a tool step.
  • Nesting: 6 levels of steps in one workflow, 5 levels of workflows inside workflows.
  • Model steps aren't word-for-word repeatable. The path is.
  • Steps that need this computer can't go to the cloud.

[Ask Irene about this]

Updated