https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am creating an agent with both inbound and outbo...
# ❓・ai-evy-support
m
@AI Evy I am creating an agent with both inbound and outbound call. I added a logic spilt node at the beginning where the condition is call.direction==outbound but while making the call- the agent always picks up the inbound call node! What should I do?
a
Thanks for tagging me @masnun0732. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I can see that Logic Split Nodes are designed to branch conversation flows based on conditions [(1) ]() . However, the sources don't explicitly document how to check
call.direction
or confirm the exact syntax for detecting inbound vs. outbound calls in a Logic Split Node. From community discussions, there are known issues with Logic Split Nodes not evaluating conditions correctly [(2) ]() [(3) ]() . One community member mentioned using different agents for inbound calls as a workaround [(4) ]() . Here are a few things to check: 1. **Variable format**: Ensure your condition syntax matches exactly what Retell expects. Variables often need to be passed as strings in the correct format [(2) ]() . 2. **Parent node configuration**: If your Logic Split Node has a parent node with "skip response" enabled, this can affect how conditions are evaluated [(3) ]() . 3. **Alternative approach**: Consider using dynamic variables set via
retell_llm_dynamic_variables
for outbound calls or
inbound_dynamic_variables_webhook_url
for inbound calls to distinguish call direction [(4) ]() . Since the exact syntax for
call.direction
isn't documented in the available sources, I recommend reaching out to Retell support for the correct way to check call direction in Logic Split Nodes. You can: - Visit [Contact Sales](
ai.octolane.com/) - Visit [) Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Logic Split Node](https://docs.retellai.com/build/conversation-flow/logic-split-node) [[2] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[3] Help with Logic Split Nodes (and an example of a custom variable being used would be lovely!)](https://discord.com/channels/1186424376300679209/1358825261986087126) [[4] Discord message from @dufour_61356 on 2024-06-12](https://discord.com/channels/1186424376300679209/1186462578310910112/1250369495961178153) ​