Build your first flow
Compose multiple agents and tools into a single orchestrated workflow.
Flows let you go beyond a single agent — combining multiple agents, tools, and control-flow logic (conditions, manual iteration) into one orchestrated workflow.
1. Create a flow
Go to Project → Flows → New Flow. This opens the flow builder canvas.
2. Start with Input and Output steps
Every flow needs exactly one entry point and at least one exit point:
- Drag an Input step onto the canvas — this is where execution input lands
- Drag an Output step onto the canvas — this formats the final result
3. Add an agent step
Drag an Agent step onto the canvas and connect it: Input → Agent → Output.
Select which agent it should run (any agent already created in the project).
4. Add branching (optional)
To route based on the agent's output, add a Condition step between the agent and the output. Conditions are evaluated in a restricted, sandboxed manner, so user-influenced conditions can't execute arbitrary code.
5. Add a second agent or tool (optional)
For a supervisor pattern, connect a Condition step's branches to different Agent steps (e.g. a "billing" specialist vs. a "technical" specialist), then converge both back into the Output step.
6. Save and run
Saving a flow increments its version. Executing it uses the same
streaming/checkpointing infrastructure as single-agent execution — you'll
see step events for each stage as the workflow runs.
Extending with new step types
Adding a new step type to the catalog doesn't affect any existing step or how the workflow runs, so the builder's capabilities can grow over time without risk to what's already built. See Flows for the full catalog.
Next
- Set up a knowledge base to add a knowledge-retrieval step into a flow