Skip to main content

Flows

A Flow is a versioned, durable process with explicit steps. Use an agent when the model should choose the next action; use a Flow when your application owns the control path.

AgentFlow
Control flowModel-ledDefinition-led
Multiple stepsTool loopExplicit steps and branches
DurabilityOne runVersioned execution and checkpoints
Human approvalTool gateTool gate or checkpoint
Best forOpen-ended workRepeatable business processes

For example: lead arrives → research company → analyze lead → generate outreach → human approval → send. State is stored as data, so later steps can consume prior output and a worker can resume after a pause. Supported step kinds include agent, tool, branch, wait, checkpoint, subflow, and done; failure policy can retry, skip, escalate, or fail.

Next: First Flow, Agents, HITL, Durable runtime, Flow API, and the flow specification.