Edges
Edges connect nodes and decide what happens next. Use them to create linear paths, conditional logic, and safe fallbacks.
Types of edges
- Default — always go to the next node.
- If — go to the next node only when a condition is true.
- Else — fallback route when no prior If edges matched.
When to use which edge
- Default: simple, linear flows; single next step.
- If: branching based on state (intent, confidence, tool result, flags).
- Else: graceful fallback when no conditions match.
Quick examples
Basic linear
User Utterance ──(Default)──▶ Model ──(Default)──▶ Reply
Conditional branching
Model ──(If: intent=='escalate_to_human')──▶ Human Agent
└─(Else)───────────────────▶ Reply