让 AI 帮你自动执行任务。
yaml
# ~/.openclaw/config.yaml
cron:
daily_briefing:
enabled: true
schedule: "0 8 * * *" # 每天 8:00
task: "generate_briefing"
yaml
cron:
price_monitor:
enabled: true
schedule: "*/10 * * * *" # 每 10 分钟
task: "check_prices"
notify:
channel: telegram
threshold: 5% # 波动超过 5% 通知
yaml
cron:
content_publish:
enabled: true
schedule: "0 9 * * *" # 每天 9:00
task: "publish_content"
platforms:
- juejin
- zhihu
yaml
triggers:
message:
- keyword: "订单"
action: "check_order"
- keyword: "快递"
action: "check_delivery"
yaml
triggers:
webhook:
- path: /webhook/payment
action: "process_payment"
- path: /webhook/error
action: "handle_error"
yaml
triggers:
file:
- path: ~/Documents/inbox
action: "process_file"
pattern: "*.pdf"
yaml
automation:
auto_reply:
enabled: true
rules:
- match: "你好"
reply: "你好!有什么可以帮你的?"
- match: "价格"
reply: "当前价格:XXX"
yaml
automation:
classify:
enabled: true
rules:
- keyword: ["bug", "错误"]
tag: "问题反馈"
- keyword: ["建议", "希望"]
tag: "功能建议"
yaml
automation:
forward:
enabled: true
rules:
- source: telegram
target: discord
- source: wechat
target: slack
yaml
# ~/.openclaw/skills/auto_report.yaml
name: auto_report
trigger:
schedule: "0 18 * * 5" # 每周五 18:00
action:
- generate_weekly_report
- send_email
bash
openclaw skill enable auto_report
bash
openclaw logs --filter automation
bash
openclaw automation history
检查:
bash
openclaw automation test <task_name>
bash
openclaw automation disable <task_name>
联系:微信 yang1002378395 或 Telegram @yangster151
创建:2026-03-14