Skip to main content

Concept

Agents can capture variables that summarize outcomes (e.g., status or category). You can reference these as decision variables to control which edge to traverse.
1

Capture decision variables

In the agent’s Variables tab, add Capture Variables the agent will produce (e.g., status).
2

Select decision variables

In the Decision tab, pick variables that drive branching.
3

Label edges

Label edges with descriptive outcomes (e.g., “approved”, “needs_review”).
Decision variable selection is configured in drawer/Decision.tsx. At runtime, your backend logic evaluates conditions to choose the edge.