> For the complete documentation index, see [llms.txt](https://docs.coreway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coreway.com/coreway-table/automation/triggers/schedule-trigger.md).

# 定時觸發

### 1. 類型介紹

設定一個循環週期時間（例如每周一早 8 點），每到一個週期時間就會自動觸發流程。

### 2. 場景舉例

* 員工打卡使用企業微信，在搭建好的《員工考勤》應用中，每天 9 點和晚上 9 點從企業微信同步打卡數據，週六週日不用同步。此時就可以配置一個定時觸發的工作流程，設計好相關觸發時間即可自動同步數據。
* 每天 18:00 自動為每個員工生成一條工作日誌記錄，並發給員工填寫。

### 3. 使用方法

#### 3.1 新建工作流程時，選擇定時觸發

#### 3.2 開始執行時間

開始執行時間，即第一次開始執行的時間，以這個時間為基準開始第一次循環觸發。預設為當天 8 點整。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2Fq8nFMDye4W47sT7vitQV%2F17814521945881.png?alt=media)

#### 3.3 重複規則

重複：即重複的週期類型，可以是每小時、每天、每個工作日、每周、每月、每年，或者自定義的週期時間。

1. 重複的日期依據您設置的開始執行時間的日期時間。例如上圖中選擇的是 2021-09-01（週三），那麼如果是每周重複，就是每周三；如果是每月重複，就是每月第 1 天；如果是每年重複，就是每年的 9 月 1 號。
2. 工作日是週一至週五，同時不包含節假日；如果您需要週一至週六，請使用自定義週期。

#### 3.4 自定義重複週期

除了系統預設支持的每天、每周等重複類型，還支持更靈活的自定義重複週期。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FzWA8B2R6vYeVmGbcd4rb%2F700ddff8cc82afcf475366608cfea4f3.png?alt=media)

例如，可以每隔幾個小時觸發，也可以每天的 9 時、12 時固定觸發，還可以每周三、周五的某個時刻觸發。

配置步驟：

1. 先確定一個基準的開始時間
2. 配置 1 天內按「時分」觸發的頻率
3. 配置按天／按周觸發的頻率
4. 配置按月觸發的頻率
5. 點擊生成最近 7 次計劃觸發的時刻

**配置觸發後需要執行的動作，並發布流程。**

為了便於測試觸發後後續節點的執行效果，流程發布後，可以直接點擊【立即執行】，會直接觸發流程執行計劃任務。

![image.png](https://273888574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9WI4IMScYYFwRQSZY8Zr%2Fuploads%2FQbeogwNTVDKWu4nXbjXq%2Ffe2ff53a116d234e52818580629f8747.png?alt=media)


---

# 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.coreway.com/coreway-table/automation/triggers/schedule-trigger.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.
