← 返回
未分类 中文

Feishu Cron Delivery

Configure, repair, and validate OpenClaw scheduled outbound delivery to Feishu. Use when creating or fixing cron jobs that must proactively send user-visible...
配置、修复并验证OpenClaw定时向飞书发送的出站投递。用于创建或修复需要主动向用户推送可见信息的cron任务。
timyao61-max
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 333
下载
💾 0
安装
1
版本
#latest

概述

Feishu Cron Delivery

Use this skill to make OpenClaw cron jobs reliably send proactive messages to Feishu.

Core rule

For strong-SLA Feishu delivery, do not use:

  • sessionTarget: "main" + payload.kind: "systemEvent"
  • delivery.channel: "last" as the final production route

Use this validated pattern instead:

  • sessionTarget: "isolated"
  • payload.kind: "agentTurn"
  • delivery.mode: "announce"
  • delivery.channel: "feishu"
  • delivery.accountId:
  • delivery.to: user: or another explicit Feishu destination

What to check first

  1. Run openclaw cron list --json.
  2. Identify whether the job is:
    • a main-session system event job, or
    • an isolated agent-turn job.
  3. Inspect the last run state:
    • lastDeliveryStatus: not-requested usually means it never entered outbound delivery.
    • status/error with Feishu 400 usually means delivery was attempted but the route/payload was rejected.

Repair workflow

Case 1: Job uses main + systemEvent

Treat it as an internal wakeup pattern, not user-visible delivery.

Repair it by changing to:

  • --session isolated
  • --message "..."
  • --announce
  • --channel feishu
  • --account
  • --to user:

Case 2: Job uses isolated + announce + channel:last

Treat last as debugging-only for Feishu. If it fails or returns 400, replace it with explicit routing:

  • --channel feishu
  • --account
  • --to user:

Case 3: Delivery should stay internal

Use:

  • --session isolated
  • --message "..."
  • --no-deliver

or set delivery.mode: "none".

Validation workflow

After creating or editing a Feishu cron job:

  1. Create a one-shot smoke test with explicit Feishu routing.
  2. Use scripts/create_smoke_test.py if you want a deterministic command generator.
  3. Wait for the scheduled time.
  4. Confirm the user actually received the Feishu message.
  5. Check openclaw cron runs --id .

Successful validation means:

  • user received the message in Feishu
  • run status is ok
  • delivery is not not-requested

Recommended CLI patterns

One-shot smoke test

openclaw cron add \
  --name "Feishu delivery smoke test" \
  --at "2026-04-04T14:32:30" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "在本轮只输出这一句话:主动消息链路测试。" \
  --announce \
  --channel feishu \
  --account default \
  --to "user:OPEN_ID" \
  --delete-after-run

Recurring 15-minute report

openclaw cron add \
  --name "xhs-progress-15m" \
  --cron "*/15 * * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "请输出一份发给老姚的中文进度报告..." \
  --announce \
  --channel feishu \
  --account default \
  --to "user:OPEN_ID"

09:00 morning summary

openclaw cron add \
  --name "daily-memory-report-0900" \
  --cron "0 9 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "请向老姚发送一份中文晨报..." \
  --announce \
  --channel feishu \
  --account default \
  --to "user:OPEN_ID"

When to keep a separate internal job

Split internal work from user-visible delivery when needed:

  • 04:00 internal memory distillation → delivery.mode: none
  • 09:00 outward user summary → explicit Feishu announce delivery

This avoids confusing internal maintenance with outward delivery.

Packaging notes

Before publishing:

  • replace any user-specific identifiers with placeholders
  • keep examples parameterized (OPEN_ID, ACCOUNT_ID)
  • run the smoke test workflow locally once
  • validate and package the skill

Reference

Read references/validated-pattern.md for the concrete failure modes and the validated fix pattern.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 14:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,547 📥 594,117
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 883 📥 358,613
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,461 📥 331,208