https://retellai.com/?utm_source=discord&utm_medium=seo logo
{{variable}} / Logic Split Node Issue
# ❓・bug-report
a
For equation condition, I enter a list of 5 digit numbers separated by commas on the left side, I select the operation "CONTAINS", then enter a variable on the right side. (The prior node speaks the value of the variable to confirm it is indeed loaded.) When the value of the variable IS CONTAINED in the list, the condition fails and 'else' is selected. If I remove the variable and simply enter the value of the variable, which IS CONTAINED in the list, the condition succeeds. Why is this not working when I try to use a variable???
o
Hello @aitoolworx , are you using extract variables to set the variable ?
And try the prompt, some time the equation needs the input to be exactly the same so try the prompt and let me know if it works for you .
a
I'm getting the variable from a function webhook response, then the agent speaks the value prior to logic split node. I am trying to get the equation to work because prompt was not 100% reliable.
o
Can you show me a screenshot of the equation and the value of the input
Is this screenshot helpful, or do you need more info?
o
I tried to reproduce but it's working fine , the only problem it could be that the the variable doesn't really match, can you show me the output of the node before it but put it at static not prompt.
a
Okay - when I change my "Speak it back to me" conversation node to "static", it does not have the variable. In the attached screenshot, you can see where the webhook response does have the variable filled as 60014. https://cdn.discordapp.com/attachments/1417167639524151441/1417185922843152384/static.png?ex=68c990be&is=68c83f3e&hm=080044f815c69bf3ba327dd90b8bf893ed175cf34ca59ee7345d8c74e8b3fb2c&
o
Okay, good we spot where is the problem is .
now
use Response Variables to set the variable
a
Oh wow. Never had to do this before.
I thought retell automaticlly had them after the response.
o
No but the LLM will understand what you mean , but since you are using equation , you need set the variable to the right value
a
Thank you ONE MILLION TIMES for your help!!!