Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.retellai.com/llms.txt

Use this file to discover all available pages before exploring further.

By default, the agent won’t end the call automatically. You’ll need to configure when and how the call should be terminated using the end call tool.
1

Add End Call Tool

Click ”+ Add” in the tools section and select “End Call” from the dropdown menu.
Adding end call tool
2

Configure Termination Conditions

Define specific conditions under which the call should be terminated. For example:
  • “If the user says ‘thank you’, ‘goodbye’, or ‘bye’, use the end_call tool to terminate the conversation.”
Configuring end call conditions
3

Update the Prompt

Enhance the agent’s understanding by incorporating the end call conditions into the prompt. Include specific instructions such as:“If the user says ‘thank you’, ‘goodbye’, or ‘bye’, use the end_call tool to terminate the conversation.”
Adding end call instructions to prompt