harsh-harlequin
harsh-harlequin3mo ago

greeting

can you do dynamic fields in the greeting
2 Replies
Vapi
Vapi3mo ago
Yes, you can use dynamic fields in the greeting!
Just include variables in your greeting prompt using double curly braces, like this:
Hello, {{name}}!
Hello, {{name}}!
When making the call via the API, set the variable value in assistantOverrides.variableValues:
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
{
"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 Source: - Vapi documentation: Using dynamic variables in a phone call
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
flat-fuchsia
flat-fuchsia3mo ago
Yes, using {{variable}} placeholders, which are populated via assistantOverrides.variableValues during the call..

Did you find this page helpful?