https://retellai.com/?utm_source=discord&utm_medium=seo logo
equation global transition prompt how does it work
# ❓・ai-evy-support
m
@AI Evy equation global transition prompt how does it work
a
Thanks for tagging me @Mikey. I'll look through relevant sources and get back to you shortly.
### Answer A global node's jump conditions can use a prompt, an equation, or both. Enable Global Node in the node settings, then pick a mode under **Jump Conditions**:[(1)]() - **Prompt**: matches what the caller says, such as
The caller says this is not a good time to continue
matching
I need to call back later
. - **Equation**: compares [dynamic variables]() with deterministic conditions like
{{account_tier}} == premium
. The LLM does not evaluate these. - **Combined**: mixes equations with an optional prompt. All requires every equation and the prompt to match. Any accepts a matching equation or the prompt. [(1)]() In Equation or Combined mode, click Add to configure an equation. The All / Any selector also controls how multiple equations are combined.[(1)]() Example: route premium callers to a specialist 1. Set
account_tier
to
premium
in the call's dynamic variables. 2. Choose Combined, then select All. 3. Add the equation
{{account_tier}} == premium
. 4. Set the prompt to
The caller asks to speak to a human
. Both conditions must match. With Any, the equation alone would be enough, so a premium caller could be transferred before asking for a human. If the prompt is empty, Combined evaluates only the equations. If you add a prompt without equations, it evaluates only the prompt.[(1)]() When global conditions are evaluated - Global conditions take part in the transition checks for the current node. - Matching local equation edges take priority over global conditions. - Equation matches are deterministi
c and can trigger without another user utterance, including after a subagent's tool result updates dynamic variables. - Prompt matches follow normal prompt-transition timing. [(1)]() Among equations, evaluation is top to bottom and the first one that evaluates true wins. Prompt conditions are evaluated together by the LLM, alongside any global node entry conditions, and it picks the single best match or none.[(2)]() Equation operators -
==
, `!=`: case-insensitive string match, with no numeric coercion. -
>
,
>=
,
<
, `<=`: numeric comparison. If either side is empty or not a number, the equation evaluates to false. -
Contains
, `Not Contains`: case-insensitive substring check. -
exists
, `does not exist`: whether the dynamic variable has been set. An empty string still counts as set. [(2)]() Equation conditions can only reference dynamic variables. For information learned during the call, use a prompt condition, or capture the value first with an [extract DV node]() and branch on it afterwards.[(2)]() Each global node adds a transition option across the whole flow, so use them sparingly.[(3)]()
​ To learn more, see the sources I considered: [[1] Global Node](https://docs.retellai.com/build/conversation-flow/global-node) [[2] Transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[3] Conversation flow best practices](https://docs.retellai.com/build/conversation-flow/best-practices) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.