https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm having problems with the logic split node not ...
# ❓・ai-evy-support
f
@AI Evy I'm having problems with the logic split node not working correctly.
a
Thanks for tagging me @fakedane. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation and community discussions, here are the most common Logic Split Node issues and solutions: ## Variable Initialization Timing The most frequent issue is that Logic Split Nodes can execute before dynamic variables are fully "hydrated" (loaded into memory) [(1) ]() . When a Logic Split Node runs too early in the flow, it may see variables as null/empty and default to the else path . **Solution**: Add a "hydration guard" condition to check if the variable exists before comparing its value . For example: - First condition:
agent_vm_caller_name exists
or
agent_vm_caller_name != ""
- Then your actual comparison condition ## Variable Matching Issues Variables must match exactly - whitespace, case sensitivity, and data type all matter . If your condition isn't working: 1. Try using "contains" instead of "equals" to test if it's a whitespace/case issue 2. Ensure variables are sent as strings in your API payload 3. Check that the variable is actually populated by reviewing call logs [(2) ]() ## Flow Positioning If variables come from webhooks at call start, consider adding a brief conversation node before the Logic Split Node to allow variables to fully initialize [(1) ]() . This creates a small delay that ensures variables are ready. ## Alternative Approach If conditional logic continues to fail, prompt-based logic often works more reliably . You can add instructions in your agent prompt to check the variable and use LLM decision-making instead of conditional nodes . The Logic Split Node is designed to branch conversation flow based on conditions and transitions happen immediately when the agent enters the node [(3) ](
. Make sure your conditions are properly configured with an else destination, as this node always requires a default path .
​ To learn more, see the sources I considered: [[1] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[2] Help with Logic Split Nodes (and an example of a custom variable being used would be lovely!)](https://discord.com/channels/1186424376300679209/1358825261986087126) [[3] Logic Split Node](https://docs.retellai.com/build/conversation-flow/logic-split-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.