[建议 / Feature] 定时任务(自动化)结果支持推送到已绑定的微信/飞书 Bot 通道
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
提交前确认
- 我已搜索过现有 issue,确认这不是重复提议
- 我已阅读 CONTRIBUTING.md
问题类别 · Category
对话 / Agent 交互 · Agent chat / interaction
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
使用场景 · Use case
我配置了两个定时任务(自动化),分别用于每天早上生成"微信读书日报"(07:30)和"睡前消息日报"(07:45)。同时我在 ZCode 中绑定了微信 Bot 通道(扫码接入,正常工作)。
现状:定时任务准点执行后,结果只落在 ZCode 会话里,不会主动推送到微信。官方文档(automations)明确说明任务"不主动打扰你,需要自己去对应会话或历史里看";Bot Channel 文档也只支持"用户主动发消息 → bot 响应",没有 bot 主动/定时推送能力。
不方便之处:
- 每天要打开 ZCode 客户端才能看到日报内容,无法只靠手机微信接收;
- Bot 只能"被问才答"(我在微信里发一句触发词才能拉到日报),不是"准点自动送达";
- 对于"每日晨报/日报/定时提醒"这类典型用法,希望官方提供**「定时任务结果 → 推送到已绑定 Bot(微信/飞书)」**的链路。
建议方案 · Proposal
- 自动化任务增加"输出目标"设置:允许把任务结果投递到已绑定的 Bot 通道(微信/飞书),支持"仅异常时推送"或"每次运行都推送"两种粒度;
- 或Bot Channel 支持主动推送:提供 bot 侧 API/配置,允许 Agent 在定时任务里把生成内容主动发到用户微信/飞书(类似 Hermes 的"通用通知能力");
- 两种方案都建议在任务结果推送时附带会话题目/链接,方便在 ZCode 内追溯。
预期价值 · Expected value
- 用户每天早上的日报/晨报/提醒类定时任务可以实现"准点送达手机微信",无需打开客户端;
- 覆盖"订阅型"自动化场景(日报、股价、监控告警、定时提醒等),让 ZCode 从"开发工具"延伸到"个人助理";
- 与已上线的 Bot Channel 形成闭环,提升 bot 通道的日常实用性。
你认为的优先级 · Your perceived priority
中 · Medium
你使用的 ZCode 版本 / 环境 · ZCode version / environment
ZCode 3.7.7 (win-x64) / Windows 11 (10.0.22631) / 微信 Bot 通道已绑定
补充材料 · Additional context
- 相关官方文档:automations(
/cn/docs/automations)、bot-channel(/cn/docs/bot-channel) - 已确认 hooks 无 automation 相关事件,无法通过官方 hook 间接触发推送
- 参考:此需求类似可替代方案(自定义脚本轮询 bot 接口)能做到,但属绕官方通道,易随版本失效,故希望官方原生支持
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with /cn/docs/automations and /cn/docs/bot-channel, then locate the automation and Bot Channel entry points; the issue names no source files or tests. The work is done when scheduled results can target a bound WeChat or Feishu Bot, support every-run or exception-only delivery, and include a conversation title or link for追溯.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100