Clawdbot 自動化
使用定時任務、Webhooks 和排程任務自動化您的 Clawdbot AI 助手。了解如何設定自動化工作流程。
Clawdbot 自動化概述
Clawdbot 提供強大的自動化功能,用於排程任務、整合外部服務以及建立自動化工作流程。
自動化功能
定時任務
排程週期性任務:
{
"cron": {
"jobs": [
{
"id": "morning-greeting",
"schedule": "0 8 * * *",
"action": "send_message"
}
]
}
}Webhooks
整合外部服務:
{
"webhooks": {
"incoming": {
"enabled": true,
"port": 3011
}
}
}快速開始
啟用自動化
# 啟動網關並啟用自動化
clawdbot gateway start --cron --webhooks建立您的第一個任務
# 新增每日提醒
clawdbot cron add \
--id daily-standup \
--schedule "0 9 * * 1-5" \
--action send_message \
--channel whatsapp \
--peer "+15551234567" \
--message "Time for standup!"自動化工具
| 工具 | 描述 |
|---|---|
cron | 排程任務管理 |
gateway | 網關自動化控制 |
使用案例
每日報告
自動生成並發送報告:
{
"cron": {
"jobs": [
{
"id": "daily-report",
"schedule": "0 18 * * 1-5",
"action": "run_agent",
"prompt": "Generate daily summary"
}
]
}
}警報整合
從監控系統轉發警報:
{
"webhooks": {
"handlers": [
{
"id": "alerts",
"path": "/alerts",
"action": "send_message",
"channel": "telegram"
}
]
}
}CI/CD 通知
接收建置通知:
{
"webhooks": {
"handlers": [
{
"id": "github",
"path": "/github",
"action": "send_message",
"template": "Build {{status}}: {{repository}}"
}
]
}
}配置
全域設定
{
"automation": {
"enabled": true,
"timezone": "Asia/Shanghai",
"logging": {
"level": "info"
}
}
}下一步
- Clawdbot 定時任務 - 排程任務
- Clawdbot Webhooks - 外部整合
- Clawdbot 網關 - 網關配置