alex16742s
09/10/2025, 7:43 PMAI Evy
09/10/2025, 7:43 PMAI Evy
09/10/2025, 7:43 PMend_call function description:
## Official Documentation Recommendations
For single/multi-prompt agents, configure specific termination conditions in your prompt [(1) ]() . The documentation suggests including instructions like: "If the user says 'thank you', 'goodbye', or 'bye', use the end_call tool to terminate the conversation" .
In the API reference, the end_call tool is described simply as "End the call with user" [(2) ]() .
For custom LLM implementations, define the function with a message parameter so the LLM can provide a farewell message when ending the call [(3) ]() .
## Community Best Practices
From community discussions, here are additional recommendations:
Structure your instructions clearly [(4) ]() :
1. Say a farewell message (e.g., "have a great rest of your day")
2. Use "end_call" tool to end the call
Be specific about when to use it . Having clear instructions about when to use the end_call function and when not to use it is important for proper functionality.
Consider backup measures . Many developers set max call duration and max silence duration as fallbacks, since in standard business calls the caller will typically hang up naturally.
## Important Implementation Notes
The function must be properly defined and the model must choose to call it - Retell agents don't hang up unless your design explicitly ends the call [(5) ]() . Always test using simulation and verify viaAI Evy
09/10/2025, 7:43 PMAI Evy
09/10/2025, 7:43 PMAI Evy
09/10/2025, 7:43 PM