https://retellai.com/?utm_source=discord&utm_medium=seo logo
issue with dynamic variables
# ❓・bug-report
d
I am calling make webhook and it is sending the response in this way but my agent is unable to recognize these dynamic variables. {   "call_inbound": {     "dynamic_variables": {         "first_name": "Kumail",         "last_name": "Zaheer"     }   } }
@User
s
try to specify override agent too
also your json is wrong
give it to chatgpt to correct it for you
d
Hi @sanava.ai json is fine , it was just typo
I tried with python and its working fine but when I try with make then agent is unable to get these variables
s
hmm havent used make in a long time.
I use n8n and there it works perfectly fine
there is probably a formatting issue in make
make's json and variables formatting can be tricky sometimes
d
Hmm
s
i bet there is something wrong with the first name and last name variables. This is an example from my n8n workflow which works fine: { "call_inbound": { "override_agent_id": "{{ $('Get Access Token From Subflow').first().json.multi_agent }}", "dynamic_variables": { "appt_info": {{ JSON.stringify($json.appointment_info) }}, "customer_name": {{ JSON.stringify($('Find By Phone').first().json.data.first().name) }}, "locations": {{ JSON.stringify($json.locations) }}, "membership": {{ JSON.stringify($json.membership) }}, "warranty": {{ JSON.stringify($json.warranty) }} } }, "metadata": { "new_existing": "existing_multi" } }
d
Thanks @sanava.ai for sharing the json but there is nothing wrong in my json
r
@Deleted User The main support team can possibly help you, but they're going to need more info... let us know the following: how are you referencing them in your prompt? do you see them in call history on completed calls? can you provide some call_ids where they are not recognized? have you checked the detail logs on calls to see if your webhook is producing any errors?