Parameter with incorrect values being sent while c...
# support
a
I am calling Vapi http endpoint to make an outbound call. I am passing certain variables to it under assistantOverrides.variableValues. I have setup a function call with parameter as "mrn". I am expecting that when Vapi calls my webhook endpoint, it passes "mrn" parameter with value as "MRN12345" but its passing "John Doe" in "mrn". What am i doing wrong? { "customer":{ "number":"+1xxxxxxxx" }, "assistantId":"xxxx", "phoneNumberId":"xxxx", "assistantOverrides":{ "variableValues":{ "current_date":"2025-05-16T10:14:23.644585", "provider_name":"Dr. John Smith", "department":"Cardiology", "available_date":"2025-05-09T09:14:23.644585", "patient_name":"John Doe", "mrn":"MRN12345", "call_session_id":"xxxx", "current_appointment_id":"xxxx", "available_appointment_id":"xxx" } } }
k
Make sure your assistant is set to use mrn and not patient_name.
a
Yes, i checked that. Even other parameter values are not being set correctly.
k
Check they exactly match what's used in your assistant's prompts, are saved properly in the dashboard, and that the assistant is actually referencing those variables like this {{mrn}} in its configuration.
a
these variables were not being referenced in my prompt. I added a hidden reference for them in my system prompt and now i see some of these parameters populating correctly. But for some of the parameters the values are getting mismatched across variables. For eg: i have current_appt_id, available_appt_id, session_id. I see the available_appt_id value being passed in both current_appt_id and available_appt_id.
k
The variable mismatch is likely due to incorrect or duplicate references in your prompt, review and fix each variable placeholder to ensure they map correctly.
s
@Aditya Checking if you are still blocked with this issue?
2 Views