dfuna
09/11/2025, 9:40 PMVapi Support Bot
09/11/2025, 9:41 PMassistant-request, your server can check if the caller had a previous booking attempt and respond with a custom greeting:
js
// Example: Node.js endpoint for Vapi assistant-request
app.post("/api/assistant-selector", async (req, res) => {
const phone = req.body.call.from.phoneNumber;
const lastCall = await db.getLastCall(phone);
const greeting = lastCall?.bookingAttempt
? "Hey, I know we spoke yesterday, but..."
: "Hi, how can I help you today?";
res.json({
assistant: {
...yourAssistantConfig,
model: { ...yourModelConfig, messages: [{ role: "system", content: greeting }] }
}
});
});
This lets Vapi use a different greeting for callbacks, based on your own call tracking logic ([see docs](https://docs.vapi.ai/assistants/personalization)).
Source:
- [Personalization with user information](https://docs.vapi.ai/assistants/personalization)Vapi Support Bot
09/11/2025, 10:22 PMChiranjeet Mishra
09/15/2025, 4:29 PM