> 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="https://275605936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN9cKpvJdcLU6FS8VMSTs%2Fuploads%2Fgit-blob-10d382aa297d134116b43b2e6f814f15e0480400%2Fimage%20(241).png?alt=media" 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="https://275605936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN9cKpvJdcLU6FS8VMSTs%2Fuploads%2Fgit-blob-1f51c7ff27828fcf451d67fbf56c695aca36746c%2Fimage%20(243).png?alt=media" 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="https://275605936-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN9cKpvJdcLU6FS8VMSTs%2Fuploads%2Fgit-blob-e491cf0ce728f8362f87eb924a4be2162755f3b7%2Fimage%20(239).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
