https://retellai.com/?utm_source=discord&utm_medium=seo logo
Function transitions based on variables not workin...
# ❓・bug-report
p
As you can see from the screenshot, my function transitions are not working. It transitions to the success state even when the variable "success" is returned as false. https://cdn.discordapp.com/attachments/1466539954430672997/1466539954745376971/Screenshot_2026-01-29_at_4.04.48_PM.png?ex=697d1d44&is=697bcbc4&hm=e09aeeb1ffe9fe8e129827e2cf4eeead58a1bdafc32ff01c0faf025141877b83&
o
Hello @pymlu16 , can you share the call id
p
This is a test chat, not a call. My agent id is: agent_54683001abc711bb3e0e57c055
o
I would need a call id to able to investigate better ,but from what I see from this screenshot , the success is not a variable here , the function is returning an error and it the response could be a string not a json and if its a json you will need to use the response variable inside the function to set it as variable and also try to use the prompt transition it can be easier to use and in this case it will work fine Or try reproduce it and share a call id so I can take a deeper look