https://retellai.com/?utm_source=discord&utm_medium=seo logo
what are the recommendations for end_call function...
# ❓・ai-evy-support
a
@AI Evy what are the recommendations for end_call function description
a
Thanks for tagging me @alex16742s. I'll look through relevant sources and get back to you shortly.
### Answer Based on the official documentation and community discussions, here are the key recommendations for the
end_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 via
logs afterward .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.