greeting
# support
g
can you do dynamic fields in the greeting
v
Yes, you can use dynamic fields in the greeting! Just include variables in your greeting prompt using double curly braces, like this:
Copy code
text
Hello, {{name}}!
When making the call via the API, set the variable value in `assistantOverrides.variableValues`:
Copy code
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)
k
Yes, using {{variable}} placeholders, which are populated via assistantOverrides.variableValues during the call..
2 Views