https://retellai.com/?utm_source=discord&utm_medium=seo logo
Extracted Dynamic Variables not sending through cu...
# ❓・bug-report
s
I have a get_appointment_availability tool that is supposed to send information to my backend that I use to check appointment availability in my system. I use the extract dynamic variable nodes throughout my flow to make sure I have the correct information, but when I try to send those dynamic variables to my backend, they come back as undefined. I can see in my call history that the variables are being extracted, so I'm not sure why it's not populating. The only variable that shows up is the one that I don't provide a dynamic variable for. A good call ID would be call_fc96ffedf96f755e02cd30f716a. Here's some additional photos to show what I'm seeing: https://cdn.discordapp.com/attachments/1442542149546803312/1442542149794005132/image.png?ex=6942d091&is=69417f11&hm=79852ecfa2c00d71382627ee02d16187439a7f9537c946b80810dc9dee15e2d7& https://cdn.discordapp.com/attachments/1442542149546803312/1442542150108844114/image.png?ex=6942d091&is=69417f11&hm=194c7cf6e0d25cf43d99688c64e607168cb6f95ba3dac03e7ca6866643acfeec&
f
I can help! The issue is that your dynamic variables are being extracted correctly, but they're not being passed to the tool call properly. Looking at your screenshots, I can see the data structure mismatch - the tool is receiving undefined values for the nested properties like vehicle.year, vehicle.make, etc., even though they're being extracted. Quick question: In your tool configuration, are you mapping the dynamic variables using dot notation (like {{vehicle.year}}) or are you passing the entire vehicle object as {{vehicle}}?
s
Thanks Flashtum! Apologies for the confusion, but could you clarify more? I just want to make sure I give you as much info as you need. I extract the values as separate variables and then keep them together by putting them in the vehicle object before I send them out. I do have multiple extraction nodes though, if that makes a difference. https://cdn.discordapp.com/attachments/1442542149546803312/1442550847832723676/image.png?ex=6925d7ab&is=6924862b&hm=abdcb64599a576770007b76984660e174ac4481556a978fea139d2c0e1734eab&
o
Hello @summerpuppet471 , I see you are using variables like this :scheduling_info_extraction.make which won't work
use the variable name directly like {{make}}
f
You're grouping the variables into a vehicle object, but the tool isn't reading the nested structure properly. That's causing the undefined values. I can fix this for you - it's a quick structural issue. Want to discuss this privately? I can walk you through the solution or handle it directly for you.
s
Yes I'd definitely appreciate discussing it more
Thanks for the message Omar, I tried that in the beginning in the original screenshots. I switched it to that while I was trying to debug and try out different solutions
Hey @Flashtum I wanted to follow up here to see if you had any time to look into this? I'm still having the same issue
f
Alright
s
Hey @Flashtum, thanks again for the time. I was wondering if there was any update?
o
Hello @summerpuppet471 , I see you changed to json format in the function parameters, and I just checked your function and see its working fine. https://cdn.discordapp.com/attachments/1442542149546803312/1445112319800770713/image.png?ex=692f2939&is=692dd7b9&hm=40090a6b15f078a01076b4a59e236e7363c11dad4c88274c1e7b0d03d306256a&
Can you try again now and let me know if its working or not.
s
Thank you @Omar Ashraf | Community Lead! It is working now