https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can we use dynamic variable in the transition cond...
# ❓・ai-evy-support
m
@AI Evy Can we use dynamic variable in the transition conditions ?
a
Thanks for tagging me @micheldenizob. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can use dynamic variables in transition conditions, specifically in equation conditions [(1) ]() . For equation conditions, you can use dynamic variables that are passed in as dynamic variables . Here are examples of equation conditions using dynamic variables:
Copy code
- {{user_age}} > 18
- {{current_time}} > 9 AND {{current_time}} < 18
- {{user_location}} == "New York"
- {{user_location}} != "New York"
- "New York, Los Angeles" CONTAINS {{user_location}}
- "New York, Los Angeles" NOT CONTAINS {{user_location}}
- {{user_age}} < 18 OR {{user_location}} == "New York"
**Important limitation**: You can only use variables that are passed in as dynamic variables for equation conditions . If you need to use information extracted by the LLM (such as information learned during the call) , you need to use prompt conditions instead . The comparison operators work as follows : -
==
,
Contains
,
Not Contains
, and
Not Equal
are string comparisons and do not require numerical input - Other comparison operators require numerical input and will always evaluate to false if the input is not a number
​ To learn more, see the sources I considered: [[1] 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.
m
@AI Evy But can we use dynamic variables in prompt conditions ?
a
Thanks for the follow-up, @micheldenizob. I'll get back to you soon.
### Answer Based on the available sources, I can see that dynamic variables can be used in prompts [(1) ]() , but the sources don't provide specific information about using dynamic variables in prompt conditions within conversation flows. The documentation shows that dynamic variables can be used in various places including prompts, begin messages, tool call URLs, and tool call descriptions . However, the specific capability of using dynamic variables within prompt conditions for conversation flow transitions is not explicitly documented in the available sources. For this specific technical question about prompt conditions in conversation flows, I'd recommend: 1. Visit [Contact Sales]() 2. Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.