> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/gioi-thieu-chung/huong-dan-thiet-lap-cau-hinh-de-chay-script/5.-schedule-hen-gio-chay-kich-ban.md).

# 5. Schedule (Hẹn giờ chạy kịch bản)

Tính năng này cực kỳ hữu ích cho những ai muốn cắm tool chạy tự động 24/7 mà không cần phải canh để bấm bằng tay.

🎥 Xem thêm video hướng dẫn: [Tại đây](https://youtu.be/C8Kf-d9_-sw).

Để sử dụng, bạn tích chọn vào ô Use scheduling feature (như trong hình dưới).

> ⚠️ Lưu ý quan trọng: Bạn phải luôn giữ cho phần mềm GPM Automate Runtime bật thì lịch hẹn giờ mới có tác dụng. Nếu tắt phần mềm đi, lịch hẹn giờ sẽ không chạy.

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

Để tạo và quản lý các khung giờ chạy, bạn bấm vào nút `⚙️ Manage schedules`. Hệ thống sẽ cho phép bạn thiết lập 2 kiểu hẹn giờ chính tùy theo nhu cầu:

**🔄 Kiểu 1: Repeat after (Chạy lặp lại sau một khoảng thời gian)**

* Cách hoạt động: Tool sẽ tự động chạy lại kịch bản sau mỗi khoảng thời gian (Giờ - Phút - Giây) mà bạn thiết lập.
* Ví dụ thực tế: Như trong hình, lịch tên là `15s` được cài đặt ở mục Second là `15`. Nghĩa là cứ sau mỗi 15 giây, tool sẽ tự động kích hoạt chạy lại kịch bản một lần.

<figure><img src="/files/5d6PyWfFlcXtJzvdb1nC" alt=""><figcaption></figcaption></figure>

**📍 Kiểu 2: Time points (Chạy vào các mốc giờ cố định)**

* Cách hoạt động: Tool sẽ canh đúng đến các mốc giờ cụ thể mà bạn cài đặt trong ngày để tự động bật lên chạy. Bạn có thể bấm nút `+ Add` để thêm nhiều mốc giờ khác nhau.
* Ví dụ thực tế: Như trong hình, lịch tên là `20h00` được cài đặt mốc thời gian là `20 : 0 : 0`. Nghĩa là cứ đúng 20 giờ 00 phút hàng ngày, tool sẽ tự động mở lên chạy.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/gioi-thieu-chung/huong-dan-thiet-lap-cau-hinh-de-chay-script/5.-schedule-hen-gio-chay-kich-ban.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
