# Auto Close

The Auto Close option is a valuable feature to customer chats are appropriately managed and bots can be triggered even if a team member forgets to close the chat manually.

**Auto Close Feature:**

* **Purpose:** Automatically closes chats that remain open beyond a specified period to enable bot engagement.
* **Configuration:** Set the closing hours for auto close duration (e.g., 12 hours) after which an inactive chat will be automatically closed.

**Monitoring Inactivity:**

* **Inactivity Period:** The system monitors the chat from the last customer message received.
* **Automatic Closure:** If the chat remains inactive for the set duration (e.g., 12 hours), it will be automatically closed. Once the chat is closed, the bot can be triggered to re-engage the customer.mm

**Customer Alert:**

* **Alert Message:** If the customer does not interact with Ownchat users, a message is sent to the customer stating, "Your conversation chat will be closed in 1 hour."
* **Alert Time Setting:** This alert message and the time (e.g., 1 hour before closure) can be configured in the "Alert Customer Before" setting.

**User Notification:**

* **Push Notification:** If a user has not responded to customer queries, a push notification is sent to the user, admin, and owner before the chat is auto-closed.
* **Notification Message and Time:** These notifications and the time before closure can be configured in the settings.

**Final Alert and Auto Close:**

* **System Alert:** If neither the user nor the admin interacts with the chat, the system sends a final alert or notification. The system will automatically closes the chat, allowing the bot to take over.

**Implementation Steps in Ownchat:**

1. **Navigate to Settings:** Go to the **inbox settings** in Ownchat.
2. **Enable Auto Close:** **Turn on** the **auto-close** feature.
3. **Set Duration:** Define the **auto-close duration** (e.g., 12 hours).
4. **Configure Alerts:** Set the "**Alert Customer Before**" time and "**Alert User Before**" time.
5. **Set Notifications to Ownchat Users:** Configure the notification message for users, admin, and owner.
6. **Set Message for Customer**: The customer alert message is an essential feature that informs customers about the impending closure of their chat. **Click on** the update customer alert message, provide the text message in bot like "Your chat will be closed in 1 hour. Please solve the query quickly". &#x20;
7. **Save Settings:** After fill in all the details, **Save** the configuration to activate the auto-close feature.

By implementing the Auto Close option, Ownchat ensures that customer chats are managed efficiently, providing a seamless experience by engaging bots when necessary and keeping customers informed about chat status.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ownchat.app/settings/general/inbox-settings/auto-close.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
