DomT
11/08/2025, 10:26 AMChiranjeet Mishra
11/08/2025, 10:26 AMLakshay Julka
11/08/2025, 4:28 PMDomT
11/10/2025, 9:03 PMChiranjeet Mishra
11/11/2025, 7:40 PMcall.ending, assistant.speech.interrupted, or customer.speech.timeout.
Here's a quick example for handling a customer speech timeout:
json
{
"hooks": [{
"on": "customer.speech.timeout",
"options": {
"timeoutSeconds": 10,
"triggerMaxCount": 3,
"triggerResetMode": "onUserSpeech"
},
"do": [{
"type": "say",
"exact": "Are you still there? Please let me know how I can help you."
}],
"name": "timeout_check"
}]
}
For more flexibility, you can also define conditions under which a hook should trigger using filters. For detailed guidance on hooks and examples, please refer to the [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks).
If you have any specific scenarios or issues, feel free to let me know.DomT
11/16/2025, 9:21 AMChiranjeet Mishra
11/19/2025, 1:24 AMprompt. The assistant didn’t repeat the phrase exactly as written because prompt lets the model paraphrase, but the hook did trigger and the assistant responded based on the prompt you provided.
If you want the assistant to say the exact phrase verbatim, switching back to "exact" is the correct choice — but functionally, the hook is firing properly in both cases.
Let me know if you'd like me to test this within your specific assistant config as well.
Message 2
bot
5:22:07 PM
Copy
{
"role": "bot",
"time": 1763515327444,
"source": "",
"endTime": 1763515333124,
"message": "Thank you for calling Wellness Partners. This is Riley, your scheduling assistant. How may I help you today?",
"duration": 4820,
"secondsFromStart": -0.644
}
Message 3
bot
5:22:24 PM
Copy
{
"role": "bot",
"time": 1763515344284,
"source": "",
"endTime": 1763515346384.001,
"message": "I'm here. How can I assist you today?",
"duration": 2100.0009765625,
"secondsFromStart": 16.196
}DomT
12/01/2025, 7:25 PMChiranjeet Mishra
12/02/2025, 3:20 AMDomT
12/02/2025, 8:14 AMChiranjeet Mishra
12/04/2025, 1:00 AMDomT
12/10/2025, 4:47 PMDomT
12/13/2025, 11:43 AMDomT
12/20/2025, 8:36 PMDomT
01/05/2026, 11:41 AM