agent node is a full conversational agent, and moving along an edge is a handoff between agents.
The mental model
- Nodes are steps: greet, converse, decide, call an API, collect data, transfer, end.
- Edges are possible paths. An agent node with three outgoing edges can hand the conversation to three different next steps.
- The LLM chooses the path — based on the conversation and, crucially, on your edge labels.
Why edge and agent labels matter
This is the most important concept in the flow builder: Compare:
The same applies to
condition nodes: the node’s description tells the LLM what is being decided, and each edge label describes one outcome. The LLM is forced to pick exactly one edge — so the labels must be mutually exclusive and cover all cases you expect.
Agent node names matter too: they appear in handoff tooling and logs, so Qualification agent beats Agent 2.
A minimal useful flow
Variables
collect and dtmf nodes store results in flow variables (e.g. customer_phone). Variables are included in the call.completed webhook and the call details, so downstream systems get structured data — not just a transcript.
Fallback behavior
- An
agentnode with empty instructions uses the assistant’s system prompt (Advanced prompt) as the base — with node text, that text is appended. The flow never runs an agent without instructions. - A
collectnode that fails after its retry budget takes the outgoing edge labeledfailedif one exists, otherwise the normal edge. - Broken flow configurations never crash a call: the engine falls back to a safe stack and logs a
flow_node_errorevent.