> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/advanced-basic/cases/automated-daily-report.md).

# 頻道同定時日報

營運團隊希望每個工作日上午自動匯總指定資料，生成日報並發送到團隊頻道。自動化之前先手動跑通一份，能及早發現數據缺失、路徑錯誤同通知目標問題。

## 先準備咩

* 一個已喺【工作】中驗證過嘅日報 Agent；
* 清晰嘅數據來源同只包含所需資料嘅工作目錄；
* 固定格式可以做成技能；
* 已連接並限制消息範圍嘅頻道；
* 一個工作日定時任務。

<figure><img src="/files/5775a4b68011af8e582334128c99c45408f86268" alt="频道设置中的平台列表和添加入口"><figcaption><p>日報先綁定經過測試嘅頻道，再將佢選做定時任務嘅通知目標。</p></figcaption></figure>

<figure><img src="/files/3647bc078c5aedd2b5fcc6ca63eb38ea1841888b" alt="Agent 状态面板中的子任务、后台命令和上下文用量"><figcaption><p>首次自動運行後，從 Agent 狀態同運行記錄檢查任務係咪真正完成。</p></figcaption></figure>

<figure><img src="https://3562065924-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Ut5BptC3t8CtSU1UWpM%2Fuploads%2Fgit-blob-b7bdae7ef46b33fe53006da754217349fced92e6%2Fcherry-v2-guide-case-daily-report-schedule.png?alt=media" alt="设置中已经保存并启用的每日项目进展简报定时任务和完整提示词"><figcaption><p>① 任務已經啟用並顯示下次運行時間；② 提示詞清楚寫明四段結構、缺失數據處理同頻道發送條件。</p></figcaption></figure>

## 配置步驟

{% stepper %}
{% step %}

### 1. 手動生成一份日報

要求 Agent 輸出「進展、指標、風險、待辦」四部分。檢查數據缺失時有冇明確說明，而唔係亂作內容。
{% endstep %}

{% step %}

### 2. 配置通知頻道

優先喺 Agent 對話中說明要連接嘅平台同群，再去【設定】→【頻道】核對憑據、允許嘅會話 ID、工作區同權限模式。
{% endstep %}

{% step %}

### 3. 建立定時任務

畀 Agent 建立工作日計劃，或者打開【設定】→【定時任務】→【新建】。揀日報 Agent、工作目錄、執行時間同通知頻道。
{% endstep %}

{% step %}

### 4. 即時測試

儲存後撳【運行】，睇生成嘅會話、運行歷史同頻道消息。唔好等到第二日先發現路徑或者接收目標錯咗。
{% endstep %}

{% step %}

### 5. 觀察同調整

頭幾次運行檢查耗時、用量同失敗原因。數據源或者團隊格式有變時，更新技能或任務提示詞，唔好喺多個位置維護互相衝突嘅規則。
{% endstep %}
{% endstepper %}

## 示例任務提示詞

```
讀取目前工作目錄入面尋日新增嘅數據，生成中文營運日報。固定包含進展、關鍵指標、異常、今日待辦。搵唔到數據時寫「暫無數據」並列出缺少嘅文件，不得補寫數值。結果發送到已配置嘅團隊頻道，並喺工作目錄保留一份 Markdown 文件。
```

## 失敗處理

| 現象    | 檢查位置                  |
| ----- | --------------------- |
| 冇運行   | 定時任務狀態、下一次運行時間、系統休眠   |
| 運行失敗  | 【運行歷史】→【查看會話】         |
| 文件冇生成 | 工作目錄、權限請求同 Agent 文件工具 |
| 消息冇送到 | 頻道狀態、接收目標同平台日誌        |
| 內容重複  | 係咪同時啟用咗心跳同多個相同計劃      |

## 建議組合同完成標準

| 項目    | 建議做法                               |
| ----- | ---------------------------------- |
| Agent | 先手動跑通同一份日報，再交畀定時任務                 |
| 計劃    | 優先用【每天】或者【工作日】，確認下一次運行時間           |
| 頻道    | 先發到測試會話，再切換正式群                     |
| 完成標準  | 運行歷史成功；報告文件打得開；頻道只收到一條；缺少數據時唔會亂作結果 |

{% hint style="warning" %}
定時任務會喺冇人看住時執行。上線前保持最細文件範圍同合適權限，避免將高風險寫入或者外部修改交畀完全存取模式。
{% endhint %}

{% hint style="info" %}
截圖入面嘅示範環境冇綁定外部頻道，所以只展示已經儲存並啟用嘅任務。正式使用時仲要撳【運行】，確認【運行歷史】成功，並喺測試頻道睇到一條真實消息之後再投入日常運行。
{% endhint %}


---

# 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.cherryai.com.cn/docs/zhong-wen-fan-ti/advanced-basic/cases/automated-daily-report.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.
