Announce before the call disconnects
# support
v
Yes, you can announce a warning before disconnecting a call in Vapi using idle messages with the
customer.speech.timeout
hook. Here’s a sample configuration to first warn the user after 30 seconds of silence, then disconnect after another 30 seconds:
Copy code
json
{
  "hooks": [
    {
      "on": "customer.speech.timeout",
      "options": { "timeoutSeconds": 30 },
      "do": [{ "type": "say", "exact": "Hello, I have not received a response in the last 30 seconds. If I do not receive a response within the next 30 seconds, the call will be disconnected." }]
    },
    {
      "on": "customer.speech.timeout",
      "options": { "timeoutSeconds": 60 },
      "do": [{ "type": "endCall", "exact": "No response received. Disconnecting the call now." }]
    }
  ]
}
This setup will announce your warning at 30 seconds of silence and disconnect at 60 seconds if there’s still no response. For more details, see the [Vapi idle messages documentation](https://docs.vapi.ai/assistants/idle-messages). Source: - [Vapi Idle Messages Documentation](https://docs.vapi.ai/assistants/idle-messages)
a
can this be done from vapi dashboard
c
Hi, it looks like your query was deleted. Could you please let us know what the issue is?