#Is there a way to force ai agents to say something when they decide to end a call? Some of my calls

1 messages · Page 1 of 1 (latest)

ruby hollowBOT
#
AI-generated Answer for _c3p0

Yes. Use the End Call system tool and pass the message parameter with your fixed phrase. The tool supports:

  • reason (required): why the call is ending
  • message (optional): a farewell message the agent will speak before the call is terminated

Example function call your LLM should make when ending the call:
{
"type": "function",
"function": {
"name": "end_call",
"arguments": "{"reason": "Task completed", "message": "Thanks for calling. Goodbye!"}"
}
}

Notes:

  • Agents created in the dashboard include the End Call tool by default. If you create agents via API/SDK, add it as a system tool in the agent configuration. (elevenlabs.io)
  • The docs explicitly describe using message to send a farewell before hangup; instruct your agent prompt to always call end_call with your phrase in message when it decides to terminate. (elevenlabs.io)

Sources:
End call | ElevenLabs Documentation
End call | ElevenLabs Documentation

lime fern
#

How can I call that tool with the dispatch tool block? I see only client or webhook as options there

ruby hollowBOT
#
AI-generated Answer for _c3p0

Short answer: you can’t. The Dispatch Tool node executes only tools of type Client or Webhook (server). System tools (like End call) are invoked by the LLM as internal function calls, not via the Dispatch Tool node.

What to use instead

  • To end a call in a workflow: add an End Node in the workflow. (elevenlabs.io)
  • To make the agent say a phrase before hanging up: enable the End call system tool on the agent and instruct it to call end_call with the message parameter (e.g., your required farewell). System tools are called by the LLM and can include a “message” to speak before termination. (elevenlabs.io)

References

  • Agent Workflows: Dispatch Tool node and End Node. (elevenlabs.io)
  • Tools overview (Client/Webhook/System types). (elevenlabs.io)
  • System tools behavior (called by LLM, not external). (elevenlabs.io)
  • End call system tool (supports message before hangup). (elevenlabs.io)

Sources:
Agent Workflows | ElevenLabs Documentation
System tools | ElevenLabs Documentation
Agent Workflows | ElevenLabs Documentation
Tools | ElevenLabs Documentation
System tools | ElevenLabs Documentation
End call | ElevenLabs Documentation

lime fern
#

So there is no way to always enforce a ”goodbye phrase”?