https://retellai.com/?utm_source=discord&utm_medium=seo logo
HELP: Dynamic Variables and the NEW Logic Split No...
# ❓・bug-report
j
We have a dynamic variable to determine whether we have previously called someone, {{callback}}. I have created a 'Logic Split Node' at the beginning of an Outbound call which checks whether we have previously called the the customer ... {{callback}} = 'Yes' ... which, if working correctly should jump straight to the 'Purpose of the call' node. If {{callback}} = 'No', it should trigger 'Else' and go to our 'Greeting' node. This does not work when testing, see screenshot, can someone offer some assistance please.
Hi, @vesian3783 and @chiraggupta1910_87616 - I see you've both been involved in a similar thread. I wonder if you could offer your expertise?
c
I am following this because Im having a similar issue. There does not seem to be a way to guide logic with dynamic variables
You can get similar functionality accomplished with a conversation node using prompting with the transition something like If {{callback}} = 'Yes', silently transition to the next node.
j
Yeah, we’ve got that working but our initial greeting would sound better and the user journey slicker if we could identify them via whether {{callback}} yes or no.
c
Hi @jockrusky_46520 ! If you do not want a separate node to determine the transition (using a prompt), you can create a separate agent for callback.
j
Hi @chiraggupta1910_87616 I don’t think that answers the original question. Please can you refer to that and the screenshot. The point of a ‘logic split node’ I believe is to make a decision based on a ‘dynamic variable’ not on a conversation.
c
Yes, currently that happens only if there is a mention of underlying condition in the past conversation. Equation based transition (including dynamic variables) is under dev.
j
Ahhhh, ok thank you for clarifying, in which case I have a workaround which isn’t the best solution. Any ideas when equation based transition is likely to be tested and released.
v
Hi @jockrusky_46520 and everyone else! I thought I would chime in here and provide something that is a bit of a follow-up of what I ended up doing; I find that when I ask questions people rarely provide picture examples and I find them helpful for figuring out the logic of things. So, here is how I have the Logic Split Node working at the moment. Again, apparently using dynamic variables ALONE in a logic split node is confirmed to NOT WORK by Retell staff, but they are working on it. It requires the content of the dynamic variable to be mentioned previously in the conversation to work, at this point. So, my temporary solution:
j
That is fantastic, makes perfect sense. Thank you so much.
c
@vesian3783 I wonder if this would work silently to load variables? Something like: "Silently note the known information... Do not say anything to the user in this node. Silently transition to the next node"
g
@Crashbot I added this to the Global Prompt and it worked for me in transferring the incomming call data into Dynamic variables, if thats what your after
j
@chiraggupta1910_87616 , @vesian3783 - I've managed to get it to note the 'Dynamic Variable' before transitioning to the 'Logic Split Node' and then to the __correct__ 'Welcome Node'. Any ideas how I can make sure the agent doesn't speak in the first node? I've tried numerous different 'do not speak' prompts, none work!
c
@chiraggupta1910_87616 I have made many tests with this situation and I cannot get logic split node to recognize the value of a dynamic variable unless a conversation node precedes it. In @jockrusky_46520 's example above you might suggest that he could simply delete the conversation node and go straight into the logic node but in this case the agent will not recognize the value of the variables and it will always transition to else. This issue is compounded by the conversation node not being able to transition without a response from the user. See attached loom which clearly identifies this bug: https://www.loom.com/share/997a155abbf540efb7c082f00c3bcd03
j
In Node settings click 'Skip response', this will allow the conversation node to move to the next node and not wait for a response. I still cannot stop my agent from speaking however. I want them to silently move to the Logic Split Node. In your loom does the agent say 'Yes' silently (to being an existing customer'? It's difficult to make out.
c
In my example she says the word Yes
j
That's a shame! If @chiraggupta1910_87616 can advise how we make the Agent silently transition then we have a solution!! 😃
c
@jockrusky_46520 I just tested more using the skip response setting and it will skip the response if you use a static sentence but she will have to actually say the variable out loud or she will not recognize the dynamic variable. She will only recognize the dynamic variable if the node is set to static AND she states the variable out loud. See loom examples here: https://www.loom.com/share/6ec38314bf764070b1b0729afed2ffb5
j
Frustrating, I hope @chiraggupta1910_87616 can provide us with a fix soon.
k
Hi @chiraggupta1910_87616 . We are still seeing this issue (logic split getting stuck and not transitioning). Has this been fixed? If not, then is there an update on a workaround? Thanks!
a
Wondering the same as the comment above. It is a much needed update! @chiraggupta1910_87616
c
Just to chime in here along with @anton333_50203, @jockrusky_46520 & @kevinstonepdx ... It's mostly because of this bug, I've found the conversation flow agents to be unusable in production. Real conversations dont flow as expected and it becomes a soft error that makes the user experience less than desired.
n
Hey everyone. So apparently this does not work still. Even when the agent mentions the extracted variables the logic split node just chooses the "Else" path in all cases I've tested. Or what am I missing? @chiraggupta1910_87616 Thanks for your support.