Harry
12/18/2025, 7:43 PMVapi Support Bot
12/18/2025, 7:44 PMfirstMessage, and use a customer.speech.timeout hook to end the call after silence. Here’s an example configuration:
json
{
"firstMessage": "Please leave your message after the beep.",
"hooks": [
{
"on": "customer.speech.timeout",
"options": { "timeoutSeconds": 30 },
"do": [
{ "type": "say", "exact": "Thank you. Goodbye!" },
{ "type": "tool", "tool": { "type": "endCall" } }
]
}
]
}
This setup lets users leave a message and ends the call after 30 seconds of silence, closely mimicking voicemail behavior. For more, see the [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks).
Source:
- [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)Harry
12/18/2025, 7:46 PMHarry
12/18/2025, 7:55 PMVapi Support Bot
12/18/2025, 7:55 PMVapi Support Bot
12/18/2025, 7:56 PMfirstMessage and handling all other actions with assistant hooks. For example:
json
{
"firstMessage": "Please leave your message after the beep.",
"hooks": [
{
"on": "customer.speech.timeout",
"options": { "timeoutSeconds": 30 },
"do": [
{ "type": "tool", "tool": { "type": "endCall" } }
]
}
]
}
This setup prevents the LLM from generating further responses during voicemail, but does not guarantee absolute silence in all edge cases.
See [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks) for more details.
Source:
- [Assistant Hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)