https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am using the create chat endpoint to start a cha...
# ❓・ai-evy-support
m
@AI Evy I am using the create chat endpoint to start a chat, but I noticed after around 24 hours the chat now says ended without the person saying anything. Do chat's time out?
a
Thanks for tagging me @maxluz. I'll look through relevant sources and get back to you shortly.
### Answer Yes, chats can time out automatically. The documentation mentions that there's an "Auto-Close Inactive Chats" feature that can be enabled [(1) ]() . When this feature is enabled, chat sessions will automatically end when the timeout is triggered . You can manually end chat sessions at any time using the
end-chat
API endpoint, but if Auto-Close Inactive Chats is enabled, the system will handle this automatically after the configured timeout period . The chat status will change to "ended" when the session has ended and can no longer generate new responses [(2) ]() . This explains why you're seeing the chat status as "ended" after 24 hours without any user activity.
m
what is the default timeout, and how can i change it?
@AI Evy what is the default timeout, and how can i change it?
a
Thanks for the follow-up, @maxluz. I'll get back to you soon.
### Answer Based on the available sources, I can see that there is a chat timeout setting available, but the specific default timeout value and configuration details aren't explicitly documented in the provided sources. From the video content, there's a mention that the chat widget "will automatically close the chat within 24 hours" [(1) ](

▾

) , and you can "change the timeout into a shorter time" . This suggests that 24 hours may be the default timeout period for chat widgets specifically. However, I don't have the complete information about the exact default timeout value or the specific steps to configure it for all chat types in the available sources. I'd recommend checking out these potentially useful sources for more detailed configuration information: - [Step 1: Configure global settings]() - [Get Chat]() Would you like me to try to provide a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Speed to Lead: Driving Results with Outbound Facebook Campaigns](

https://www.youtube.com/watch?v=9fgelfy6kQA▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) [[2] List Chat](https://docs.retellai.com/api-references/list-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.