URGENT - REWST→VAPI Webhook: Ticket on Call End

To trigger ticket creation when a call ends, set your Vapi assistant's server.url to your webhook endpoint. In your server, handle the end-of-call-report event like this:

app.post('/vapi-webhook', async (req, res) => {
  if (req.body.message?.type === 'end-of-call-report') {
    // Call your ticketing system API here, e.g.:
    // await createTicket(req.body.message);
  }
  res.sendStatus(200);
});

This ensures a ticket is created automatically when a call ends. Adjust the createTicket function to match your ticketing system's API requirements.

Source:

⤵️ Mention @Vapi Support Bot for follow-ups 🐥

Was this page helpful?