https://retellai.com/?utm_source=discord&utm_medium=seo logo
What are the most common reasons for 'end_call' fu...
# ❓・ai-evy-support
a
@AI Evy What are the most common reasons for 'end_call' function not triggering?
a
Thanks for tagging me @aitoolworx. I'll look through relevant sources and get back to you shortly.
### Answer The most common reasons for the 'end_call' function not triggering in Retell AI are: - The agent is not explicitly configured to use the end_call tool—by default, agents do not end calls automatically, so you must add the End Call Tool and define specific termination conditions [(1) ]() . - The prompt or conversation flow does not include clear instructions for when to trigger end_call (for example, not instructing the agent to use end_call when the user says “thank you”, “goodbye”, or “bye”) . - If building with function calling, the model must both "choose" the end_call tool and send end_call: true in the function call payload [(2) ]() . - In conversation flow builders, not using an End Node for hangup will prevent the call from ending as expected . - The agent design relies only on silence timers (like end_call_after_silence_ms) or other parameters, which can fail if the turn-taking model does not detect the end of the conversation [(3) ]() . Testing with simulation and reviewing logs is recommended to ensure the end_call function is invoked as intended [(2) ]() .
​ To learn more, see the sources I considered: [[1] End call](https://docs.retellai.com/build/single-multi-prompt/end-call) [[2] End Call Function Doesn’t Work](https://discord.com/channels/1186424376300679209/1356072431994933399) [[3] Failure on Retell to end call causing excess charges](https://discord.com/channels/1186424376300679209/1289269843115118705) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
tell me why the following instruction does not trigger the end_call function when the caller says "No, that’s all I needed. Thanks for your help." Call Ending — end_call When the caller has no further questions and has declined or completed all other actions (demo, estimate_survey, staff_message): Politely confirm once: “Is there anything else I can help you with today?” If the caller says no, respond once: “Thank you for calling Service Pros—it was a pleasure speaking with you. Have a great day!” Immediately call end_call and stop speaking. Do not output any more text or acknowledgements after this step. Deterministic example: Caller: “No, that’s all I needed.” Agent: “Thank you for calling Service Pros—it was a pleasure speaking with you. Have a great day!” → Call end_call
a
Thanks for the follow-up, @aitoolworx. I'll get back to you soon.
### Answer Based on the available sources, the most common reasons your instruction might not trigger the end_call function are: 1. The agent will not end the call automatically unless you explicitly configure the end_call tool and clearly define termination conditions in both the tools section and the agent prompt [(1) ]() . If your prompt only describes the logic but the end_call tool is not properly added/configured, the agent won’t trigger the function. 2. The prompt must contain direct, unambiguous instructions, such as: “If the user says ‘thank you’, ‘goodbye’, or ‘bye’, use the end_call tool to terminate the conversation.” General instructions or relying on the agent to infer intent may not be sufficient [(1) ]() [(2) ]() . 3. The LLM must actually select the end_call tool and output the function call payload (e.g., end_call: true) . If the model only generates text but does not actually trigger the tool, the call will not end as expected [(3) ]() [(2) ]() . 4. If using function calling, ensure the function signature and arguments match what the LLM expects and that the tool is properly registered for the conversation . 5. If you use a conversation flow builder, you need an explicit End Node or node transition to trigger call hangup. Otherwise, the agent may just continue the conversation or wait for silence timers [(1) ]() [(2) ]() . Testing in simulation and reviewing logs can help confirm whether the end_cal
l tool is being invoked as intended [(2) ]() .
​ To learn more, see the sources I considered: [[1] End call](https://docs.retellai.com/build/single-multi-prompt/end-call) [[2] End Call Function Doesn’t Work](https://discord.com/channels/1186424376300679209/1356072431994933399) [[3] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Does having been transferred from another agent (agent transfer) affect the reliability or function of the 'end_call' function?
a
Thanks for the follow-up, @aitoolworx. I'll get back to you soon.
### Answer Based on the available documentation, when using Agent Transfer (also called Agent Swap) , the following settings from the first agent are retained throughout the call: optInSignedUrl, optOutSensitiveDataStorage, and webHookUrl. All other settings—such as language, voice, and voiceModel—will reflect the currently active agent [(1) ]() [(2) ]() . There is no explicit documentation stating that agent transfer affects the reliability or function of the 'end_call' function. Therefore, unless 'end_call' relies on one of the settings that persist across agent transfer, its reliability and function should not be impacted by the transfer itself according to current sources .
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Agent Transfer Node](https://docs.retellai.com/build/conversation-flow/transfer-agent-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.