Defining endCall message
# support
n
Hi, I have been using default
endCall
tool on my assistant. Before calling the tool, it says "Goodbye" out loud and then calls the tool. I have the same issue when using Squads, with AI saying "Transferring the call now" before it transfers to the next Assistant. Is it possible to stop it saying any message and just make it call the tool straight away?
v
Yes, it's absolutely possible to stop the assistant from saying messages before calling tools! 👍 ### For the
endCall
tool: You can disable the default "Goodbye" message by setting empty messages in your tool configuration. This can be done through a PATCH request to the Vapi API:
Copy code
bash
curl --location --request PATCH 'https://api.vapi.ai/tool/toolId' \
--header 'Authorization: Bearer YourAccessToken' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"type": "request-start",
"content": ""
},
{
"type": "request-complete",
"content": ""
},
{
"type": "request-failed",
"content": ""
},
{
"type": "request-response-delayed",
"content": ""
}
]
}'
### For Squads and call transfers: To suppress the "Transferring the call now" message, you need to configure the
transferCall
tool with an empty request-start message:
Copy code
json
{
"type": "transferCall",
"destinations": [ ... ],
"messages": [
{
"type": "request-start",
"content": "",
"conditions": []
}
],
"function": {
"name": "yourFunctionName"
}
}
By setting these message contents to empty strings, you're effectively telling the assistant not to say anything before executing the tool. Note: Some users have reported occasional issues where these settings don't always work as expected. If you continue experiencing problems after implementing these solutions, you might need to check your
assistantOverrides
settings as well. Sources: - [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341585041624666122) - [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334153644379078677) - [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336569634094186516)
v
Let me know if it doesn't make sense.
n
Yes thank you! All resolved
6 Views