worthy-roseW
VAPI14mo ago
worthy-rose

API request to SQUAD does not recognize the variables passed on.

Hi team i have created a squad in my dashboard and using the below sample API request to have the squad perform an outbound call. However the variables passed on to the squad is not being recognized by the assistant. For example the variable {{Fullname}} is John Doe and the first message of the assistant is Hey there Am I speaking with {{fullname}}?. But the the assistant says "Hey there am i speaking with....? instead of hey there am i speaking with John Doe?


{
"squadId": "f7c14f11-2bd7-47ae-977f-3c01ab58abec",
"customer": {
"number": "+61406421813",
"name": "Jeff Harper"
},
"phoneNumberId": "3036a8c6-d792-4f8d-a673-2ef74ed2f10b",
"assistantOverrides": {
"variableValues": {
"CurrentDate": "2024-11-08",
"fullname": "John Smith",
"OriginalCreditor": "Vodafone Australia",
"AccountType": "Telecommunications Services",
"CurrentBalance": "$500",
"DOB": "01/01/1986",
"Postcode": "2000",
"CaseID": "618963b1-3e0f-ef11-9f89-00224896b7dd",
"CustomerID": "STI-102360"
}
}
}
Was this page helpful?