docs/agents/in-flows.mdx
Drop an agent into a flow as a step. The flow handles what's certain, the agent handles the rest.
Prose is hard to branch on, because the phrasing drifts every run.
"This looks fairly urgent, someone should pick it up today."
Ask for structured output instead and you get fields:
| Field | Type | Example |
|---|---|---|
category | Text | billing |
urgency | Number | 4 |
needs_human | Boolean | true |
Later steps pick these up from the data selector, the same as any other step's output. Route on needs_human, sort by urgency, drop category into the Slack message.