https://retellai.com/?utm_source=discord&utm_medium=seo logo
for a chat or SMS conversation, when is the call c...
# ❓・ai-evy-support
s
@AI Evy for a chat or SMS conversation, when is the call considered done?
a
Thanks for tagging me @Sanjay. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[2] Update Chat Agent](https://docs.retellai.com/api-references/update-chat-agent) [[3] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
### Answer For chat or SMS conversations, a session is considered complete when you explicitly end it using the
end-chat
API endpoint [(1) ]() . You can also configure Auto-Close Inactive Chats, which will automatically end the chat when the timeout is triggered . Additionally, you can set
end_chat_after_silence_ms
on your chat agent to specify how long to wait before automatically closing due to inactivity [(2) ]() . When a chat ends, Retell triggers the
chat_ended
webhook event, followed by the
chat_analyzed
event once analysis is complete [(3) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.