Help center
Back to the app

Transitions and global nodes

Control routing, priority, global entry and returning to the previous node.

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 transitionsIncoming and outgoing transitions

Add and order a route

  1. Choose Add transition, pick the target node and add its conditions.
  2. With several conditions, choose All of these or Any of these. A route with no conditions is taken after the node's reply.
  3. 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.
  4. If you like, set a transition message and the variables to reset. Save the agent.

A transition with two conditions on values in memoryA transition with two conditions on values in memory

ConditionExample
The agent decidesThe person asks to cancel. Add Take and Don't take examples.
A tool answeredThe selected tool answered, failed, or a field of its answer has the expected value.
A value in memorypatientId exists and confirmed equals true.
After a number of repliesThe node has replied a set number of times.
After failed tool callsTools on this node have failed a set number of times.
OtherwiseNo 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 conditionA 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 patientId is missing returns when patientId is 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.