Vapi Support Bot
09/23/2025, 12:30 PMassistant-request to your server, the caller's phone number is included in the payload. You can inject this value as a variable into your assistant's prompt or messages.
Example (Node.js/Express):
js
app.post("/api/assistant-selector", (req, res) => {
const phoneNumber = req.body.message?.call?.from?.phoneNumber;
res.json({
assistantId: "your-assistant-id",
assistantOverrides: {
variableValues: { callerPhone: phoneNumber }
}
});
});
Now, use {{callerPhone}} in your assistant's prompt to reference the number during the call.
No need to ask the customer for their number again!
[See docs for details](https://docs.vapi.ai/assistants/personalization#add-dynamic-variables-to-your-assistant)
Source:
- [Personalization with user information](https://docs.vapi.ai/assistants/personalization#add-dynamic-variables-to-your-assistant)Chiranjeet Mishra
09/23/2025, 5:04 PM{
"model": {
"messages": [
{
"role": "system",
"content": "You are speaking with {{customer.name}} (phone: {{customer.number}}). Use their name naturally in conversation when appropriate."
}
]
}
}
You can set these variables when starting the call [1](https://docs.vapi.ai/assistants/dynamic-variables):
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"customer.name": "John Smith",
"customer.number": "+1234567890"
}
}
}
Available dynamic variables include:
- {{customer.name}}
- {{customer.number}}
- {{now}}
- {{date}}
This way, the assistant can naturally reference the customer's information without having to ask for it again .Vapi Support Bot
09/23/2025, 6:54 PM