assistant stops speaking, twillio call

Your assistant is likely stopping mid-call due to webhook errors ("Invalid webhook type").
Make sure your webhook handler processes all event types sent by Vapi. Here’s a Node.js/Express example:

app.post('/webhook', async (req, res) => {
  const { type } = req.body;
  if (!['assistant.started', 'speech-update', 'status-update'].includes(type)) {
    return res.status(400).send('Invalid webhook type');
  }
  // Handle events here
  res.status(200).send();
});

Update your Vapi dashboard to point to your public webhook URL (e.g., from ngrok) and ensure your handler accepts all relevant event types.
For more details, see the webhook troubleshooting guide.

Source:

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

Was this page helpful?