roadrunna
11/04/2025, 3:38 AMVapi Support Bot
11/04/2025, 3:39 AM{{name}}) is replaced in the URL, pass it in your API request using assistantOverrides.variableValues like this:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John"
}
}
}
Make sure the variable name in your URL matches exactly (e.g., https://api.yourcompany.com/orders/{{name}}). This should resolve the issue of variables not being replaced in your URLs when testing or live.
See the [Vapi documentation for dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables#prepare-your-request) for more details.
Source:
- [Vapi documentation for dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables#prepare-your-request)Chiranjeet Mishra
11/04/2025, 7:00 PM{{variableName}}) in your messages or prompts. Ensure you provide their values during a phone call via the assistantOverrides with variableValues. Here's a JSON example of how you can set this up for a phone call:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"name": "John"
}
},
"customer": {
"number": "+1xxxxxxxxxx"
},
"phoneNumberId": "your-phone-id"
}
Dynamic variables are not directly settable within the dashboard. If you're using the LiquidJS library for formatting the date or time, here's an example of how you could use it:
liquid
{{"now" | date: "%A, %B %d, %Y, %I:%M %p", "America/Los_Angeles"}}
For more details, you can refer to the [document on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables).