teddyf0595_18280
08/22/2025, 10:14 PMAI Evy
08/22/2025, 10:14 PMAI Evy
08/22/2025, 10:14 PM"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
Dynamic variables use double curly braces syntax like {{variable_name}} [(3) ]() . They can be used in various parts of the agent including prompts, begin messages, tool call URLs, and tool call descriptions .
One important edge case to be aware of: when a dynamic variable is not assigned a value, it will remain unchanged in the output . For example, if user_name is not set, the output will show "Hello {{user_name}}, how can I help you today?" rather than being replaced with an empty string .
To check if a dynamic variable is not set, you can use the equation {{variable_name}} contains {{ in conversation flow, which would evaluate to true if it's not set .
Could you provide more specific details about what type of variable you're trying to set and what error message you're encountering? This would help identify the specific issue you're facing.AI Evy
08/22/2025, 10:14 PMAI Evy
08/22/2025, 10:14 PMteddyf0595_18280
08/22/2025, 10:15 PMAI Evy
08/22/2025, 10:15 PMAI Evy
08/22/2025, 10:15 PMoperatorNumber) and directly assign the Value (e.g., 1564) .
Dynamic variables in Retell AI use double curly braces syntax like {{variable_name}} [(2) ]() . These can be used in various parts of the agent including prompts, begin messages, tool call URLs, and tool call descriptions .
However, the conditional logic you're describing (if {{agent_number}} is +12123456789, then set operatorNumber to 1564) appears to require more complex conditional branching than what's explicitly documented in the available sources. The sources don't provide specific examples of implementing conditional variable assignment based on comparing dynamic variable values.
For your specific use case of setting different operator numbers based on the agent number, you might need to use conversation flow transitions with conditions, but the exact implementation details for this type of conditional variable setting aren't covered in the available documentation.
I'd recommend checking out these potentially useful sources for more detailed conversation flow documentation, or you could ask for a general answer if you'd like me to suggest possible approaches based on general knowledge.AI Evy
08/22/2025, 10:15 PMAI Evy
08/22/2025, 10:15 PM