Skip to main content
A flow is a fixed, multi-step workflow run by one agent: the steps and their order are written down up front instead of being left to the model’s judgment. Describe the graph with FlowBuilder and run it with the static FlowExecutor.execute(flow, context, onEvent?).

Node types

FlowExecutor runs these node types: oneOf conditions and evaluator expressions use a small, safe expression language (no eval, no host code; {{name}} placeholders are bound as values, never pasted into the expression). Its grammar and failure rules are in Flow expressions.

Flows, sub-agents or skills?

Use a flow when the pipeline is known in advance; use sub-agents when the model should decide what to delegate, and skills when the same agent just needs extra instructions for some tasks. See Sub-agents, skills or flows?. Flows are traced like agent runs (see Tracing and observability).