https://retellai.com/?utm_source=discord&utm_medium=seo logo
Transitions do not work with equations and dynamic...
# ❓・bug-report
m
When I pass a dynamic variable e.g., day = 1 and put it in conversation node, or use a logic split node, the conversation is stuck. I expect to move through the flow with or without (ideally) a user response
o
Hello can you show me an example this not clear enough for me
a
Hello everyone, I'm experiencing the same issue. I'm trying to use a variable to conditionally split the flow into two different paths. The idea is that the variable's value should determine which branch is taken. However, the node responsible for the split doesn't seem to evaluate the variable. Instead of reading its value, the logic gets stuck or follows a default path. Has anyone else encountered this when trying to use a variable to control a conditional split?" https://cdn.discordapp.com/attachments/1430615179967856663/1430726841961807893/image.png?ex=68fad3b4&is=68f98234&hm=e80f78ae393c993a08d578d92faf19ae11882ff2897130d278218d54ef193db8&
o
Can you please create separate tickets with more context
c
@AI Evy @Omar Ashraf | Community Lead I am experiencing this issue as well... I've tried so many variations but keep getting stuck on the same conversation or logic node. Extremely frustrating and I also the documentations are not detailed and updated to the current version of retell. As you can see in my image, the logic should be very simple, if {{ status }} exists and if {{ status }} does not exists. In the test chat results you can see that the status does exist however I get stuck in this node. In the equation logic I have tried the following variations: {{status}} exists {{ status }} exists *I'm not sure if spacing matters for the dynamic variable. I have tried using the prompt transition with the same logic and does not work: ex. {{ status }} exists {{status}} exists status exists <---- *Notice I used no "{ }" Note: I am using a Conversation Agent on Chrome on a windows 11 OS https://cdn.discordapp.com/attachments/1430615179967856663/1437024697316409365/image.png?ex=6911bd0a&is=69106b8a&hm=8ece5ed9b225be965aee8c2cf97cf498576a136cc9183a88c2c7ee8480655065&
a
Thanks for tagging me @cavan_mitchell. I'll look through relevant sources and get back to you shortly.
### Answer This is a known issue some users have encountered with logic split nodes and dynamic variables in Retell AI. Here are a few key points from the official documentation and user reports that may help: - Logic split nodes evaluate conditions immediately when entered and do not prompt the user [(1) ]() . - Dynamic variables must be passed as strings, and their names must match exactly in the condition editor (no extra spaces, correct casing) [(2) ]() [(3) ]() . - When checking if a variable exists in a logic split node, the documented approach is to use an equation like:
Copy code
{{status}} exists
This should return true if the variable is present [(2) ]() . From user discussions, there are a few troubleshooting steps: - If the logic split node or conversation node gets stuck, ensure the dynamic variable is actually being set and passed as a string. You can test this by adding a temporary conversation node that says something like `Hello {{status}}`—if it outputs the value, the variable is set correctly [(3) ]() . - In the logic split node's condition editor, you should write the variable name and value without quotes (e.g.,
status = 1
) . The system performs a string match only . - Whitespace or case mismatches can cause the condition to fail. Try using a "contains" condition to debug if this is the issue . - Sometimes, adding a brief conversation node before the logic split node can help initialize variables before branching occurs . If these steps do not resolve the issue, it could be related to when or how the variable is being set, or there may be a more complex timing issue as discussed in community threads [(4) ]() .
​ To learn more, see the sources I considered: [[1] Logic Split Node](https://docs.retellai.com/build/conversation-flow/logic-split-node) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[4] Logic split node stuck](https://discord.com/channels/1186424376300679209/1435621223294959616) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
Hello @cavan_mitchell , can you create a separate ticket , and show a screenshot using the status in conversation node with static mode.
c
ok