System tools
System tools enable your assistant to update the internal state of a conversation. Unlike server tools or client tools, system tools don’t make external API calls or trigger client-side functions—they modify the internal state of the conversation without making external calls.
Overview
Some applications require agents to control the flow or state of a conversation. System tools provide this capability by allowing the assistant to perform actions related to the state of the call that don’t require communicating with external servers or the client.
Available system tools
Let your agent automatically terminate a conversation when appropriate conditions are met.
Enable your agent to automatically switch to the user’s language during conversations.
Seamlessly transfer conversations between AI agents based on defined conditions.
Seamlessly transfer the user to a human operator.
Enable the agent to skip their turns if the LLM detects the agent should not speak yet.
Implementation
When creating an agent via API, you can add system tools to your agent configuration. Here’s how to implement both the end call and language detection tools:
Custom LLM integration
When using a custom LLM with ElevenLabs agents, system tools are exposed as function definitions that your LLM can call. Each system tool has specific parameters and trigger conditions:
Available system tools
End call
Custom LLM integration
Purpose: Automatically terminate conversations when appropriate conditions are met.
Trigger conditions: The LLM should call this tool when:
- The main task has been completed and user is satisfied
- The conversation reached natural conclusion with mutual agreement
- The user explicitly indicates they want to end the conversation
Parameters:
reason
(string, required): The reason for ending the callmessage
(string, optional): A farewell message to send to the user before ending the call
Function call format:
Implementation: Configure as a system tool in your agent settings. The LLM will receive detailed instructions about when to call this function.
Learn more: End call tool
Language detection
Custom LLM integration
Purpose: Automatically switch to the user’s detected language during conversations.
Trigger conditions: The LLM should call this tool when:
- User speaks in a different language than the current conversation language
- User explicitly requests to switch languages
- Multi-language support is needed for the conversation
Parameters:
reason
(string, required): The reason for the language switchlanguage
(string, required): The language code to switch to (must be in supported languages list)
Function call format:
Implementation: Configure supported languages in agent settings and add the language detection system tool. The agent will automatically switch voice and responses to match detected languages.
Learn more: Language detection tool
Agent transfer
Custom LLM integration
Purpose: Transfer conversations between specialized AI agents based on user needs.
Trigger conditions: The LLM should call this tool when:
- User request requires specialized knowledge or different agent capabilities
- Current agent cannot adequately handle the query
- Conversation flow indicates need for different agent type
Parameters:
reason
(string, optional): The reason for the agent transferagent_number
(integer, required): Zero-indexed number of the agent to transfer to (based on configured transfer rules)
Function call format:
Implementation: Define transfer rules mapping conditions to specific agent IDs. Configure which agents the current agent can transfer to. Agents are referenced by zero-indexed numbers in the transfer configuration.
Learn more: Agent transfer tool
Transfer to human
Custom LLM integration
Purpose: Seamlessly hand off conversations to human operators when AI assistance is insufficient.
Trigger conditions: The LLM should call this tool when:
- Complex issues requiring human judgment
- User explicitly requests human assistance
- AI reaches limits of capability for the specific request
- Escalation protocols are triggered
Parameters:
reason
(string, optional): The reason for the transfertransfer_number
(string, required): The phone number to transfer to (must match configured numbers)client_message
(string, required): Message read to the client while waiting for transferagent_message
(string, required): Message for the human operator receiving the call
Function call format:
Implementation: Configure transfer phone numbers and conditions. Define messages for both customer and receiving human operator. Works with both Twilio and SIP trunking.
Learn more: Transfer to human tool
Skip turn
Custom LLM integration
Purpose: Allow the agent to pause and wait for user input without speaking.
Trigger conditions: The LLM should call this tool when:
- User indicates they need a moment (“Give me a second”, “Let me think”)
- User requests pause in conversation flow
- Agent detects user needs time to process information
Parameters:
reason
(string, optional): Free-form reason explaining why the pause is needed
Function call format:
Implementation: No additional configuration needed. The tool simply signals the agent to remain silent until the user speaks again.
Learn more: Skip turn tool
FAQ
Can system tools be combined with other tool types?
Yes, system tools can be used alongside server tools and client tools in the same assistant. This allows for comprehensive functionality that combines internal state management with external interactions.