https://retellai.com/?utm_source=discord&utm_medium=seo logo
Help with Logic Split Nodes (and an example of a c...
# ❓・bug-report
v
I have been trying to understand how Logic Split Nodes work and can't get them to work properly for the life of me. Retell seems to ignore information from custom variables when considering the path to take with a Logic Split Node and seems to always default to the -Else- path no matter what I do, and i've tried everything. I've tried searching discord for other people's examples, and all I can seem to find is people asking questions about how this works without getting answers. I've tried looking for documentation in retell's api site and came up short. I asked the help bot on the site and used the example syntax it gave, and that doesn't work either. Any help (and a specific example?) would be SO appreciated to get this working! All i'm trying to understand is: If I have a custom variable that is getting data from an inbound webhook at the start of the call. One of these custom variables is the user's Insurance ( called {{lead_ins}} ). The logic split node should detect if this is filled with some sort of answer and not blank when the call gets to the log split node. If the custom variable is blank, it should proceed one way. If the custom variable is not blank, it should proceed another. I already have "Insurance: {{lead_ins}}" defined in the global prompt. No effect. All calls seems to go to the "Insurance" node anyway. Any help? Thanks!
Hi there! Noticing responses elsewhere and looking forward to an official response from Retell soon 🙂
c
Hey @vesian3783 ! Have we ensured that the variable is being populated correctly? Can you see the actual value instead of variable name in the call history?
v
Hi @chiraggupta1910_87616 ! Yes, the variable was populated during the call. Here is one example, and the call ID just in case: call_98da095c7287e38666140d4fe5c
c
Cool. What is the parent node for the logic split node? Did you try adding these conditions directly as transitions for that node itself?
Just want to check the scenarios we have already covered
v
They have worked previously when I have had them in conversation nodes. However, using logic nodes seems to have no effect
e
equation based transition under dev
c
@vesian3783 Would it be okay if the agent explicitly says that the insurance is Aetna?
This is working correctly. Note that the parent of logic split node has skip response enabled
v
The information is (most of the time) already known by the AI by the time the person picks up the phone, so having to re-say it out loud again seems like it is making the call more verbose unnecessarily (and I have also noticed that people tend to get more agitated and hang up more often the more I have an agent speak), so i'm trying to avoid that in common sense situations like this.
Having said that, if making a quick method of forcing the word(s) to be voiced ahead of time is a bandaid to make it work for the time being, i'm willing to do that. I guess if stuff like this could be documented it would save me a ton of time in the future (I spent quite a lot of time trying to fix this on my own thinking I just wasn't doing it right!)
I appreciate the help
c
Do let me know if the above solution works for you. This should be resolved once we have equation based transitions.
v
Ended up doing this; it's not perfect but seems to work for the time being. Really appreciate your help earlier this week Chirag!
q
doesn't Ai talk inside this node?