tnigam
06/06/2025, 6:45 AMVapi Support Bot
06/06/2025, 6:47 AMendCall tool to your assistant's configuration and implement logic to detect non-English speech. When a non-English language is detected, have the agent say "I can only understand English." If the customer continues in another language, trigger the endCall function:
json
"tools": [
{ "type": "endCall" }
]
You'll need to handle language detection in your prompt or via a custom function, as Vapi does not provide built-in language detection.
Source:
- [Default Tools – End Call](https://docs.vapi.ai/tools/default-tools#end-call)Kyle
06/06/2025, 7:26 AMKings_big💫
06/06/2025, 7:46 AM