Aniket Khajanchi
10/07/2025, 8:04 PMVapi Support Bot
10/07/2025, 8:05 PMtool.completed hook to your assistant configuration like this:
json
{
"hooks": [{
"on": "tool.completed",
"do": [
{ "type": "say", "exact": "Your message here." },
{ "type": "tool", "tool": { "type": "endCall" } }
]
}]
}
Make sure the endCall tool is enabled in your assistant's tools array. This should ensure the assistant speaks the message and then ends the call automatically after sending the text.
Source:
- [Assistant hooks documentation](https://docs.vapi.ai/assistants/assistant-hooks)Aniket Khajanchi
10/07/2025, 8:09 PM{
"id": "8fb7c25c-b9df-48d3-9be0-761e6aafb6dd",
"createdAt": "2025-10-07T18:52:17.249Z",
"updatedAt": "2025-10-07T19:55:48.748Z",
"type": "sms",
"function": {
"name": "send_text_tool",
"description": "description",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
"messages": [
{
"type": "request-start",
"content": "Please hold on. Sending the SMS right away.",
"blocking": true
},
{
"role": "assistant",
"type": "request-complete",
"content": "The onboarding link is successfully sent to your mobile number. Happy to see you on the other side.",
"endCallAfterSpokenEnabled": true
}
],
"metadata": {
"from": "+....."
},
"orgId": "c414c7ca-9ba8-4be9-9a92-cb0b3fe71a29"
}Aniket Khajanchi
10/07/2025, 8:10 PMAniket Khajanchi
10/07/2025, 8:10 PMAniket Khajanchi
10/07/2025, 8:10 PMAniket Khajanchi
10/07/2025, 8:15 PMAniket Khajanchi
10/07/2025, 8:41 PMAniket Khajanchi
10/08/2025, 2:59 PMAniket Khajanchi
10/08/2025, 2:59 PMAniket Khajanchi
10/08/2025, 9:14 PMAniket Khajanchi
10/08/2025, 9:14 PMChiranjeet Mishra
10/09/2025, 6:25 PM