Agents and crews inside flows
A flow can mix plain Python, a crew and a single agent. Build a Kochi trip planner as a flow project, call a crew in a loop, ask one agent for a budget, then plot and run the flow.
11 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 11 minutes.
Written from the official documentation
In this module: Flows
- Flows: @start and @listenSteps that fire on events, with shared state.Pro
- Flow state and persistenceUnstructured or Pydantic state, and @persist to save it.Pro
- Flow control: or_, and_ and @routerJoining branches and routing on a result.Pro
- Agents and crews inside flowsA flow project that calls crews, plus plots and kickoff.Pro
- Human input and feedbackPutting a person in the loop.Pro
- The @human_feedback decoratorApprove, reject or revise inside a flow, sync or async.Pro
- Conversational flowsMulti turn chat with handle_turn, history and intent routing.Pro