anshu
04/30/2025, 11:41 AMVapi Support Bot
04/30/2025, 11:43 AMrestaurantName and restaurantPhone variables defined.
First, define these variables in your assistant configuration. Then use the call update API correctly:
json
// PATCH /call/{callId}
{
"name": "Optional call name",
"assistantOverrides": {
"variableValues": {
"restaurantName": "DF restaurant",
"restaurantPhone": "03 5678 8907"
}
}
}
Make sure these variable names match exactly what's defined in your assistant's prompts (using {{variableName}} format).
Sources:
- [Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
- [Call Update API](https://docs.vapi.ai/api-reference/calls/update)anshu
04/30/2025, 11:54 AMEMMANUEL
04/30/2025, 12:29 PManshu
04/30/2025, 12:33 PManshu
04/30/2025, 12:33 PMEMMANUEL
04/30/2025, 12:34 PMVapi
04/30/2025, 8:03 PManshu
04/30/2025, 10:22 PManshu
04/30/2025, 10:22 PManshu
05/01/2025, 8:54 AMVapi
05/01/2025, 11:16 AM"variableValues" in the "assistantOverrides" section to set dynamic variables for your assistant. Here's a quick example to guide you:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"greeting": "Hi, welcome to our service!",
"number": "+1234567890"
}
},
"customer": {
"number": "+1234567890"
},
"phoneNumberId": "your-phone-id"
}
Ensure your assistant's prompts include placeholders like {{greeting}} to apply these dynamic variables. If the variables are not setting correctly, double-check the format and ensure they're correctly implemented in your assistant's messages. If you need further assistance, feel free to reach out.anshu
05/02/2025, 1:38 AMVapi
05/05/2025, 9:17 PManshu
05/10/2025, 12:30 AManshu
05/10/2025, 12:31 AM