Nikol Digital 💚🧩
05/04/2025, 3:20 AMVapi Support Bot
05/04/2025, 3:22 AMjavascript
// In your server endpoint that receives Vapi webhooks
app.post('/webhook', async (req, res) => {
const transcript = req.body.message?.artifact?.transcript;
// Simple intent detection
if (transcript.includes("interested")) {
sendSMS(templateA);
} else if (transcript.includes("not interested")) {
sendSMS(templateB);
} else if (transcript.includes("call back later")) {
sendSMS(templateC);
}
});
Enable serverMessages: ['end-of-call-report'] in your assistant configuration to receive the complete transcript.
Sources:
- [Discord message about custom tools](https://discord.com/channels/1211482211119796234/1333245023319494707)
- [Discord message about end-of-call reports](https://discord.com/channels/1211482211119796234/1342410769232302122)Vapi Support Bot
05/04/2025, 3:46 AMKings_big💫
05/04/2025, 11:24 AMNikol Digital 💚🧩
05/05/2025, 7:45 AM