第16章 实战:内容运营 Bot
一句话:用多个 Agent 组建内容工厂——自动采集、翻译、编辑、发布,打造 24 小时不停机的内容流水线。
16.1 多 Agent 内容工厂
Section titled “16.1 多 Agent 内容工厂”内容运营需要多个角色协作。我们用 4 个 Agent 组建一条流水线:
| Agent ID | 角色 | 职责 |
|---|---|---|
collector | 采集员 | 从 Reddit/YouTube/RSS 采集内容 |
translator | 翻译员 | 中英文翻译和本地化 |
editor | 编辑 | 润色、改写、适配不同平台 |
publisher | 发布员 | 发布到 Telegram 频道 / Discord / X |
{ agents: { defaults: { model: { primary: "deepseek/deepseek-v3.2" }, }, list: [ { id: "collector", workspace: "~/.openclaw/workspace-collector" }, { id: "translator", workspace: "~/.openclaw/workspace-translator" }, { id: "editor", workspace: "~/.openclaw/workspace-editor" }, { id: "publisher", default: true, workspace: "~/.openclaw/workspace-publisher" }, ], },}16.2 Daily Reddit/YouTube Digest
Section titled “16.2 Daily Reddit/YouTube Digest”通过 Cron 触发 collector Agent:
# 通过 CLI 创建定时采集任务openclaw cron add \ --name "每日内容采集" \ --cron "0 7 * * *" \ --agent collector \ --session isolated \ --message "请执行每日内容采集:搜索 Reddit r/MachineLearning 和 r/LocalLLaMA 热帖 Top 5,搜索 YouTube AI news 最新视频 Top 3,将结果写入 workspace/drafts/ 目录" \ --no-deliver采集完成后,通过 Heartbeat 或手动触发翻译和编辑:
你: @translator 请翻译今天采集的内容你: @editor 请将翻译后的内容编辑成适合 Telegram 频道的格式16.3 Cron 定时推送
Section titled “16.3 Cron 定时推送”每天定时推送到 Telegram 频道:
# 通过 CLI 创建定时推送任务openclaw cron add \ --name "早间推送" \ --cron "0 9 * * *" \ --agent publisher \ --message "请读取今日编辑好的内容稿件,发布到 Telegram 频道。格式要求:标题 + 摘要 + 原文链接。" \ --announce --channel telegram
openclaw cron add \ --name "晚间速读" \ --cron "0 18 * * *" \ --agent publisher \ --message "请生成今日 AI 领域晚间速读,3-5 条精选内容。" \ --announce --channel telegram16.4 X/Twitter 自动化
Section titled “16.4 X/Twitter 自动化”通过浏览器工具发布内容到 X:
## X/Twitter 发布流程1. 将内容压缩到 280 字符以内2. 添加相关话题标签3. 使用浏览器登录 X(凭证从 1Password 获取)4. 发布推文5. 记录已发布的内容 URL16.5 Podcast 生产流水线
Section titled “16.5 Podcast 生产流水线”Agent 可以辅助 Podcast 制作:
- 选题:collector 从热点话题中筛选
- 提纲:editor 生成节目提纲
- 稿件:editor 将提纲扩展为口语化稿件
- Show Notes:publisher 生成节目笔记和时间线
16.6 成本估算
Section titled “16.6 成本估算”注意:以下为粗略估算,实际成本取决于内容量和模型选择。截至 2026 年 3 月。
| 任务 | 频率 | 每次 token | 月成本(DeepSeek) |
|---|---|---|---|
| 内容采集 | 1次/天 | ~5K | ~¥1 |
| 翻译 | 1次/天 | ~10K | ~¥2 |
| 编辑 | 1次/天 | ~8K | ~¥1.5 |
| 发布(2次) | 2次/天 | ~3K | ~¥1 |
| 合计 | ~¥5-10/月 |
使用 Coding Plan(¥7.9/月封顶)可以完全覆盖。
16.7 小结
Section titled “16.7 小结”| 组件 | 作用 |
|---|---|
| 多 Agent 流水线 | collector → translator → editor → publisher |
| Cron 驱动 | 定时采集 + 定时发布 |
| 浏览器工具 | 采集网页内容、发布到社交平台 |
| 成本控制 | DeepSeek 按量 ~¥5-10/月,或 Coding Plan ¥7.9 封顶 |
下一章搭建团队协作 Agent。