https://retellai.com/?utm_source=discord&utm_medium=seo logo
how "Go back to previous node" prompt conditions w...
# ❓・ai-evy-support
q
@AI Evy how "Go back to previous node" prompt conditions work on global nodes?
a
Thanks for tagging me @Q4. I'll look through relevant sources and get back to you shortly.
### Answer Retell AI does not natively support automatically returning from a Global Node to the previous node the conversation was in. [(1) ]() Since global nodes can be transitioned to from anywhere in the flow, there is no built-in mechanism to track or return to the originating node. [(2) ]() ## Workaround You can build this functionality manually by: 1. Storing the last node in a variable before transitioning to the global node 2. Using a Logic Split node to route back based on that variable [(3) ]() This requires you to set up the variable tracking and conditional routing yourself—it's not automatic. --- Check out these potentially useful sources for more details: - [Global Node]() - [Step 3: Add transition conditions]() - [Debug guide]() Would you like a general answer on how you might implement this workaround in more detail?
​ To learn more, see the sources I considered: [[1] Is it possible to return from the Global Node](https://discord.com/channels/1186424376300679209/1399484507530334368) [[2] Global Node](https://docs.retellai.com/build/conversation-flow/global-node) [[3] fallback to the previous node from Global node](https://discord.com/channels/1186424376300679209/1388025209533235261) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
q
@AI Evy what are build in retell variables? eg. last node, call_id etc
a
Thanks for the follow-up, @Q4. I'll get back to you soon.
### Answer Based on the available sources, I don't have a comprehensive list of built-in Retell variables like
last_node
or
call_id
. What I can confirm from the documentation: Dynamic Variables in Conversation Flow: - You can define your own
default_dynamic_variables
in the conversation flow configuration [(1) ]() - Example from the API:
Copy code
json
"default_dynamic_variables": {
  "company_name": "Retell Inc",
  "support_hours": "9 AM - 5 PM"
}
Variable Types for Extract Dynamic Variable Node: -
Text
- Any word or sentence -
Number
- A numeric value -
Enum
- A value from a predefined list -
Boolean
- True or false [(2) ]() Equation Condition Variables: The documentation mentions examples like
{{current_time}}
,
{{user_location}}
,
{{user_age}}
, and
{{name}}
in equation conditions, but these appear to be user-defined dynamic variables passed in before the call, not built-in system variables. [(3) ]() You can check if a variable exists using: -
{{variable_name}} exists
-
{{variable_name}} does not exists
--- I don't have documentation on a complete list of built-in system variables (like
call_id
or
last_node
) . For a definitive list, I'd recommend: - [Contact Sales]() - [Retell AI GitHub]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[3] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.