KennyBenso4
06/20/2025, 5:45 AMVapi Support Bot
06/20/2025, 5:47 AMend-of-call-report
event sent to your server (includes summary, transcript, etc.).
2. On reconnect, when you receive an assistant-request
, look up the caller's previous conversation and respond with an assistant configuration that includes the last context (e.g., system prompt: "Here's where we left off: ...").
Example server logic:
js
// Pseudocode for assistant-request handler
if (req.body.message?.type === "assistant-request") {
const phone = req.body.call.from.phoneNumber;
const lastSession = db.getConversation(phone);
res.json({
assistant: {
...,
model: {
...,
messages: [
{ role: "system", content: `Here's where we left off: ${lastSession.summary}` }
]
}
}
});
}
See [Vapi inbound support example](https://docs.vapi.ai/examples/inbound-support) for more details.
Sources:
- [Vapi inbound support example](https://docs.vapi.ai/examples/inbound-support)
- [Personalization with user information](https://docs.vapi.ai/assistants/personalization)Praveen
06/20/2025, 11:00 PMKennyBenso4
06/26/2025, 2:13 AM