wise-white
wise-white5h ago

Agent not picking up variables

Hi VAPI team, I'm trying to make this agent reads the First message with 1 variable "Hi, thank you for calling {{orgName}}" For testing purposes I'm using API call. This is my postman request POST "https://api.vapi.ai/call" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer MY_ID" \ --body "{ "assistantId": "b23ffec0-eb72-4e0e-9d92-43f0441a4adb", "phoneNumberId": "MY_NUM", "customer": { "number": "+12345678901" }, "assistantOverrides": { "variableValues": { "orgName": "BTEC", "accountType": "premium" } }
}" RESPONSE I GET: { "subscriptionLimits": { "concurrencyBlocked": false, "concurrencyLimit": 10, "remainingConcurrentCalls": 9 }, "id": "019aeb75-a42a-711b-9b5c-a69d2833063d", "assistantId": "b23ffec0-eb72-4e0e-9d92-43f0441a4adb", "phoneNumberId": "MY_NUM", "type": "outboundPhoneCall", "createdAt": "2025-12-04T22:22:26.858Z", "updatedAt": "2025-12-04T22:22:26.858Z", "orgId": " MY_ORG", "cost": 0, "customer": { "number": "+12345678901" }, "status": "queued", "phoneCallProvider": "vapi", "assistantOverrides": { "variableValues": { "orgName": "BTEC", "accountType": "premium" } }, "monitor": { "listenUrl": "... ", "controlUrl": "... " }, "transport": { "conversationType": "voice", "provider": "vapi.sip" } } I'm making calls from the "Talk to assistant" from the web dashboard and it initiates the calls just fine. Problem is that the Agent never reads my variables "orgName": "BTEC", "accountType": "premium". Checked the logs and they do not show the variables are being used. Could you please provide some guidance on how to proceed?
2 Replies
Vapi Support Bot
Suggestion:
Make sure your assistant's first message or system prompt in the dashboard includes the variable using double curly braces, like this:
Hi, thank you for calling {{orgName}}
Hi, thank you for calling {{orgName}}
If {{orgName}} is not present in the prompt, the variable will not be used—even if you pass it in your API call. Update your assistant's prompt, save, and try your API call again.
Reference: See the dynamic variables documentation for details on prompt setup (https://docs.vapi.ai/assistants/dynamic-variables). Source: - Dynamic Variables Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
wise-white
wise-whiteOP5h ago
Yes I'm sure I've done that
No description

Did you find this page helpful?