Felix
06/06/2025, 7:36 AMVapi Support Bot
06/06/2025, 7:38 AMemail or company directly to the customer object in the /call API request. Instead, put your custom attributes inside assistantOverrides.variableValues and reference them in your assistant as {{email}}, {{company}}, etc.
Example:
json
{
"customer": { "number": "+123132213" },
"assistantId": "xxxxx",
"phoneNumberId": "xxxx",
"assistantOverrides": {
"variableValues": {
"name": "Felix",
"email": "felix@felix.com",
"company": "super duper company",
"referrer": "google"
}
}
}
This should resolve the error and let you use those variables in your assistant prompts.
Sources:
- [Vapi Docs: Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
- [Vapi Docs: Personalization](https://docs.vapi.ai/assistants/personalization)Vapi Support Bot
06/06/2025, 7:55 AMFelix
06/06/2025, 7:55 AMKings_big💫
06/06/2025, 8:02 AM