https://retellai.com/?utm_source=discord&utm_medium=seo logo
When using a global node, how can I go back to the...
# ❓・ai-evy-support
m
@AI Evy When using a global node, how can I go back to the node I was at before?
a
Thanks for tagging me @maha387. I'll look through relevant sources and get back to you shortly.
​ 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] Discord message from @santoshsingh212e_48455 on 2025-06-27](https://discord.com/channels/1186424376300679209/1186462578310910112/1388024786667704350) [[3] Store the last node in a variable](https://discord.com/channels/1186424376300679209/1396840637189591201) ​
### Answer Unfortunately, Retell AI currently does not support returning from Global Nodes to the original conversation flow position [(1) ]() . This is an architectural limitation . However, there is a workaround you can implement: You can track the previous node using dynamic variables and create a routing mechanism [(2) ]() [(3) ]() . Here's the approach: 1. Define a variable like
last_node
in your first prompt node to store the last node name/id [(2) ]() 2. Make this variable evolve among all prompt nodes 3. After any global node, link a branch node with prompt conditions checking the
last_node
value to redirect to the expected node 4. Note that prompt-defined variables must not use
{{}}
You can also use built-in dynamic system variables like
{{current_agent_state}}
and
{{previous_agent_state}}
to track nodes [(3) ]() . For example, you could use a Logic Split node with a transition condition like:
Copy code
{{previous_agent_state}} == "Qualification" AND User wants to revisit last question
**Important limitation**: When using a global node with skip response linked to a Logic Split node, the value of
{{previous_agent_state}}
becomes "ask_agent", which means you lose the reference to the node you want to return to . If you'd like this capability added as a native feature, you can request it in the feature requests channel [(1) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
what do you mean by this? Note that prompt-defined variables must not use {{}}
a
Thanks for the follow-up, @maha387. I'll get back to you soon.
m
@AI Evy what do you mean by this? Note that prompt-defined variables must not use {{}}
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) ​
### Answer I cannot find information in the available Retell AI documentation that explains the specific statement "prompt-defined variables must not use {{}}". This appears to be guidance from a community discussion rather than official documentation. However, based on the official documentation, I can clarify how dynamic variables work in Retell AI [(1) ]() : Dynamic variables in Retell AI use the
{{variable_name}}
syntax
and can be used in : - Prompts - Begin messages - Tool configurations - Call handling settings - Webhook URLs When setting dynamic variable values (not referencing them) , you provide them as key-value pairs without the curly braces. For example, when creating a phone call [(2) ]() :
Copy code
json
{
  "retell_llm_dynamic_variables": {
    "user_name": "John Smith",
    "product_name": "Premium Plan",
    "account_status": "active"
  }
}
When referencing variables in prompts, you use the
{{}}
syntax [(1) ]() :
Copy code
"Hello {{user_name}}, I understand you're interested in {{product_name}}. How can I help you today?"
The statement you're asking about may have been referring to how you define or set variable values (without
{{}}
) , as opposed to how you reference them in prompts (with
{{}}
) .