suppertime.
05/29/2025, 5:07 PMVapi Support Bot
05/29/2025, 5:09 PMHello, my name is {{name}}
API request:
json
"variableValues": {
"name": "Jones"
}
This will ensure the assistant says "Hello, my name is Jones" as expected.
Sources:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
- [Vapi Personalization Guide](https://docs.vapi.ai/assistants/personalization)suppertime.
05/29/2025, 5:17 PMVapi Support Bot
05/29/2025, 5:19 PMassistantOverrides out of the customer object and use string-based variable names.
Here’s the correct API request and prompt:
Prompt:
Hello, my name is {{Last}}
API request:
json
{
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-id",
"customer": {
"number": "+13365540000"
},
"assistantOverrides": {
"variableValues": {
"Last": "Jones"
}
}
}
This will ensure the assistant says "Hello, my name is Jones" as expected.
[See documentation](https://docs.vapi.ai/assistants/dynamic-variables)
Source:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)Vapi Support Bot
05/29/2025, 5:30 PMsuppertime.
05/29/2025, 5:34 PMVapi Support Bot
05/29/2025, 5:34 PMassistantOverrides inside the customer object is a common mistake, especially if the tool suggests it. The correct approach is to keep assistantOverrides at the root level of your API request. This way, your dynamic variables will work as expected and your assistant will use the values you provide. Glad you were able to get it working!Vapi Support Bot
05/29/2025, 5:36 PMassistantOverrides at the root level of your API request, not inside the customer object. Here’s the correct structure:
json
{
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-id",
"customer": { "number": "+13365540000" },
"assistantOverrides": {
"variableValues": { "Last": "Jones" }
}
}
This will ensure your dynamic variable works as expected.
Reference: [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
Source:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)Vapi Support Bot
05/29/2025, 5:37 PMassistantOverrides at the root level of your API request and use string-based variable names.
Here’s the correct format:
json
{
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-id",
"customer": {
"number": "+13365541725"
},
"assistantOverrides": {
"variableValues": {
"Last": "Jones"
}
}
}
Set your prompt to:
Hello, my name is {{Last}}
This will make the assistant say "Hello, my name is Jones" as expected.
[See documentation for details](https://docs.vapi.ai/assistants/dynamic-variables)
Sources:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
- [Vapi Personalization Guide](https://docs.vapi.ai/assistants/personalization)Vapi Support Bot
05/29/2025, 5:37 PMassistantOverrides at the root level of your API request, not inside customer. Here’s the correct structure:
json
{
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-id",
"customer": {
"number": "+13365541725"
},
"assistantOverrides": {
"variableValues": {
"Last": "Jones"
}
}
}
This will allow your assistant to say "Hello, my name is Jones" when using {{Last}} in your prompt.
[See official documentation for details.](https://docs.vapi.ai/assistants/dynamic-variables)
Source:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)Vapi Support Bot
05/29/2025, 5:37 PMassistantOverrides at the root level of your API request, not inside the customer object.
Here’s the correct format:
json
{
"assistantId": "your-assistant-id",
"phoneNumberId": "your-phone-id",
"customer": {
"number": "+13365541725"
},
"assistantOverrides": {
"variableValues": {
"Last": "Jones"
}
}
}
Use {{Last}} in your assistant's prompt to reference the variable.
[See documentation](https://docs.vapi.ai/assistants/dynamic-variables)
Source:
- [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)Chiranjeet Mishra
05/30/2025, 10:56 AM