Hunter J. King
03/07/2025, 5:01 PMHunter J. King
03/07/2025, 5:02 PMVapi Support Bot
03/07/2025, 5:04 PMjavascript
app.post('/vapi-webhook', (req, res) => {
const message = req.body;
if (message.type === 'end-of-call-report') {
// Process and extend the report here
}
res.status(200).json({ success: true });
});
2. Configure your assistant to send end-of-call reports to your server:
json
{
"serverMessages": [
"end-of-call-report"
]
}
3. Extend the report with customer details in your server code. You can merge the standard report with additional customer information from your database or other sources.
4. Store or forward the enhanced report as needed for your use case.
The key is that you'll receive the standard report via webhook, then your server code can add the additional customer details before storing or processing it further.
For capturing customer information during calls, you can use [analysis plans with structured data](https://discord.com/channels/1211482211119796234/1211483291191083018/1337367190030123080) to extract relevant details from the conversation, or include metadata when setting up the call that can be referenced later.
Let me know if you need more specific guidance on implementing this! 😊
Sources:
- [Server URL Events Documentation](https://docs.vapi.ai/server-url/events)
- [Discord Discussion on End-of-Call Reports](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342410769232302122)
- [Discord Discussion on Customer Information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337367190030123080)Vapi Support Bot
03/07/2025, 5:04 PMHunter J. King
03/07/2025, 5:05 PMHunter J. King
03/07/2025, 5:13 PMShubham Bajaj
03/10/2025, 6:33 PM