Skip to main content

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
The agent uses conversation context to distinguish between genuine farewell intentions and brief acknowledgments that don’t require ending the session.

Configuration

Enable end_call system tool in your session configuration:

Tool parameters

ParameterTypeRequiredDescription
farewell_messagestringYesFinal message to say before ending the call
reasonstringYesWhy 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:
  1. Review Context: Check if the conversation context provides clear goodbye signals
  2. Adjust Instructions: Refine your system prompt to distinguish between acknowledgments and farewells
  3. Override description: You can override the tool description to be more or less restrictive