# 11. Thiết lập thời gian đóng session (Setting up session timeout)

Tính năng này cho phép hệ thống kiểm tra và đóng session tự động sau thời gian thiết lập kể từ tin nhắn cuối cùng của nhân viên.

*(This feature allows the system to automatically check and close sessions after a set time from the staff's last message)*

Bước 1: Click Thiết lập

*(Step 1: Click settings)*

Bước 2: Click thiết lập Hội thoại đa kênh

*(Step 2: Click Omni Conversations)*

Bước 3: Mở phần Thiết lập khác

*(Step 3: Open the other settings)*

<figure><img src="/files/IHsm6tTOiUJ3nrmnDd2e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7Z7F1ULQ3348t6OpzEcv" alt=""><figcaption></figcaption></figure>

Bước 4: Nhập thời gian mong muốn, tin nhắn kết thúc session và bật kích hoạt tính năng

*(Step 4: Enter the desired time, the session end message, and enable the feature.)*

![](/files/qpmD8cMplEgLD7hn58AT)

![](/files/DNLpIK5ZImSHLOrF6CH8)

Ví dụ : với setting 30 phút, một session đang được hỗ trợ với tin nhắn cuối là tin nhắn của nhân viên và trong vòng 30 phút session này không có thêm tin nhắn nữa thì session đó sẽ được đóng tự động và gửi kèm lời chào kết thúc session

*(For example: With a 30-minute setting, if a session is being supported with the last message sent by the employee, and no further messages are received within 30 minutes, the session will automatically close and send a farewell message to end the session.)*

![](/files/YMGQqjxDXkloNIuRjqca)

![](/files/iHbhtGiTN6V57iX2f4Zl)

Bước 5. Kéo trang thiết lập xuống dưới cùng và Click **Lưu**

*(Step 5: Scroll down to the bottom of the settings page and click Save.)*

<figure><img src="/files/wVgGSKWnihoTZZNMLC6e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6OeL8mX3siwjusvTW4Rt" alt=""><figcaption></figcaption></figure>


---

# 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.antbuddy.com/tai-lieu-antbuddy-huong-dan-su-dung-antbuddy-docs-user-guide/quan-tri-khach-hang-antcrm-antcrm-customer-management/tin-nhan-da-kenh-conversation/instagram/11.-thiet-lap-thoi-gian-dong-session-setting-up-session-timeout.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.
