Gregb
06/18/2025, 11:56 AMVapi Support Bot
06/18/2025, 11:57 AMtext
Hello, {{name}}!
When making the call via the API, set the variable value in `assistantOverrides.variableValues`:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
This will personalize the greeting with the provided value.
Note: You must set variable values via the API, not directly in the dashboard.
[See documentation](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call)
Source:
- [Vapi documentation: Using dynamic variables in a phone call](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call)Kings_big💫
06/18/2025, 6:10 PM