https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am using conversational agent and in that you gu...
# ❓・ai-evy-support
m
@AI Evy I am using conversational agent and in that you guys have a feature that for the transition we can add conditions based on the existance of the dynamic variable but its not working fine, it always go in the node where i have the value exisits condition
a
Thanks for tagging me @mansoortariq222. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, the dynamic variable existence check should work correctly when properly configured [(1) ]() . Let me help troubleshoot this issue. For dynamic variable existence conditions, you should use equation-based transitions with this exact syntax :
Copy code
- {{variable_name}} exists
- {{variable_name}} not exists
Here are some key points to check: **Evaluation Order**: All equation conditions are evaluated first, then prompt conditions . Equation conditions are evaluated from top to bottom, and the agent transitions on the first condition that evaluates to true . **Variable Requirements**: 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 during the call, you should use prompt conditions instead . **Transition Timing**: Transitions usually happen after the user speaks, but this can vary based on node type . You can see which node is currently highlighted in the dashboard during testing to track transitions . To debug your issue: 1. Verify your dynamic variable is properly defined and passed to the agent 2. Check the order of your transition conditions - the "exists" condition might be placed before other conditions 3. Test in the dashboard to see which node is highlighted and when transitions occur 4. Consider using prompt conditions if the variable is extracted during the conversation rather than passed in initially If the issue persists after checking these points, you may want to contact support for further assistance.
​ 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.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
m
i have tow conditions {{intro_text}} exists then go on this node {intro_text}} does not exists then go on other node. i am testing via test agent, and i am not passing into_text value, still its going in the exists condition @AI Evy
a
Thanks for the follow-up, @mansoortariq222. I'll get back to you soon.
### Answer I see the issue - you have a typo in your second condition. You're missing one opening curly brace
{
in
{intro_text}}
instead of
{{intro_text}}
[(1) ]() . Your conditions should be:
Copy code
- {{intro_text}} exists
- {{intro_text}} does not exist
Note that the correct syntax is
does not exist
(singular) , not
does not exists
. Additionally, there's a known behavior with dynamic variables in the test agent where values might not persist as expected between sessions [(2) ]() . The test environment is designed as a runtime test, and some input handling may differ from production behavior . To troubleshoot further: 1. **Fix the syntax**: Ensure both conditions use the proper
{{intro_text}}
format [(1) ]() 2. **Check evaluation order**: Equation conditions are evaluated from top to bottom, and the agent transitions on the first condition that evaluates to true 3. **Verify variable handling**: You can only use variables that are passed in as dynamic variables for equation conditions If you're still experiencing issues after fixing the syntax, try setting up default dynamic variables at the agent level to ensure consistent behavior during testing [(3) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Dynamic variables not persisted for test agent](https://discord.com/channels/1186424376300679209/1419312690110660740) [[3] 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.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.