https://retellai.com/?utm_source=discord&utm_medium=seo logo
my agent is hanging up on me
# ❓・ai-evy-support
d
@AI Evy my agent is hanging up on me. I was mid testing several times but it refuses to talk and simply hangs up. I cant figure out what is wrong
a
Thanks for tagging me @danday9. I'll look through relevant sources and get back to you shortly.
### Answer When your agent hangs up unexpectedly during testing, check the
disconnection_reason
field to understand why the call ended [(1) ]() [(2) ]() . You can retrieve this through the Get Call API or view it in your Retell Dashboard [(2) ]() . Common causes for unexpected hangups include: Prompt-related issues: - If your prompt instructs the agent to "end every call with care" or similar broad end-call instructions, the AI may interpret this as ending calls prematurely [(3) ]() - Overly vague spam detection rules (like "Suspicious/Spam Calls: Politely end the call") can trigger false positives - Review your
end_call
function description and any prompts that reference ending calls Disconnection reasons to check: -
agent_hangup
- AI agent intentionally hung up (often due to prompt instructions) [(2) ]() -
inactivity
- Call terminated due to the
end_call_after_silence_ms
setting after long silence -
error_llm_websocket_lost_connection
- LLM websocket connection broke during the call -
user_hangup
- Though this appears as user hangup, it may actually be triggered by agent behavior [(3) ]() [(4) ]() Debugging steps: 1. Use the LLM Playground to test your agent's behavior without making actual calls [(5) ]() 2. Review the call transcript in the history tab to see where the flow breaks [(6) ](
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) [[3] Agent Hangs Up After Greeting — No User Interaction](https://discord.com/channels/1186424376300679209/1426275379307610274) [[4] Bug with open ia realtime and Twilio: The AI agent starts hanging up randomly in the middle](https://discord.com/channels/1186424376300679209/1407296441164234845) [[5] Manually test your agent](https://docs.retellai.com/test/llm-playground) [[6] Discord message from @manjotghatora on 2025-11-02](https://discord.com/channels/1186424376300679209/1294891368505937952/1434686066476187798) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
6066476187798) 3. Check if you have conversation flow nodes with improper transition conditions 4. Verify your prompt doesn't have overly broad end-call triggers [(3) ]() If the issue persists after reviewing your prompts and call logs, provide specific call IDs when reaching out for support [(4) ]() .