https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I get the end_call tool to trigger when an...
# ❓・ai-evy-support
g
@AI Evy how can I get the end_call tool to trigger when an outbound retell call hits hold music?
a
Thanks for tagging me @Greg. I'll look through relevant sources and get back to you shortly.
### Answer The available sources don't contain specific documentation about detecting hold music and triggering
end_call
automatically in that scenario. Based on the sources, the
end_call
tool works by having the agent decide when to call it based on your prompt instructions. [(1) ]() For example:
Copy code
python
general_tools=[
    {
        "type": "end_call",
        "name": "end_call",
        "description":
            "End the call with user only when user explicitly requests it",
    },
],
However, this relies on the LLM interpreting the conversation state. The sources don't document a built-in hold music detection feature that would automatically trigger
end_call
. You might need to adjust your agent's prompt to instruct it to end the call when it detects hold music patterns (like repetitive music or silence) , but the effectiveness would depend on the LLM's ability to recognize those audio cues. For more specific guidance on this use case, I recommend: - Checking [Documentation]() - Visiting [Hire certified Retell partner]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Issue with end_call general tool for outbound calls](https://discord.com/channels/1186424376300679209/1224186693171806310) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.