A transition connects two nodes and says when the conversation takes that route. A node's Transitions tab shows the transitions into it and out of it.
Incoming and outgoing transitions
Add and order a route
- Choose Add transition, pick the target node and add its conditions.
- With several conditions, choose All of these or Any of these. A route with no conditions is taken after the node's reply.
- Put specific routes above broad ones: outgoing transitions are checked top to bottom, and the first that matches is taken. If none matches, the conversation stays on the node.
- If you like, set a transition message and the variables to reset. Save the agent.
A transition with two conditions on values in memory
| Condition | Example |
|---|---|
| The agent decides | The person asks to cancel. Add Take and Don't take examples. |
| A tool answered | The selected tool answered, failed, or a field of its answer has the expected value. |
| A value in memory | patientId exists and confirmed equals true. |
| After a number of replies | The node has replied a set number of times. |
| After failed tool calls | Tools on this node have failed a set number of times. |
| Otherwise | No other transition matched. A failed tool needs its own A tool answered condition. |
For an agent decision, write a clear description and add examples of what should and should not take the route; the model decides, so test the borderline cases.
Global entry
Turn on Global node on a node's Transitions tab to make it reachable from any node when its entry condition matches. Describe the request and add examples. For a Questions node, “What are your opening hours?” is a Take example; “Yes, book it” is a Don't take one.
A global node and its entry condition
Return after an interruption
Turn on Return to the node the conversation came from on a global entry or a transition to go back to the interrupted task afterwards.
- When the agent took the route by its own decision, it returns when it decides the detour is done.
- When the route was taken because of values in memory, it returns once those conditions no longer hold. A detour entered because
patientIdis missing returns whenpatientIdis known.
If the conversation leaves the detour through another transition, it does not return.
Reset task values
Reset variables on a transition clears values of a finished task when the transition is taken, for example the old time and confirmation. The conditions are checked first, then the values are cleared. Keep what the next task still needs, such as the caller's details. Messages and contact data are not touched.