Overview
The End Call system tool helps agents handle situations where users are:- Saying goodbye or farewell
- Clearly indicating they want to end the call
- Using phrases like “bye”, “goodbye”, “talk to you later”, “I’m hanging up”
- Concluding the conversation with clear intent to leave
Configuration
Enableend_call
system tool in your session configuration:
Tool parameters
Parameter | Type | Required | Description |
---|---|---|---|
farewell_message | string | Yes | Final message to say before ending the call |
reason | string | Yes | Why the call is ending (e.g., ‘user said goodbye’, ‘conversation concluded’) |
Override tool descriptions
You can override the default tool description and parameter descriptions to customize the agent’s behavior:When end call is used
The agent automatically calls this tool when it detects: Clear goodbye scenarios like:- Direct goodbye: User says “goodbye”, “bye”, “farewell”
- Conversation conclusion: User says “talk to you later”, “see you soon”
- Explicit end request: User says “I’m hanging up”, “I need to go”
- Formal conclusion: User indicates the conversation is finished
Example situations
Default implementation
Here’s how the End Call tool is defined on our server:Troubleshooting
If you notice the agent ending sessions when it shouldn’t:- Review Context: Check if the conversation context provides clear goodbye signals
- Adjust Instructions: Refine your system prompt to distinguish between acknowledgments and farewells
- Override description: You can override the tool description to be more or less restrictive