Marmik
10/20/2025, 3:53 PMVapi Support Bot
10/20/2025, 3:56 PMassistant-request, look up the caller by phone number, and return their name as a variable. Example:
javascript
app.post("/api/assistant-selector", async (req, res) => {
if (req.body.message?.type === "assistant-request") {
const phoneNumber = req.body.call.from.phoneNumber;
const customer = await crmAPI.getCustomerByPhone(phoneNumber);
res.json({
assistantId: "asst_customersupport",
assistantOverrides: {
variableValues: { customerName: customer.name }
}
});
}
});
In your assistant's greeting, use: "Hello {{customerName}}! How can I help you today?"
For setup details, see the [Vapi personalization guide](https://docs.vapi.ai/assistants/personalization).
Source:
- [Personalization with user information](https://docs.vapi.ai/assistants/personalization)Vapi Support Bot
10/20/2025, 4:03 PMtheschnack
10/20/2025, 7:25 PM