https://retellai.com/?utm_source=discord&utm_medium=seo logo
when does a chat end
# ❓・ai-evy-support
s
@AI Evy when does a chat end?
a
Thanks for tagging me @Sanjay. I'll look through relevant sources and get back to you shortly.
### Answer A chat ends based on the
end_chat_after_silence_ms
configuration parameter [(1) ]() [(2) ]() . This setting determines how long the chat will wait after the agent's last message before automatically closing due to user inactivity . The minimum value allowed is 120,000 ms (2 minutes) , and the maximum is 259,200,000 ms (72 hours) . By default, this is set to 3,600,000 ms (1 hour) . When the chat automatically closes, you can configure a custom
auto_close_message
to display to the user .
​ To learn more, see the sources I considered: [[1] Get Chat Agent Versions](https://docs.retellai.com/api-references/get-chat-agent-versions) [[2] Update Chat Agent](https://docs.retellai.com/api-references/update-chat-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.