https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I prevent a caller from entering a global c...
# ❓・ai-evy-support
j
@AI Evy how do I prevent a caller from entering a global conversation node more than once
a
Thanks for tagging me @J3R. I'll look through relevant sources and get back to you shortly.
### Answer --- Retell AI does not currently provide a built-in mechanism to limit how many times a caller can enter a global node. [(1) ]() However, here are some potential workarounds: 1. **Use a dynamic variable as a flag**: You could set a dynamic variable (e.g.,
{{global_node_visited}}
) to
true
when the caller enters the global node. Then, modify your global node's transition condition to include a check like
{{global_node_visited}} != "true"
using an equation-based condition. [(2) ]() 2. **Restructure with a split node**: After the global node, use a split node to check the flag variable and route accordingly—either continuing the global node logic (if first visit) or redirecting elsewhere (if already visited) . Keep in mind that global nodes can be transitioned to from anywhere in the flow whenever their condition is met, so the flag approach requires careful prompt engineering to ensure the condition properly excludes repeat visits. [(1) ]() Check out these potentially useful sources for more details: - [Global Node]() - [Step 3: Add transition conditions]() - [Create Conversation Flow]() Would you like a general answer on implementing this pattern, or do you have a specific use case in mind?
​ To learn more, see the sources I considered: [[1] Global Node](https://docs.retellai.com/build/conversation-flow/global-node) [[2] 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.
j
what the exact text to past into the global conversational node and into the gloabl node field
@AI Evy what the exact text to past into the global conversational node and into the gloabl node field
a
Thanks for the follow-up, @J3R. I'll get back to you soon.
### Answer The documentation does not provide exact copy-paste text for implementing a "visit once only" flag in global nodes. [(1) ]() However, based on how transition conditions work, here's what you would configure: In the Global Node's condition field, you would write something like:
Copy code
When user indicates this is not a good time to talk AND {{global_node_visited}} != "true"
[(1) ]() [(2) ]() For equation-based conditions, the format uses operators like
==
,
Contains
,
Not Contains
, and
Not Equal
for string comparisons. [(2) ]() Example equation condition syntax:
Copy code
{{global_node_visited}} != "true"
The documentation shows conditions are written as natural language descriptions like: -
When user indicates they want to book a meeting
-
User declines the invitation
You would need to: 1. Create a dynamic variable (e.g.,
{{global_node_visited}}
) 2. Set it to
"true"
when entering the global node (via a function or within the flow) 3. Add the check to your global node's transition condition Unfortunately, the sources don't provide the exact implementation steps for setting the variable value within the node itself. Would you like a general answer on how this pattern might work, or would you prefer to reach out to support for specific implementation guidance?
​ To learn more, see the sources I considered: [[1] Global Node](https://docs.retellai.com/build/conversation-flow/global-node) [[2] 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.
j
@AI Evy how do i creat the variable in teh node?
a
Thanks for the follow-up, @J3R. I'll get back to you soon.
### Answer To create a variable within a Conversation Flow, use the Extract Dynamic Variable Node. [(1) ]() Here's how to set it up: 1. Add an Extract Dynamic Variable Node to your flow 2. **Fill in the following details**: - Variable Name – A short name to reference this variable (e.g.,
global_node_visited
) - Description – A brief explanation of what this value should be - Variable Type – Choose from
Text
,
Number
,
Enum
, or
Boolean
- Enum Options – Options to choose from (only when type is Enum) **Available Variable Types**: - Text - Any word or sentence. Examples:
"headache"
,
"John Smith"
- Number - A numeric value. Examples:
42
,
98.6
- Enum - A value from a predefined list. Examples:
"Yes"
,
"No"
,
"Maybe"
- Boolean - True or false For your use case of tracking whether a global node was visited, you could create a Boolean variable named
global_node_visited
and have it extracted/set when the caller enters that node. Check out the full documentation here: [Extract Dynamic Variable Node]()
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.