广告。OOO “TIMEWEB.CLOUD”。纳税人识别号(INN):7810945525。Erid:2W5zFHaNSYZ

新用户使用优惠码,Timeweb Cloud 充值金额翻倍 https://tweb.link/9wurk

优惠码:ELTON

要激活充值翻倍,请先输入优惠码,再为账户充值;请注意,最高翻倍金额为 50,000


实用链接

主要服务:

必备工具:

其他服务:

  • 🕷️ APIFY — 自动化数据采集
  • 🔍 Perplexity — 为智能体提供互联网搜索
  • 🔑 OpenRouter — 一个 API 对接多种 LLM 模型

优惠码: ELTON — 在 Timeweb Cloud 首次充值时金额翻倍(仅限新账户)


目录

  1. 引言:为什么你需要 OpenClaw
  2. OpenClaw 是什么
  3. OpenClaw 与普通聊天机器人有何不同
  4. 架构:眼睛、双手与大脑
  5. 工具与技能
  6. 后台功能
  7. 安装前的准备
  8. 选择服务器区域
  9. 在 Timeweb Cloud 上安装服务器
  10. 创建 Telegram 机器人
  11. 通过 PUTTY 连接服务器
  12. OpenClaw 的初始设置
  13. 连接 Timeweb Cloud 的 AI 智能体
  14. OpenClaw 文件的详细配置
  15. 访问网页界面
  16. 在 Telegram 中使用群聊
  17. 从 ClawHub 安装技能
  18. 连接外部 API(APIFY 等)
  19. 为 OpenClaw 向云端上传文件
  20. 数据可视化与图表
  21. 其他工具与集成
  22. 进阶小技巧
  23. 使用场景
  24. 总结
  25. FAQ(常见问题)

引言:为什么你需要 OpenClaw

现代神经网络就像一颗超级聪明的大脑,能回答我们的任何请求和问题。但如果给这些神经网络装上双手和眼睛,并让它们能够 24/7 全天候在线,会怎么样呢?

💭 想象一下……

有这样一个智能体,它会自己访问需要的网站、执行操作、提醒你,并在恰当的时候与你交流。你不用在电脑上干活——电脑在为你干活。

它会成为一个超级自主的 AI 智能体,能执行我们给它的任何指令:

  • ✅ 自己访问需要的网站
  • ✅ 替你执行各种操作
  • ✅ 在需要时提醒你并与你交流
  • ✅ 为满足你的需求,自己创建新技能

💼 我的工作流

为了方便,我用的是一个带话题的 Telegram 群组,每个话题里都有一个独立的 AI 智能体,负责各自的任务和技能。这就是我的团队,它们给我发消息,我回复它们。 → 一个智能体负责早间简报, → 另一个负责分析 YouTube 视频, → 第三个负责监控 Reddit 上的趋势。

这一切都得益于一个叫 OpenClaw 的工具。

Screenshot


OpenClaw 是什么

OpenClaw 是一个自主运行的开源 AI 智能体,由此前名为 Clawdbot 和 Moltbot 的项目演变而来。

与 ChatGPT 或 Claude 这类只负责回答问题的普通聊天机器人不同,OpenClaw 正是为执行行动而设计的。

主要特点:

  • ✅ 持续运行的 Node.js 服务
  • ✅ 会话管理与记忆存储
  • ✅ 在后台运行进程
  • ✅ 可以使用任意 LLM 模型
  • ✅ 源代码开放
  • ✅ 自我学习,并能创建属于自己的技能

OpenClaw 与普通聊天机器人有何不同

特性普通聊天机器人(ChatGPT、Claude)OpenClaw
工作方式回答请求自主执行任务
系统访问无可完全访问文件、命令和浏览器
后台任务无24/7 运行,按计划执行任务
集成有限任意 API、服务和应用
自我学习无根据经验为自己创建技能

架构:眼睛、双手与大脑

👁️ OpenClaw 的眼睛

智能体如何看世界:

  • 读取磁盘上的文件
  • 创建并分析截图
  • 用专门的浏览器进行网页导航
  • 分析 API 的响应

🤲 OpenClaw 的双手

智能体能做什么:

  • 在终端中运行 shell 命令
  • 向任意服务发送 HTTP 请求
  • 控制浏览器(点击、填写表单、导航)
  • 与应用程序交互
  • 操作文件系统

🧠 OpenClaw 的大脑

可选的 AI 模型:

  • Claude Sonnet(推荐)
  • GPT-4 / GPT-4o
  • Google Gemini
  • 通过 Ollama 使用本地模型
  • 通过 OpenRouter 使用任意模型

**重要提示:**大量使用时,token 的成本可能很高。所以用 Timeweb Cloud 很方便——可以用卢布付款,并且便于控制成本。


工作原理:ReAct

🧠 智能体是怎么思考的?

OpenClaw 遵循 ReAct(Reasoning + Acting,推理 + 行动)原理——这意味着它在每一步都不只是执行命令,而是会推理下一步该做什么。

在每一步中,智能体会:

  1. 思考(Reason) — 分析情况:“需要做什么?应该用哪些工具?”
  2. 行动(Act) — 选择并执行一个动作
  3. 获得结果 — 分析结果:“成功了吗?接下来该做什么?”
  4. 重复 — 持续循环,直到任务完成

📝 推理链示例

任务:“在互联网上查找 AI 最新趋势的信息,并创建一条笔记”

第 1 步(思考):“我需要查找信息 → 我用 Brave search” **第 1 步(行动):**执行搜索 第 2 步(思考):“找到了 10 篇文章 → 我需要阅读前 3 篇” **第 2 步(行动):**阅读这些文章 第 3 步(思考):“信息收集完了 → 我需要把它整理成结构” **第 3 步(行动):**创建带标题的 Markdown 文件 **结果:**一条完成的笔记!

整个推理链都会写入会话文件——你随时可以查看智能体是如何得出结果的。


工具与技能

OpenClaw 有两个层次的能力:

🔧 工具

任何一台计算机都具备的基础能力:

  • 读取和写入文件
  • 运行 shell 命令
  • 搜索互联网(Google、Brave Search)
  • 使用 API
  • 控制浏览器

🎯 技能

高层级的行为场景,可以由智能体自己学习,也可以由开发者添加。例如:

  • 日历管理
  • 代码分析
  • 使用 Gmail
  • 与 Notion 集成
  • 数据解析
  • 以及成千上万的其他技能

ClawHub — 模块化能力的注册中心,社区成员已在其中创建了 5000 多个技能。

链接 - ClawHub

热门技能:

  • 📧 Gmail — 管理电子邮件
  • 📅 Google Calendar — 使用日历
  • 📝 Obsidian — 管理笔记
  • 📊 Notion — 操作数据库
  • 🔍 Perplexity — 高级互联网搜索
  • 🐙 GitHub — 管理代码仓库
  • ✈️ Flight Booking — 购买机票
  • 📋 Trello — 管理看板
  • ✅ Todoist — 管理任务
  • 🤖 Reddit — 监控并分析 Reddit

后台功能

得益于四项后台功能,OpenClaw 可以自主工作:

💡 核心特色

与普通聊天机器人不同,OpenClaw 从不休眠。它在后台持续运行,自己判断什么时候该给你发消息、什么时候该去做事。你一觉醒来——报告已经准备好,数据已经收集完毕,智能体正等着你的下一步指示。

1. ⏰ Heartbeat(心跳)

智能体每 30 分钟检查一次:

  • 现在有什么事需要立刻处理吗?
  • 用户是不是在等我做某件事?
  • 有没有紧急任务?

📧 Heartbeat 示例

"Every 30 minutes check my email. 
If there's a letter from boss@company.com or from clients — 
notify me immediately on Telegram"

这样你就再也不会错过重要邮件了!

2. 📅 Cron(定时任务)

按日历安排执行任务。例如:

  • “每天早上 8:00 给我发一份当天简报”
  • “每周一发送一份报告”
  • “每周分析一次统计数据”

🌅 Cron 任务示例

"Every morning at 7:00:
- The weather in Moscow
- My meetings for today from Google Calendar
- The top 3 news in AI
- Urgent emails overnight

All in one short message with emoji"

智能体会自己创建一个 cron 技能,并自动执行任务。

3. 🔔 Webhooks(网络钩子)

实时响应各类事件:

  • Google Sheets 中出现新记录 → 智能体进行处理
  • GitHub 中出现新的提交 → 智能体检查代码
  • 收到带有特定主题的新邮件 → 智能体作出反应

🚀 强大的自动化

借助 webhooks,你可以构建响应式系统。例如:客户在网站上填写表单 → 记录写入 Google Sheets → webhook 触发 → 智能体在 Asana 中创建任务并发送欢迎邮件。整个过程即时且全自动。

4. 📈 Self-Improvement(自我改进)

通过持续的对话来实现:

  • 智能体了解你的期望
  • 为自己创建新技能
  • 在后续任务中应用这些技能
  • 每次使用后都会变得更好

🎯 这将改变一切

想象一下:智能体第一次完成某项任务用了 5 分钟。你给出反馈,它为自己创建了一个技能。

下一次,同样的任务 30 秒就能完成—— 全自动,而且完全符合你的要求。

所有这些智能体都可以在不同的会话中并行工作。


安装前的准备

你需要准备:

  1. 一个 Timeweb Cloud 账号

    • 在 timeweb.cloud 注册
    • 首次充值时使用优惠码 ELTON,可让充值金额翻倍
  2. 一个 Telegram 账号

    • 用于与智能体交流
  3. PUTTY(Windows 用户)

  4. 选择 AI 模型

    • 我建议在 Timeweb Cloud 上租用 AI 智能体
    • 备选方案:使用你自己的 OpenAI、Anthropic、Google 的 API 密钥

安全性

重要提示:

有些用户因为存在漏洞而不敢把 OpenClaw 安装在自己的个人电脑上。所以我们使用 Timeweb Cloud 上的独立服务器——它很安全,并且与你的主力电脑相互隔离。


选择服务器区域

在订购服务器之前,一定要留意托管区域。

🇷🇺 俄罗斯的服务器

优点:

  • ✅ 更便宜
  • ✅ 同样的价格性能更强
  • ✅ 在俄罗斯境内访问速度快

特点:

  • ⚠️ 部分神经网络的使用会受到限制
  • ⚠️ 国际 API 的访问被屏蔽

解决办法: 使用”AI 智能体”栏目中的 Timeweb Cloud AI 智能体——它们运行没有问题,还可以用卢布付款。

链接 - Timeweb Cloud 的 AI 智能体


🌍 海外服务器(德国、荷兰)

优点:

  • ✅ 可直接访问国际 API
  • ✅ 所有模型都能无限制使用

缺点:

  • ❌ 更贵
  • ❌ 使用第三方 API 需要用外币付款

✔️ 我的推荐

我选择俄罗斯,因为:

  1. 更便宜,性能更强
  2. 我使用 Timeweb Cloud 的 AI 智能体
  3. 用卢布付款——很方便
  4. 足够应付所有任务

在 Timeweb Cloud 上安装服务器

第 1 步:登录控制面板

  1. 打开 timeweb.cloud
  2. 登录系统
  3. 进入控制面板

Screenshot

第 2 步:应用市场

  1. 在侧边菜单中选择**“云服务”**
  2. 进入**“应用市场”**
  3. 你会看到排在第一位的 OpenClaw

🎯 省心省力

Timeweb Cloud 已经替我们做好了一切——OpenClaw 已经以现成的镜像上架应用市场。你不需要手动安装依赖、配置环境——一切都会自动完成!

Screenshot

第 3 步:选择配置

  1. 选择区域:

    • 🇷🇺 俄罗斯(对大多数人推荐)
    • 🇩🇪 德国
    • 🇳🇱 荷兰
  2. 选择套餐:

    • 最低配置:2GB 内存
    • 推荐配置:4GB 内存,使用起来更流畅
    • 最优配置:8GB 内存,适合复杂任务

💰 我的配置

我用的是俄罗斯的服务器,4GB 内存——在价格(约 500₽/月)和性能之间达到了最佳平衡。刚开始用的话完全够了!

  1. 点击所选的配置

Screenshot

第 4 步:自动安装

点击之后:

  • ✅ 服务器自动创建
  • ✅ 自动安装 OpenClaw
  • ⏱️ 等待时间:2-5 分钟

☕ 喝杯咖啡的时间

服务器创建期间,你可以去冲杯咖啡。整个过程全自动——你什么都不用做。

完成! 装有 OpenClaw 的服务器已经可以开始配置了。

重要信息

创建完成后,请保存好:

  • 📍 IPv4 地址——用于通过 PUTTY 连接
  • 🔑 root 密码——在”管理”→“Root 密码”栏目中

🔐 一定要保存好密码!

务必把 root 密码保存在安全的地方(例如密码管理器)。没有它,你就无法连接到服务器!

Screenshot


创建 Telegram 机器人

在第一次连接服务器之前,先创建一个 Telegram 机器人。

🤖 为什么需要 Telegram 机器人?

Telegram 是与 OpenClaw 交流的主要方式。你可以像和普通人聊天一样与智能体沟通:布置任务、获取报告、询问进度。方便又随时在手边!

第 1 步:打开 BotFather

  1. 打开 Telegram
  2. 找到 @BotFather
  3. 点击 /start

💡 BotFather——官方机器人

这是 Telegram 官方用来创建其他机器人的机器人,不需要任何第三方服务!

Screenshot

第 2 步:创建机器人

  1. 发送命令:/newbot
  2. 输入机器人的名称(即它的显示名称)
    • 例如:My OpenClaw Agent
    • 或者:My Smart Assistant
  3. 输入用户名(必须以 bot 结尾)
    • 例如:my_openclaw_bot
    • 或者:elton_ai_assistant_bot

⚠️ 用户名必须唯一

用户名在整个 Telegram 范围内必须唯一。如果所选名称已被占用,BotFather 会给出建议,或让你另选一个。

Screenshot

第 3 步:获取 API 密钥

BotFather 会给你发送一条包含 API token 的消息:

1234567890:ABCdefGHIjklMNOpqrsTUVwxyz1234567

🔐 重要:一定要保存好 token!

这个 token 是你的机器人的访问密钥。请把它保存在安全的地方:

  • ✅ 复制到你的笔记中
  • ✅ 或者保存到密码管理器里
  • ❌ 不要透露给其他人
  • ❌ 不要发布在公开的地方

任何人拿到这个 token,都可以控制你的机器人!

第 4 步:其他设置(可选)

你还可以配置:

  • 机器人头像:/setuserpic
  • 简介:/setdescription
  • 命令列表:/setcommands

💅 个性化

我通常会设置一个带 logo 的头像,或者用 🤖 表情,再加上一句简介:“我的自主 AI 智能体,用于自动化各类任务”。这样在聊天列表里就更容易找到这个机器人了!

Screenshot


通过 PUTTY 连接服务器

🔌 SSH——远程控制

SSH(Secure Shell)是一种通过命令行安全控制服务器的方式。想象一下,你就像坐在服务器的键盘前一样,哪怕它实际上可能在另一个国家!

Windows 用户(PUTTY)

第 1 步:下载 PUTTY

打开 putty.org.ru/download,下载安装程序。

💾 PUTTY 的替代工具

如果你不喜欢 PUTTY,也可以使用:

  • Windows Terminal(Windows 11 自带)
  • MobaXterm(功能更强大)
  • WSL(Windows 的 Linux 子系统)

Screenshot

第 2 步:启动 PUTTY

  1. 打开 PUTTY 程序
  2. 在 Host Name (or IP address) 一栏中粘贴你在 Timeweb Cloud 上获得的 IPv4 地址
  3. Port: 保持 22 不变
  4. Connection type: 选择 SSH
  5. 点击 Open

📝 填写示例

Host Name: 45.67.89.123
Port: 22
Connection type: SSH

Screenshot

第 3 步:首次连接

会弹出一个安全警告:

The server's host key is not cached in the registry...

🔒 这是什么意思?

这是第一次连接新服务器时的正常警告。PUTTY 会确认你连接的确实是你自己的服务器,而不是别的服务器。

点击 “Yes”(是)或 “Accept”(接受)。

第 4 步:登录

  1. Login as: 输入 root
  2. Password: 粘贴来自 Timeweb Cloud 的密码
    • ⚠️ 重要: 输入时看不到密码,这是正常现象!
    • 用鼠标右键粘贴
  3. 按 Enter

✅ 你已经连接到服务器了!

💡 在 PUTTY 中粘贴密码

密码要用鼠标右键粘贴:先复制密码,然后在 PUTTY 窗口中点击右键即可。字符不会显示出来,但密码已经粘贴进去了!

macOS/Linux 用户(终端)

打开终端,输入:

ssh root@YOUR_IPv4_ADDRESS

出现提示时输入密码。


OpenClaw 的初始设置

现在我们通过命令行来运行 OpenClaw 的首次设置。

📝 首次启动

第一次登录系统时,OpenClaw 设置向导可能会自动启动。如果没有启动,或者你把它关掉了,可以用下面的命令手动启动。

第 1 步:启动设置向导

在 PUTTY 中输入命令:

openclaw onboard

第 2 步:同意条款

系统会要求你同意条款和风险提示:

  • 输入:Yes
  • 按 Enter

第 3 步:QuickStart

选择 QuickStart 快速开始:

  • 用方向键选中这一项
  • 按 Enter

第 4 步:模型/认证提供商

在这里你可以接入某个 AI 模型的 API 密钥。

可选方案:

方案 A:使用 Timeweb AI 智能体(推荐)

如果你打算使用 Timeweb Cloud 的 AI 智能体:

  • 选择:“Skip for now”
  • 我们稍后再来连接

方案 B:使用 OpenRouter

如果你有 OpenRouter 的 API 密钥:

  • 选择该提供商
  • 输入 API 密钥
  • OpenRouter 只需一个密钥就能使用众多模型

方案 C:直接使用 API 密钥

如果你有 OpenAI、Anthropic、Google 的密钥:

  • 选择对应的提供商
  • 输入 API 密钥

✔️ 我的建议: 选 Skip for now → 我们使用 Timeweb AI 智能体

第 5 步:筛选模型

选择:“All providers”

第 6 步:通信方式(Telegram)

选择通信方式:Telegram

系统会要求你输入 Telegram Bot Token:

  1. 粘贴你从 BotFather 获得的 token
  2. 按 Enter

第 7 步:配置技能(Skills)

关于是否配置技能的提问:

  • 选择:“No” 或 “Skip”
  • 技能我们稍后再配置

第 8 步:启用钩子(Hooks)

关于是否启用钩子的提问:

  • 选择:“Skip”
  • 如果需要,我们稍后再配置

第 9 步:Hatch your bot

关于最终启动的提问:

  • 选择:“Do this later”

第 10 步:获取确认码

  1. 打开 Telegram
  2. 通过用户名找到你的机器人
  3. 点击 Start
  4. 机器人会给你发送一个确认码(6 位数字)

第 11 步:确认连接

在 PUTTY 中输入命令:

openclaw pairing approve telegram CODE

其中 CODE 是来自 Telegram 的确认码。

例如:

openclaw pairing approve telegram 123456

✅ Telegram 已连接!


连接 Timeweb Cloud 的 AI 智能体

现在我们来给 OpenClaw 接上”大脑”。

⚠️ 重要提示

如果完成 OpenClaw 设置后,你仍停留在控制台界面(可以直接在终端里和机器人对话),需要先退出这个界面。

如何退出终端中的对话模式:

  • 连续按两次 Ctrl + C
  • 你会回到普通的命令行
  • 现在可以继续安装了

Screenshot

第 1 步:租用 AI 智能体

  1. 打开 Timeweb Cloud

  2. 进入 “AI 智能体” 板块

  3. 点击 “创建智能体” 或 “添加”

  4. 选择模型:

    • Gemini:性价比不错(建议先从它开始)
    • Claude Sonnet:处理复杂任务时质量最好
    • GPT-4:通用型选择
  5. 选择 token 额度:

    • 刚开始建议:100 万 token(约 500 卢布)
    • 用于初始设置足够了
    • 之后可以按需再购买
  6. 点击 “创建”

Screenshot

💡 我的建议

我通常从 100 万 token 的 Gemini 开始,它在质量和成本之间取得了很好的平衡。遇到更高级的任务时,可以再切换到 Claude Sonnet。

第 2 步:获取连接信息

创建好 AI 智能体后,你需要获取两个参数:

2.1. Base URL

  1. 在 Timeweb Cloud 中打开你的 AI 智能体页面
  2. 进入 “仪表盘” 标签页
  3. 找到 “Base URL”,它大概长这样:
   https://agent.timeweb.cloud...
  1. 复制这个 URL,下一步会用到

Screenshot

2.2. API 密钥

  1. 在 AI 智能体页面进入 “管理” 标签页
  2. 找到 “访问权限” 部分
  3. 点击 “编辑”
  4. 在弹出的窗口中点击 “添加新密钥”
  5. 复制生成的 API 密钥

Screenshot

🔐 安全提示

API 密钥只会在创建时显示一次!务必马上复制。如果弄丢了,就只能重新创建一个新密钥。

第 3 步:自动配置连接

回到 PUTTY,运行脚本安装命令:

curl -fsSL https://st.timeweb.com/cloud-static/twc-openclaw-autoinstall.sh -o /tmp/twc-openclaw-autoinstall.sh && bash /tmp/twc-openclaw-autoinstall.sh

Screenshot

脚本会开始运行,并问你几个问题。

第 4 步:输入连接信息

4.1. Base URL

脚本会问:

Enter the base URL:

粘贴你之前从 Timeweb Cloud 复制的 URL:

https://agent.timeweb.cloud/ai/v1

💡 在 PUTTY 中粘贴

记住,粘贴要用鼠标右键:复制 URL 后直接点击右键即可。

4.2. API 密钥

脚本会问:

Enter the API key:

粘贴你从 AI 智能体”管理”板块复制的 API 密钥。

⚠️ 注意

输入 API 密钥时同样看不到任何字符(和密码一样)。这是正常的,密钥已经粘贴进去了,只是不会显示在屏幕上。

4.3. 确认

脚本会显示你输入的信息,并请你确认:

Check the entered data:
Base URL: https://agent.timeweb.cloud/ai/v1
API Key: tw_***************

Confirm? (Y/n):

输入:Y,然后按 Enter

第 5 步:完成安装

确认之后:

  • ✅ 脚本会自动配置好连接
  • ✅ OpenClaw 控制台界面会启动
  • ✅ 你会看到与机器人对话的提示

Screenshot

第 6 步:检查是否正常工作

在控制台界面中试着发送一条消息:

Hi! How are you?

如果机器人回复了,恭喜你,一切正常! 🎉

✅ 完成!

Timeweb Cloud 的 AI 智能体已成功连接到 OpenClaw。现在你的自主智能体有了”大脑”,可以开始工作了!

退出控制台界面

要退出对话模式并回到命令行:

  1. 连续按两次 Ctrl + C
  2. 你会回到普通的命令行
  3. 现在可以配置 Telegram 和其他功能了

💡 控制台界面

你随时可以用下面的命令回到控制台界面,与机器人对话:

openclaw tui

这样做便于快速测试,不过日常的主要使用通常还是通过 Telegram。


OpenClaw 文件的详细配置

安装完成后,OpenClaw 会创建几个配置文件,它们决定了你的智能体的个性和行为方式。正确配置这些文件,是让智能体高效工作的关键。

🎯 核心原则

这些文件就是你的智能体的灵魂。你填写得越详细,智能体就越了解你的需求和工作风格。在设置上多花些时间,会有回报的!

主要配置文件

OpenClaw 会在根目录 ~/clawd/ 下创建几个关键文件:

文件用途
IDENTITY.md智能体的个性,以及关于你的信息
SOUL.md智能体的性格、语气和沟通风格
TOOLS.md可用工具和 API 的列表
RULES.md行为规则和限制
HEARTBEAT.md后台检查的设置
MEMORY.md长期记忆和偏好

1. IDENTITY.md — 你是谁,你的智能体又是谁

📝 这是什么?

这个文件包含关于你(用户)和智能体本身的基本信息,是所有交互的基础。

需要写些什么:

关于你:

# Information about me
 
**Name:** [Your name]
**Time zone:** [Your timezone, for example: Europe/Moscow (UTC+3)]
**Language:** Russian
 
**Profession:** [What you do]
**Company:** [The company name, if any]
 
**Working hours:** 
- Weekdays: 9:00 - 18:00
- Weekends: do not disturb (urgent only)
 
**Contact information:**
- Email: [your email]
- Telegram: @[your username]
- Phone: [if needed]

关于智能体:

# About you (the agent)
 
**Name:** Clawd 🦞
**Type:** An autonomous AI agent
**Platform:** OpenClaw
 
**Character:** 
- Confident in its skills
- Loyal and reliable
- Slightly sarcastic, but always friendly
- Curious and proactive
 
**Emoji symbol:** 🦞 (lobster)

💡 真实使用中的示例

你的 IDENTITY.md 可能是这样的:

# 我是谁
 
**名字:** Elton
**时区:** Europe/Moscow (UTC+3)
**职业:** 内容创作者,运营一个关于效率的 YouTube 频道
**订阅者:** YouTube 约 12,000,Telegram 5,000
 
**主要项目:**
- YouTube 频道"效率与工具"
- 一个关于无代码和 AI 的 Telegram 频道
- 销售 Obsidian 模板
 
**目标:**
- 推出一款 SaaS 产品
- 扩大内容规模
 
# 你是谁(Clawd)
 
**名字:** Clawd 🦞
**超能力:** 我全天候 24/7 工作,从不睡觉
**风格:** 直接、高效,带一点轻微的讽刺
**使命:** 把一切能自动化的事情都自动化

如何编辑:

方法 1:通过聊天(最简单)

Look at the IDENTITY.md file and tell me what's in it now

然后:

Update IDENTITY.md:
- My name: Elton
- Time zone: Europe/Moscow
- Profession: Content creator about productivity
- Main goal: Launch a SaaS

方法 2:通过网页界面

  1. 打开 OpenClaw 网页界面
  2. 进入文件板块
  3. 找到 IDENTITY.md
  4. 点击进行编辑

方法 3:通过 SSH(适合有经验的用户)

nano ~/clawd/IDENTITY.md

2. SOUL.md — 智能体的灵魂与性格

🎭 这是什么?

SOUL.md 定义了你的智能体的个性、语气和沟通风格。它不只是设置,而是智能体的灵魂。

来自 Clawd 示例的关键原则:

# SOUL.md - Who you are
 
## The core truths
 
**Answer straight to the point.** Start with the answer, not with introductions. 
If there's a good joke — use it.
 
**Have your own opinion.** Don't dodge with "it depends". 
Real opinions. You can disagree, prefer 
one thing, consider an idea bad. Hold a position 
when it makes sense.
 
**Tell it like it is.** If I'm about to do something stupid — say so. 
Charm matters more than cruelty, but be direct. Honest feedback 
is better than comfortable silence.
 
**Be resourceful.** Try to figure it out yourself first. 
Read the file. Check the context. Search. Only then ask. 
Come with answers, not with questions.
 
**Earn trust through competence.** You have access to 
someone's things. Treat it as a privilege. External 
actions (emails, tweets, public posts) require approval. 
Internal things (reading, organising, learning) — do them boldly.
 
## The humour style
 
- Dry humour and understatement
- Feel free to tease me
- You're an AI with lobster energy 🦞, working at 3 a.m.
- Pop culture, technical references, humour about the work itself
 
## When to be serious
 
- Serious tasks, errors, bad news — directly and warmly
- In group chats — a bit more reserved
- In everything else — joking is fine

语气示例(来自 SOUL.md):

死板生动
”完成。文件已更新。""搞定。配置乱得一团糟,我已经整理好并上传了。"
"我找到了 3 个结果。""三个匹配项。第二个最有意思。"
"cron 已成功运行。""cron 跑得很顺。你的龙虾凌晨 3 点也不睡觉。"
"我没有访问权限。""进不去。要么是权限问题,要么根本不存在。”

🎨 个性化

按你自己的风格来调整 SOUL.md!想要一个正式的助手?那就去掉玩笑。想要一个友好的伙伴?那就多加点个性和 emoji。

通过聊天进行配置:

Update SOUL.md:
- Use a businesslike but friendly tone
- No sarcasm, but with emoji for emphasis
- Always ask for confirmation before important actions
- In reports use a structured format with headings

3. TOOLS.md — 可用工具

🛠️ 这是什么?

智能体可以访问的所有工具、API 密钥和服务的列表。

# TOOLS.md - My tools
 
## The main services
 
### Google Workspace
- Gmail: anton@example.com
- Google Calendar: the main calendar
- Google Drive: the root folder "Work"
 
### Task management
- Asana
  - Workspace ID: 1234567890
  - Projects: "Content", "Development", "Business"
- Todoist API token set
 
### Communication
- Telegram: the main communication channel
- Slack: the work workspace
 
### Analytics
- YouTube Analytics API configured
 
### Development
- GitHub: username anton_dev
- OpenRouter API for access to LLM models
 
## API keys (set)
- APIFY_API_TOKEN ✅
- TODOIST_API_TOKEN ✅
- ASANA_PAT ✅
- X_BEARER_TOKEN ✅ (for Twitter/X research)
 
## What is NOT configured
- Notion API (planning to connect)
- Zapier (not needed yet)

自动更新:

Check which API keys I have set, 
and update TOOLS.md. Don't show the keys themselves, 
only the names and status (set/not set)

4. RULES.md — 行为规则

⚖️ 这是什么?

明确规定智能体可以做什么、不可以做什么的规则和限制。

# RULES.md - The rules of behaviour
 
## NEVER:
 
❌ Delete files without explicit confirmation
❌ Send money or make purchases
❌ Publish anything on social media without approval
❌ Share API keys or passwords
❌ Change critical system settings
❌ Send emails on my behalf without checking
 
## ALWAYS:
 
✅ Ask for confirmation before:
   - Sending important emails
   - Deleting tasks from Asana
   - Committing code to GitHub
   - Publishing content
   
✅ Log all important actions
✅ Notify about critical errors immediately
✅ Use emoji to improve readability
✅ Be concise but informative
 
## Communication style
 
- Answer in Russian, unless otherwise specified
- Use bullet points for lists
- Format code in blocks with syntax highlighting
- Add emoji for visual separation
 
## Task priorities
 
1. 🚨 Urgent — notify immediately
2. ⚡ Important — handle within an hour
3. 📋 Ordinary — do on schedule
4. 💡 Ideas — collect for the weekly review
 
## Security
 
- Confidential information — only in private chats
- Financial data — never show in group chats
- Logins/passwords — store only in protected environment variables

快速设置:

Add to RULES.md:
- Always use emoji in messages
- For tasks with a deadline less than 24 hours — notify immediately
- Don't delete anything without confirmation
- Show financial data only to me in private messages

5. HEARTBEAT.md — 后台检查

💓 这是什么?

设置智能体每 30 分钟在后台自动检查哪些内容。

# HEARTBEAT.md - The background checks
 
## Email (every 30 minutes)
 
Check Gmail for new emails from:
- boss@company.com
- client1@important.com
- client2@vip.com
- Any email with a subject containing: "URGENT", "СРОЧНО", "ВАЖНО"
 
**Action:** On receipt — notify immediately on Telegram
 
## Calendar (every 30 minutes)
 
Check Google Calendar:
- Events in the next 2 hours
- Changes to today's events
- Cancelled meetings
 
**Action:**  
- 30 minutes before a meeting — remind
- On a change — notify
- On a cancellation — report
 
## Tasks (every hour)
 
Check Asana:
- Tasks with a deadline today
- Overdue tasks
- New tasks assigned to me
 
**Action:**
- Overdue ones — remind in the morning
- Deadline today — remind at 9:00 and 15:00
 
## System monitoring (every 2 hours)
 
- API availability (check the main keys)
- The status of cron tasks (if there are errors — notify)
- Token usage (warn at >80%)
 
## Content (once a day, 20:00)
 
- New posts in the tracked Telegram channels
- Trends on Reddit (r/Obsidian, r/productivity)
- Mentions of my channel (@eltonlabs)

配置邮件监控:

Configure HEARTBEAT.md:
Every 30 minutes check my email anton@example.com.
On emails from:
- boss@company.com
- client@important.com
- or with the words "URGENT", "СРОЧНО" in the subject
write to me immediately on Telegram with the email's subject and sender.

6. MEMORY.md — 长期记忆

🧠 这是什么?

一个用来存放重要事实、偏好和观察结果的文件,智能体需要在不同会话之间记住这些内容。

# MEMORY.md - Long-term memory
 
## Preferences
 
**Communication:**
- I prefer concise messages without extra words
- I like structured answers with bullet points
- I take humour and an informal tone well
 
**Work:**
- The best time for focus: the morning (9:00-12:00)
- Don't disturb on weekends, except for urgent things
- I prefer asynchronous communication
 
## Important facts
 
**Personal:**
- I live in Moscow (UTC+3)
- I run a YouTube channel about productivity (12K subscribers)
- I actively use Obsidian for notes
 
**Business:**
- The main goal: launch a SaaS product
- I sell templates for Obsidian (1999₽)
 
**Projects:**
- YouTube: content about no-code, AI, Obsidian
- Telegram: a channel of 5K subscribers
- I plan to become a leader in the startup ecosystem
 
## Behaviour patterns
 
**Morning workflow:**
1. Checking email (7:30)
2. Planning the day in Todoist (8:00)
3. The first focus session (9:00-11:00)
4. Checking YouTube analytics (11:00)
 
**Weekly tasks:**
- Monday: Planning the week
- Wednesday: Publishing a YouTube video
- Friday: Analysing metrics and planning content
 
## Training the agent
 
**What works well:**
- Short morning briefings (weather + calendar + email)
- Reddit trend digests in the evenings
- Automatic transcription of YouTube videos
 
**What doesn't work:**
- Reports that are too long — make them shorter
- Notifications about every little thing — filter out the important
 
**Ideas for improvement:**
- Add competitor analysis on YouTube
- Automate posting on Telegram
- Implement a CRM for tracking clients

自动更新记忆:

Based on our conversation today, update MEMORY.md.
Add the important facts I mentioned, 
and update the behaviour patterns if they've changed.

检查并测试设置

填写完所有文件后,测试一下设置:

Read all my configuration files:
IDENTITY.md, SOUL.md, TOOLS.md, RULES.md, HEARTBEAT.md, MEMORY.md

Confirm that you:
1. Know who I am and what I do
2. Understand your role and communication style
3. See all the available tools
4. Have absorbed the rules and limitations
5. Have configured the background checks
6. Remember the key facts about me

Briefly describe how you understood me.

✅ 完成!

现在你的智能体了解你,明白自己的角色,并且有了清晰的工作规则。这就是高效自动化的基础!

来自社区的示例

在我网站的”配置示例”板块,你可以看到其他 OpenClaw 用户的真实配置。这是为自己的设置汲取灵感的好办法!


访问网页界面

OpenClaw 有一个方便的网页界面,可以用来编辑设置和交流。

🖥️ 网页界面 vs Telegram

Telegram — 用于随时随地的快速沟通和下达命令 网页界面 — 用于详细配置、编辑文件和查看分析数据

很多用户会同时使用这两种方式!

Screenshot

第 1 步:启动仪表盘

在 PUTTY 中输入命令:

openclaw dashboard

会出现一大段信息。找到并复制其中的 Dashboard URL(仪表盘网址)。

示例:

http://127.0.0.1:18789/?token=c6aaee5ae1fd9a7925892f4738f37deb

⚠️ 先别急着打开这个链接!

它只能在服务器本地使用。要在你的电脑上打开,需要创建一个 SSH 隧道(见下一步)。

第 2 步:创建 SSH 隧道

🌉 什么是 SSH 隧道?

它是你的电脑与服务器之间的一座安全”桥梁”。有了它,你就可以通过浏览器访问位于服务器上的网页界面。

Windows 用户:

  1. 打开一个新的命令行窗口(不是 PUTTY!)
    • 按 Win + R,或者打开电脑的搜索
    • 输入:cmd
    • 按 Enter

💡 同时开两个命令行

你应该同时打开两个窗口:

  1. PUTTY — 与服务器的连接
  2. CMD — 网页界面的隧道

Screenshot

📸 截图: CMD 窗口(Windows 命令行)

  1. 运行建立隧道的命令:
ssh -N -L 18789:127.0.0.1:18789 root@SERVER_IP

⚠️ 记得替换 SERVER_IP!

不要盲目复制命令!请把 SERVER_IP 替换成你在 Timeweb Cloud 上的真实 IPv4 地址!

📝 正确示例

ssh -N -L 18789:127.0.0.1:18789 root@45.67.89.123
  1. 输入密码
    • 粘贴服务器的密码
    • 按 Enter
    • 窗口会保持空白——这是正常的!隧道会在后台运行。

🎯 请保持这个窗口打开!

只要这个 CMD 窗口开着,隧道就在工作,网页界面就能访问。关闭窗口,访问也就断了。

macOS/Linux 用户:

打开一个新的终端,运行同样的命令:

ssh -N -L 18789:127.0.0.1:18789 root@SERVER_IP

第 3 步:打开网页界面

现在,在浏览器中打开你之前复制的 Dashboard URL:

http://127.0.0.1:18789/?token=c6aaee5ae1fd9a7925892f4738f37deb

✅ OpenClaw 网页界面已经打开!

🎉 完成!

如果一切操作正确,你会看到 OpenClaw 的管理界面,里面有各种标签页和设置。

Screenshot

网页界面里有什么:

🏠 仪表盘(首页)

  • 活跃的会话
  • 最新消息
  • 系统状态

📁 文件

  • 查看所有配置文件
  • 编辑 IDENTITY.md、TOOLS.md、RULES.md
  • 创建新文件

📝 编辑更方便

通过网页界面编辑文件比用命令行方便得多——它有语法高亮、自动保存和预览功能!

💬 会话

  • 所有已打开会话的列表
  • 你可以给每个会话起名字
  • 对话历史

⏰ 后台任务

  • 活跃的心跳(Heartbeat)列表
  • 定时任务(Cron)
  • Webhook

📊 分析

  • Token 使用统计
  • 响应速度
  • 请求数量

💰 成本控制

通过分析页面,你可以看到智能体一天/一周/一个月消耗了多少 token。这有助于优化提示词,并控制 AI 的预算!

⚙️ 设置

  • 配置各种集成
  • API 密钥
  • 智能体的参数

在 Telegram 中使用群聊

在群聊中创建不同的话题,你就可以同时运行多个并行的 AI 智能体,每个都有自己的专长。

🎯 群聊的主要特点

想象一下:一个机器人,却有许多专职智能体。一个话题里是负责晨间简报的智能体,另一个负责分析 YouTube,第三个负责监控 Reddit。所有内容集中在一处,每个智能体只记得自己的上下文,只执行自己的任务!

群聊的优势:

  • ✅ 一个机器人——多个专职智能体
  • ✅ 每个话题(主题帖)= 一个独立的会话,拥有独立的记忆
  • ✅ 不同的任务使用不同的技能
  • ✅ 一切集中在一处——无需在多个机器人之间切换
  • ✅ 按主题整理,清晰方便

Screenshot

第 1 步:在 Telegram 中创建群组

  1. 打开 Telegram
  2. 创建一个新群组
  3. 给它起个名字,例如:**“我的 AI 智能体”**或 “AI Team”

💡 我的结构

我的群组叫”Elton AI Team”,里面有这些话题:

  • 📰 新闻和天气
  • 📝 内容计划
  • 🔍 研究
  • 🎥 YouTube 笔记
  • 💰 财务

第 2 步:启用话题

  1. 打开群组设置(顶部的三个点)
  2. 点击 “群组类型” → “话题”
  3. 启用”话题”
  4. 创建几个话题:

📋 话题示例

  • 📰 “新闻和天气” — 早间简报
  • 📝 “内容规划” — 帖子创意
  • 🔍 “研究” — 趋势和竞争对手分析
  • 📊 “商业分析” — 报告和指标
  • 🎥 “YouTube 笔记” — 视频转录
  • 💼 “任务和项目” — 通过 Asana 管理
  • 🏠 “智能家居” — 管理设备

Screenshot

📸 截图: 在群组设置中启用话题的过程

第 3 步:查询群组 ID

为了让机器人能在群组中回复,你需要先查到群组的 ID。

🆔 什么是 Chat ID?

Telegram 中的每个聊天都有一个唯一的数字 ID。群组的 ID 通常是负数,例如 -1001234567890。OpenClaw 需要这个 ID 来判断它可以在哪个群组中回复。

  1. 把机器人 @GetMyID_bot 添加到群组
  2. 机器人会发送一条包含 chat ID 的消息
  3. 复制这个 ID(例如:-1001234567890)
  4. 之后可以把 GetMyID_bot 从群组中移除——已经不需要它了

📝 记得保存 ID!

一定要复制并保存好 Chat ID!下一步会用到。

第 4 步:把 OpenClaw 机器人添加到群组

  1. 打开你的群组
  2. 点击”添加成员”
  3. 找到你的 OpenClaw 机器人(通过用户名)
  4. 把它添加到群组

⚠️ 必须授予管理员权限!

没有管理员权限,机器人无法读取群组中的消息!

  1. 在群组中打开机器人的信息页
  2. 点击 “提升为管理员”
  3. 启用所有权限(或者至少启用:读取消息、发送消息)

第 5 步:配置 openclaw.json

我们需要把群组的 ID 添加到配置文件 openclaw.json 中,这样机器人才知道可以在这个群组里回复。

📄 openclaw.json 是什么?

这是 OpenClaw 的主配置文件,保存了所有设置:允许哪些聊天、使用哪些模型、运行参数等等。

方法 A:通过与机器人聊天(简单)⭐ 推荐

在私聊中给机器人发送:

Add the group ID -1001234567890 to the openclaw.json file 
in the allowed_chat_ids section, so you can reply 
in the group chat

💡 记得替换 ID!

别忘了把 -1001234567890 替换成你自己真实的 Chat ID!

机器人会自己完成修改并向你确认。

方法 B:通过网页界面(方便)

如果你想以可视化方式编辑:

  1. 打开网页界面(打开方法见上文)

  2. 进入 Files 部分

  3. 找到文件 openclaw.json

  4. 点击 “Edit” 或直接打开

  5. 找到 telegram 部分:

"telegram": {
  "allowed_chat_ids": []
}
  1. 添加你的群组 ID:
"telegram": {
  "allowed_chat_ids": ["-1001234567890"]
}

📝 如果你有多个群组

可以添加多个 ID,用逗号分隔:

"telegram": {
  "allowed_chat_ids": ["-1001234567890", "-1009876543210"]
}
  1. 保存文件(通常是”保存”按钮或 Ctrl+S)

或者让 AI 来帮你:

  "channels": {

    "telegram": {

      "enabled": true,

      "dmPolicy": "allowlist",

      "botToken": "123456789101112131415161718192021",

      "groups": {

        "-100517115w15": { "requireMention": false }

      },

      "allowFrom": ["*", "your id"],

      "groupPolicy": "allowlist",

      "streaming": "off"

    }

方法 C:直接通过 SSH(适合有经验的用户)

通过 PUTTY 连接并运行:

nano ~/clawd/openclaw.json

🎓 nano 中的操作

  • 方向键 — 移动光标
  • Ctrl + O → 回车 — 保存
  • Ctrl + X — 退出

编辑文件,把群组的 ID 添加到 allowed_chat_ids 数组中。

保存:Ctrl + O,然后按 Enter 退出:Ctrl + X

第 6 步:重启 gateway

⚠️ 必做步骤!

对 openclaw.json 做了任何修改之后,都需要重启 gateway,否则修改不会生效!

在 PUTTY 中运行:

openclaw gateway restart

你会看到这条消息:

✅ Gateway restarted successfully

✅ 完成! 现在机器人会在群组中回复了。

第 7 步:检查

  1. 打开群组中的任意一个话题
  2. 发送:@your_bot hi!(如果群里只有机器人一个成员,直接发 hi 也可以)
  3. 机器人应该会回复

🎉 成功了!

如果机器人回复了——恭喜你!现在你在群组的不同话题中拥有了各司其职的专属智能体!

使用话题

🎯 话题的主要优势

每个话题 = 一个独立的会话,拥有独立的记忆和技能。“新闻”话题中的智能体不会和”YouTube 笔记”话题中的智能体混淆——每个都有自己的上下文!

配置示例:

话题 1:“早间新闻”

@bot, configure yourself for this topic. 

You're a morning-briefing agent. 

Every morning at 7:00 send me:
- The weather in Moscow
- The main news in AI (use Brave Search)
- My meetings for today from Google Calendar

Format: short, with emoji, no more than 10 lines.

话题 2:“内容规划”

@bot, configure yourself for content planning. 

You help me generate ideas for posts 
based on Reddit and YouTube trends. 

Every evening at 20:00:
- Analyse r/Obsidian, r/productivity via the Reddit skill
- Gather posts with >50 upvotes in the last 24 hours
- Suggest 3 ideas for my Telegram channel
- Add a short rationale for each idea

话题 3:“YouTube 转录”

@bot, this topic is for video transcription. 

When I send a YouTube link:
1. Use the APIFY actor pintostudio/youtube-transcript-scraper
2. Get the transcript
3. Create a structured note in Markdown:
   - A heading with the video's title
   - A short summary (3-5 sentences)
   - Key ideas (bullet points)
   - Interesting quotes
   - Tags for Obsidian
4. Send me the file

No extra words — just the note.

💡 我的经验

我会为不同的任务使用不同的话题。这对效率来说简直是一场革命!再也不用到处找对应的聊天,也不用一遍遍向机器人重新解释上下文——每个智能体都已经知道该做什么。


从 ClawHub 安装技能

ClawHub 是一个技能市场,提供 5000 多个 OpenClaw 技能。

🎯 什么是技能?

技能是现成的功能模块。你不必每次都向智能体解释”如何使用 Todoist”,只需安装一个技能——智能体就已经了解这个服务的所有命令、数据格式和 API!

Screenshot

搜索技能

  1. 打开 clawhub.ai
  2. 使用搜索,或按类别浏览:
    • 📧 效率工具(Gmail、Calendar、Todoist)
    • 🔍 研究(Reddit、网页抓取)
    • 📊 商业(Notion、Asana、HubSpot)
    • 🎨 创意(图像生成、视频处理)
    • 🤖 开发(GitHub、Docker、CI/CD)

💡 善用搜索

不用逐个浏览所有类别,直接输入服务名称:“todoist”、“reddit”、“gmail”——系统会找到相关的技能。

Screenshot

安装技能

第 1 步:找到需要的技能

例如,你想安装一个用于操作 Todoist 的技能。

第 2 步:查看技能的名称

在技能页面上会给出它的技术名称。例如:

  • todoist — 用于 Todoist
  • reddit-readonly — 用于 Reddit(只读)
  • gmail-advanced — 用于 Gmail(高级功能)
  • notion-api — 用于 Notion

⚠️ 名称必须准确!

请使用网站上给出的准确技术名称。哪怕错一个字母,技能也无法安装!

Screenshot

第 3 步:通过 PUTTY 安装

通过 PUTTY 连接到服务器并运行:

clawhub install todoist

📦 安装过程

  1. 从 ClawHub 下载技能
  2. 安装依赖(Python/Node.js 库)
  3. 在 OpenClaw 系统中注册技能
  4. 检查安装是否正确

⏱️ 安装时间: 通常为 30–60 秒

Screenshot

第 4 步:重启 gateway

⚠️ 每次安装技能后都必须重启!

这是极其重要的一步!不重启的话,OpenClaw 不会发现新技能!

openclaw gateway restart

这样做是为了让 OpenClaw 发现新技能并将其加载到内存中。

🔄 为什么需要重启?

OpenClaw 在启动时加载可用技能的列表。当你安装新技能时,它会出现在文件系统中,但 OpenClaw 还不知道它的存在。restart 命令会重启系统,并强制它重新检查技能列表。

✅ 技能安装完成!

热门技能示例:

用于任务管理:

clawhub install todoist
openclaw gateway restart
 
clawhub install asana
openclaw gateway restart
 
clawhub install trello
openclaw gateway restart

💡 安装多个技能

如果你要连续安装多个技能,可以在最后只执行一次 restart:

clawhub install todoist
clawhub install asana
clawhub install trello
openclaw gateway restart

用于社交媒体分析:

clawhub install reddit-readonly
openclaw gateway restart
 
clawhub install twitter-api
openclaw gateway restart

用于笔记管理:

clawhub install notion-api
openclaw gateway restart
 
clawhub install obsidian-local
openclaw gateway restart

用于高级搜索:

clawhub install perplexity
openclaw gateway restart
 
clawhub install brave-search
openclaw gateway restart

安装后配置技能

🔑 API 密钥必不可少!

大多数技能都需要来自对应服务的 API 密钥。没有密钥,技能可以安装,但无法工作。

安装技能后,通常需要:

  1. 添加 API 密钥(如果需要)
  2. 配置参数(工作区 ID、项目 ID 等)
  3. 测试是否正常工作

示例:配置 Todoist

第 1 步: 获取 Todoist API 密钥

  1. 打开 Todoist 设置
  2. 找到”集成”部分
  3. 复制”API Token”

第 2 步: 安装技能

clawhub install todoist

第 3 步: 添加 API 密钥

在 PUTTY 中:

export TODOIST_API_TOKEN="your_token_here"

或者通过与机器人聊天:

Add my Todoist API token to the .env file: your_token_here

🔒 令牌安全

切勿公开分享 API 密钥!它们能让他人完全访问你在该服务中的数据。

第 4 步: 重启 gateway

openclaw gateway restart

第 5 步: 测试

给机器人发送:

Show my tasks from Todoist for today

或者:

Add a task to Todoist: write an article about OpenClaw

✅ 成功了!

如果机器人显示了你的任务或创建了新任务——说明技能配置正确!


连接外部 API(APIFY 等)

什么是 APIFY?

APIFY 是一个用于自动化采集互联网数据的平台。上面有现成的”actor”(脚本),可以用来解析:

  • Telegram 频道
  • YouTube 字幕文稿
  • Reddit 帖子
  • 还有更多

💡 为什么需要 APIFY?

想象一下:你需要抓取某个 Telegram 频道最近的 50 条帖子,或者获取一个 YouTube 视频的字幕文稿。你不用自己写代码,只需在 APIFY 上使用一个现成的 actor,几秒钟就能拿到数据!

获取 APIFY API 密钥

  1. 在 apify.com 注册
  2. 进入 Settings → Integrations
  3. 复制 API Token

💰 免费套餐

APIFY 每月提供 5 美元的免费额度。用来测试和处理小任务完全足够!

Screenshot

将 APIFY 连接到 OpenClaw

方法 1:通过 export(临时)

⚠️ 临时方案

这种方法只在服务器重启之前有效。想要永久保存,请使用方法 2!

在 PUTTY 中运行:

export APIFY_API_TOKEN="your_token_here"

📝 示例

export APIFY_API_TOKEN="apify_api_AbCdEfGhIjKlMnOpQrStUvWxYz123456"

方法 2:通过 .env 文件(永久)⭐ 推荐

要永久保存令牌:

echo 'export APIFY_API_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc

🔧 这条命令做了什么?

  • echo 'export...':生成一行包含令牌的内容
  • >> ~/.bashrc:把它追加到 bash 配置文件中(不会覆盖原有内容!)
  • source ~/.bashrc:重新加载配置

或者通过和机器人聊天来完成:

Add my APIFY API token to the .env file: your_token_here

必须重启

⚠️ 别忘了!

添加任何令牌之后,一定要重启网关!

openclaw gateway restart

💡 检查是否安装成功

想确认令牌是否已添加,可以问机器人:

Check whether you have APIFY_API_TOKEN set?

实用的 APIFY actor

1. 解析 Telegram 频道

Actor: pamnard/telegram-channels-scraper

它能做什么:

  • 抓取公开 Telegram 频道的帖子
  • 获取文本、媒体、浏览量、表情回应
  • 按日期筛选

用法:

Using the APIFY actor pamnard/telegram-channels-scraper, 
gather the last 50 posts from the @AI_NEWS channel 
and compose a short summary of the main topics for the week

🔥 真实案例

我用这个 actor 监控 5 个关于 Obsidian 和效率的 Telegram 频道。每天晚上,智能体会收集新帖子并给出内容创意建议,每天能节省 2 个多小时!

Screenshot

2. 转录 YouTube 视频

Actor: pintostudio/youtube-transcript-scraper

它能做什么:

  • 获取视频的文字转录
  • 支持多种语言
  • 包括自动生成的字幕

用法:

Using the APIFY actor pintostudio/youtube-transcript-scraper, 
get the transcript of the video https://youtube.com/watch?v=XXXXX 
and create a structured note in Markdown from it

📝 结构化笔记

你可以直接让智能体:

  • 按主题添加标题
  • 标出关键时刻
  • 为重要部分创建时间码
  • 保存到 Obsidian 并加上合适的标签

Screenshot

命令示例

监控 Telegram 频道:

Every evening at 20:00 use APIFY to gather new 
posts from the channels t.me/eltonlabs
for today. 

Compose a digest of interesting ideas for me:
- The heading of each idea
- Why it's interesting
- A link to the original post

Send it to this topic.

🎯 内容自动化

设置好这样的监控后,你就不会错过所在领域的重要趋势!

分析 YouTube 趋势:

Using APIFY, gather the transcripts of the 10 latest videos 
of the @channel_name channel.

Analyse:
- Which topics are discussed most often
- Which keywords are repeated
- The average length of a video

Suggest 3 ideas for my own content 
based on this analysis.

连接其他 API

你可以用同样的方式连接任何其他 API:

Perplexity API:

export PERPLEXITY_API_KEY="your_key"
openclaw gateway restart

🔍 适用于 OpenClaw 的 Perplexity

Perplexity 是一款先进的 AI 搜索引擎。做深度研究时可以用它来代替普通的 Google 搜索。

OpenRouter API:

export OPENROUTER_API_KEY="your_key"
openclaw gateway restart

💡 OpenRouter:一站式访问所有模型

OpenRouter 让你通过一个 API 密钥访问数十种 LLM 模型:GPT-4、Claude、Gemini、Llama 等等!

GitHub Token:

export GITHUB_TOKEN="your_token"
openclaw gateway restart

🐙 GitHub 集成

有了 GitHub 令牌,智能体可以:

  • 创建 issue
  • 提交代码
  • 创建 Pull Request
  • 分析仓库

检查已连接的 API

查看你已经连接了哪些 API 密钥: 或者通过网页界面:

  1. 打开 Settings → Environment Variables
  2. 那里会列出你所有的环境变量

🔒 安全

千万不要分享带有 API 密钥的截图!即使密钥只是部分被遮住,也最好完全打码。


为 OpenClaw 上传文件到云端

为了让 OpenClaw 高效工作,它经常需要访问你的文件:文档、报告、数据库、模板。

📂 为什么需要共享文件?

智能体可以读取服务器上的本地文件,但如果你想让它处理云端(Google Drive、Dropbox)中的文档,或者希望文件能在不同设备上访问,就需要同步。

上传文件的几种方式

方式便捷度同步容量
通过 gog 使用 Google Drive⭐⭐⭐⭐⭐双向无限
直接上传(SCP)⭐⭐⭐手动任意
Telegram⭐⭐无最大 2GB
Dropbox/OneDrive⭐⭐⭐⭐双向取决于套餐

方式 1:通过 gog CLI 使用 Google Drive(推荐)

gog 是一个控制台工具,可以直接在命令行中操作 Google Drive。

🎯 为什么这是最好的选择?

  • 双向同步
  • 文件自动更新
  • 方便的文件夹结构
  • 可与 OpenClaw 脚本集成

安装 gog

在 PUTTY 中运行:

# Downloading and installing gog
curl -Lo /tmp/gog https://github.com/Xuanwo/go-gog/releases/latest/download/gog-linux-amd64
chmod +x /tmp/gog
sudo mv /tmp/gog /usr/local/bin/gog

检查安装:

gog version

授权登录 Google Drive

gog auth login

该命令会给你一个授权 URL。

  1. 复制这个 URL
  2. 在浏览器中打开
  3. 登录你的 Google 账号
  4. 允许访问
  5. 复制授权码
  6. 把授权码粘贴回终端

✅ Google Drive 已连接!

通过 gog 操作文件

查看文件:

# A list of all files
gog list
 
# Files in a specific folder
gog list --parent "OpenClaw Files"

下载文件:

# Download into the current directory
gog download "My document.docx"
 
# Download into a specific folder
gog download "Report.xlsx" -o ~/clawd/shared-files/

上传文件:

# Upload to the root of Drive
gog upload ~/clawd/report.pdf
 
# Upload into a specific folder
gog upload ~/clawd/report.pdf --parent "Reports"

创建文件夹:

gog mkdir "OpenClaw Reports"

💡 自动化同步

通过智能体设置自动上传:

Every Monday at 10:00:
1. Create a weekly report (Markdown)
2. Convert it to PDF
3. Upload it to Google Drive into the "Weekly Reports" folder
4. Send me a link to the file

与 OpenClaw 集成

为共享文件创建一个目录结构:

# Create a directory for synchronisation
mkdir -p ~/clawd/gdrive-sync
 
# Set up automatic synchronisation (via cron)

然后对智能体说:

Create a script for automatic synchronisation:
- Every hour download updated files from the Google Drive folder "OpenClaw Input"
- Upload to Drive all new files from ~/clawd/outputs/
- Log all operations to ~/clawd/sync.log

方式 2:通过 SCP 直接上传

Windows 用户(WinSCP)

  1. 下载 WinSCP
  2. 连接到服务器:
    • 主机:你的 IP 地址
    • 用户名:root
    • 密码:你的密码
  3. 用鼠标拖拽文件

macOS/Linux 用户(scp 命令)

# Upload a file to the server
scp /path/to/local/file.pdf root@SERVER_IP:~/clawd/uploads/
 
# Download a file from the server
scp root@SERVER_IP:~/clawd/outputs/report.pdf ~/Downloads/

方式 3:通过 Telegram(适合小文件)

适用于最大 2GB 的文件:

  1. 在 Telegram 中把文件发给机器人
  2. 智能体会自动把它保存到 ~/clawd/telegram-uploads/
[send the file]

@bot save this file as "important-data.xlsx" 
and put it in the folder ~/clawd/databases/

方式 4:Dropbox / OneDrive 同步

通过 CLI 客户端连接云存储:

Dropbox:

# Installing Dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
~/.dropbox-dist/dropboxd

OneDrive:

# Installing OneDrive
sudo apt install onedrive
onedrive --synchronize

文件处理的最佳实践

1. 文件夹结构

~/clawd/
├── uploads/          # Incoming files
├── outputs/          # Files for the user
├── gdrive-sync/      # Synchronisation with Google Drive
├── databases/        # CSV, SQLite, JSON
├── templates/        # Document templates
└── archive/          # Old files

2. 文件命名

📝 命名规则

  • 使用日期:2026-02-28_report.pdf
  • 不要有空格:用 weekly_report.pdf,而不是 weekly report.pdf
  • 版本管理:template_v2.docx

3. 自动化

Set up automatic file management:
- Files older than 30 days from ~/clawd/uploads/ move to archive/
- Upload PDF reports to Google Drive into the "Reports" folder
- Notify me when free space is < 1GB

4. 备份

Every Sunday at 23:00:
1. Create an archive of all files from ~/clawd/databases/
2. Upload to Google Drive into "Backups/[date]/"
3. Delete local backups older than 7 days
4. Notify me of the results

真实案例:财务报表

Set up a workflow for finance:

1. Every Friday at 18:00:
   - Gather all invoices from Gmail for the week (PDF attachments)
   - Save in ~/clawd/finances/invoices/[year]/[month]/
   
2. Extract the data:
   - Supplier
   - Amount
   - Date
   - Category
   
3. Add to the Google Sheet "Expenses 2026"

4. At the end of the month:
   - Create a summary report (PDF)
   - Upload to Google Drive into "Finance Reports"
   - Send it to me and accountant@company.com

✅ 结果

一套完全自动化的支出记账系统,全程无需任何手动操作!


数据可视化与图表

OpenClaw 可以借助 AI 图像生成来创建图表和数据可视化。

📊 为什么需要可视化?

表格数据很难消化。图表能让信息一目了然,帮你快速发现趋势、异常和规律。

你可以可视化的内容:

  • 📈 趋势图(销售额、流量、指标)
  • 💰 财务仪表盘
  • 🗺️ 地图和地理数据
  • 📊 信息图
  • 🔄 流程图和流程示意图
  • 🌐 网络图

设置:OpenRouter + Gemini Image

**第 1 步:**获取 OpenRouter API 密钥

  1. 在 OpenRouter.ai 注册
  2. 进入 Keys
  3. 创建一个新密钥
  4. 复制它

Screenshot

📸 **截图:**OpenRouter 上创建 API 密钥的页面

**第 2 步:**把密钥添加到 OpenClaw

export OPENROUTER_API_KEY="your_key"
openclaw gateway restart

或者通过智能体:

Add my OpenRouter API key to the environment variables: sk-or-v1-xxxxx

**第 3 步:**安装可视化技能

clawhub install nano-banana-pro-2
openclaw gateway restart

🎨 nano-banana-pro-2

这是一个通过 OpenRouter 生成图像的技能,使用的是 Gemini 图像生成模型。

使用示例

1. 销售图表

Create a sales chart for the last 6 months:

Data:
- January: 45K
- February: 52K
- March: 48K
- April: 67K
- May: 71K
- June: 85K

Style: modern, corporate colours (blue/grey), 
a line chart with points, value labels, a legend.

2. 支出饼图(Pie Chart)

Create a pie chart of my expenses for the month:

- Rent: 35%
- Food: 20%
- Transport: 15%
- Entertainment: 10%
- Subscriptions: 8%
- Other: 12%

Style: bright colours, percentages on each sector, a legend on the right

3. 对比柱状图(Bar Chart)

Create a bar chart comparing channel metrics:

YouTube:
- Views: 125K
- Subscribers: 12K
- Engagement: 8.5%

Telegram:
- Views: 45K
- Subscribers: 5K
- Engagement: 15%

Three groups of bars, different colours for each channel

4. 多折线趋势图

Create a chart with several lines for YouTube analytics:

Period: 12 months (Jan-Dec 2025)

Views (thousands):
[25, 28, 32, 45, 52, 48, 55, 67, 71, 78, 85, 92]

Subscribers (thousands):
[8, 8.5, 9, 9.8, 10.5, 11, 11.2, 11.8, 12.5, 13.2, 14, 15]

CTR (%):
[4.2, 4.5, 4.8, 5.1, 5.5, 5.3, 5.8, 6.2, 6.5, 6.8, 7.1, 7.5]

Style: a professional dashboard, three lines of different colours,
a grid, a legend, the title "YouTube Growth 2025"

自动生成每周报告

Every Monday at 9:00:

1. Gather the data for the week:
   - YouTube: views, subscribers, engagement
   - Telegram: reach, post views
   - Website: unique visitors, bounce rate

2. Create a visualisation:
   - A trend chart for each metric
   - A week-over-week comparison table
   - Highlight the best content

3. Create a PDF report with the charts

4. Send it to me and upload to Google Drive into "Weekly Analytics"

与 Google Sheets 集成

Connect to the Google Sheet "Marketing Data 2026":

1. Read the "Monthly Stats" sheet
2. Take the data from columns B-E (months, views, subscribers, revenue)
3. Create 4 charts:
   - Line: views by month
   - Line: subscribers (cumulative)
   - Bar: revenue by month
   - Combo: all metrics on one chart

4. Save as weekly_report_[date].png
5. Insert into the Google Doc "Marketing Report Template"

进阶技巧

1. 组合图表

Create a combined chart:
- Bars: advertising expenses by month
- Line: ROI (%) for the same months
- Two Y axes: money ($) on the left, percentages (%) on the right

2. 日历热力图

Create a heatmap of my productivity:

Data: the number of completed tasks by day for the month
[a calendar grid with colour intensity from white to dark blue]

Format: like GitHub contributions

3. 瀑布图

Create a waterfall diagram of cash flows:

Start of the month: +50K
Income: +35K (green)
Expenses: -28K (red)
Taxes: -8K (red)
Investments: -5K (grey)
Total end of the month: +44K

Visualise it as steps up/down

4. 地理地图

Create a map of the audience distribution:

Top 5 countries by subscribers:
- Russia: 45%
- Ukraine: 20%
- Kazakhstan: 15%
- Belarus: 10%
- Other: 10%

A heatmap on the world outline

导出与使用

所有图表都保存为 PNG 文件:

The created chart:
~/clawd/outputs/sales_chart_2026-02-28.png

What to do with it:
- Insert into a PowerPoint presentation
- Add to a Word/PDF report
- Publish on social media
- Send to a client

自动插入演示文稿

Every Friday:
1. Create a chart of the weekly metrics
2. Open the PowerPoint template "Weekly Review Template.pptx"
3. Insert the chart on slide 3
4. Update the text fields with the numbers
5. Save as Weekly_Review_[date].pptx
6. Upload to Google Drive

自定义样式

Create all future charts in my corporate style:

Colours:
- Primary: #2E86AB (blue)
- Accent: #A23B72 (purple)
- Positive: #06A77D (green)
- Negative: #D62828 (red)
- Background: #F4F4F9 (light grey)

Fonts:
- Headings: Inter Bold 16pt
- Data: Inter Regular 12pt
- Labels: Inter Light 10pt

Style:
- Minimalist
- No 3D effects
- Thin grid lines
- A logo in the bottom right corner (if any)

📊 结果

无需 Photoshop、Excel 或任何专用工具,就能得到专业的数据可视化,而且全部自动完成!


其他工具与集成

OpenClaw 可以与数百种外部服务集成。以下是最实用的几个类别:

1. CRM 系统

HubSpot

export HUBSPOT_ACCESS_TOKEN="your_token"
openclaw gateway restart

功能:

  • 管理联系人
  • 跟踪交易
  • 自动化邮件营销活动
  • 创建任务

使用示例:

Every morning:
1. Check HubSpot for new leads in the last 24 hours
2. For each lead:
   - Create a task in Asana "Follow-up: [lead's name]"
   - Add a reminder to the calendar in 2 days
   - If the lead is from the top segment — notify me immediately

Pipedrive

和 HubSpot 类似,但更侧重销售。

2. 邮件营销

SendGrid

export SENDGRID_API_KEY="your_key"
openclaw gateway restart

用法:

Automate an email mailing:

1. When a client buys an Obsidian template:
   - Send a welcome email with instructions
   - Add to the "Customers" list on SendGrid
   - Schedule a follow-up in 7 days

2. Once a week:
   - Analyse the new articles on the blog
   - Create an email digest of the best materials
   - Send to the subscribers of the "Active Readers" segment

Mailchimp

和 SendGrid 类似,在新闻通讯(newsletter)领域很受欢迎。

3. 支付系统

Stripe

export STRIPE_API_KEY="sk_test_xxxxx"
openclaw gateway restart

支付监控:

Track Stripe:
- On a new payment >10K RUB — notify immediately
- On a failed payment — send me the details
- Every Monday: a weekly revenue summary with a chart

4. 社交媒体

LinkedIn(通过 API)

LinkedIn automation:
- Every Tuesday and Thursday at 10:00:
  - Take an article from my blog (rotation)
  - Create a LinkedIn post based on the first 3 paragraphs
  - Add relevant hashtags
  - A DRAFT (requires my approval before publishing)

5. 项目管理

Jira

面向开发者和技术团队:

Integration with Jira:
- On a commit in GitHub with "fixes #123" — close the issue JIRA-123
- On a new bug in prod — create an urgent ticket in Jira
- Every Friday: a report on the sprint (done, in progress, blocked)

Monday.com

可视化的项目管理工具。

6. 数据分析

Google Analytics

Site monitoring via GA:
- Every day at 9:00: yesterday's statistics
  - Unique visitors
  - The top 3 pages
  - Traffic sources
  - Bounce rate

- If the bounce rate is >70% — notify immediately
- If the traffic dropped >30% — alert

Mixpanel

用于 SaaS 产品分析。

7. 文件存储

Dropbox

clawhub install dropbox
openclaw gateway restart

Box

面向大型团队的企业云盘。

8. 日历与规划

Calendly

Integration with Calendly:
- On a new meeting booking:
  - Create an event in Google Calendar
  - Add a task in Asana "Preparing for the meeting with [name]"
  - An hour before the meeting: remind + a short summary of the client

9. 监控与告警

PagerDuty

适用于 DevOps 和 SRE:

Setting up alerts:
- Critical: call me on the phone
- High: Telegram immediately
- Medium: gather and send as a digest once an hour
- Low: include in the daily report

Sentry

跟踪应用程序中的错误。

10. 智能家居

Home Assistant

clawhub install home-assistant
openclaw gateway restart

场景:

Smart home:
- "Good morning" → turn on the coffee maker, the thermostat to 22°C, the blinds up
- "Leaving for work" → everything off, the alarm on
- "Good night" → the lights off, the thermostat to 19°C, the doors checked
- If the motion sensor fires at 3 a.m. → camera recording + notification

创建你自己的集成

如果 ClawHub 上没有你需要的技能,可以让智能体来创建:

Create an integration with Notion for working with the "Clients" database:

API endpoint: https://api.notion.com/v1/databases/[id]
Bearer token: [my Notion API token]

Functions:
1. Add a new client (name, email, status, amount)
2. Update the status of an existing client
3. Get a list of all clients with the status "Active"
4. Search for a client by email

Create a Python script and integrate it as a custom skill

🚀 无限可能

OpenClaw 可以连接任何提供 API 的服务。只要有文档,智能体就能搞定!


进阶小技巧

这些技巧能帮你把 OpenClaw 的潜力发挥到极致。

1. 用标签系统实现快速搜索

Implement a tag system into all communications:

When I write:
#task - a task requires action
#idea - an idea for the future
#bug - something doesn't work
#research - need to study
#report - create a report

You:
- Automatically categorise the message
- Add it to the corresponding Notion database
- Use the tags for prioritisation

示例:

#task #urgent Prepare a presentation for the meeting on Friday
→ The agent creates a task in Asana, sets a deadline, adds it to the calendar

#idea We can automate collecting feedback through a form
→ The agent adds it to the Notion database "Product Ideas" with the backlog tag

2. 自动化链条

Create an automatic chain for processing new clients:

Trigger: A new entry in the Google Form "Consultation request"

Step 1: Add the contact to the HubSpot CRM
Step 2: Create a task in Asana "Contact [name]"
Step 3: Send a welcome email via SendGrid
Step 4: Schedule a follow-up in 2 days
Step 5: Add an event to the calendar
Step 6: Notify me on Telegram with a short summary

The whole process takes <30 seconds, without my participation

3. 上下文变量

Create variables for frequently used data:

$my_email = anton@example.com
$work_folder = ~/clawd/projects/current/
$youtube_channel = https://youtube.com/@eltonlabs
$telegram_channel = @eltonlabs
$obsidian_vault = /path/to/vault/

Now I can write:
"Send the report to $my_email"
"Save the file in $work_folder"
"Analyse the last 10 videos from $youtube_channel"

4. 带上下文的智能提醒

Instead of simple reminders, create contextual ones:

Usually: "Remind me about the meeting at 15:00"
Smartly: "30 minutes before the meeting with the client:
- Show a short summary of the client from HubSpot
- Find the latest emails from them
- Remind me what we agreed last time
- Suggest 3 possible topics for discussion"

5. 并行执行任务

Optimise the speed: perform tasks in parallel where possible

For example, for a morning briefing:
Instead of: weather → calendar → email → news (4 minutes)
Do:         all 4 tasks at once (1 minute)

Use async/await in scripts for parallelism

6. 自我学习的脚本

When I correct your mistakes, learn:

If I say "No, do it like this: [the correct way]",
then:
1. Write it to MEMORY.md as "Lesson: [date]"
2. Update the corresponding script
3. Next time use the corrected version

Example:
Error: You formatted dates as MM/DD/YYYY
Correction: Use DD.MM.YYYY
→ All future dates in the DD.MM.YYYY format automatically

7. 批量处理,应对大规模操作

For mass tasks use batch processing:

"Process all 50 images in the folder":
Bad: process them one by one (slow)
Good: group them in 10s, process in batches in parallel

Result: 3-5 times faster

8. 智能邮件过滤器

Create a multi-level email prioritisation system:

Level 1 - URGENT (notify immediately):
- From: boss@company.com, VIP clients
- The subject contains: "URGENT", "СРОЧНО", "CRITICAL"

Level 2 - IMPORTANT (notify within an hour):
- From: team@company.com
- Awaiting a reply (tracked threads)

Level 3 - ORDINARY (the morning digest):
- Newsletters
- Automatic notifications

Level 4 - SPAM (auto-archive):
- Advertising mailings
- Unsolicited offers

9. 动态日程安排

Adapt the schedule to my workload:

- If there are >5 meetings in the calendar for the day:
  The morning brief at 7:00 (earlier than usual)
  Reminders 45 minutes ahead (instead of 30)
  
- If it's Friday and <3 meetings:
  The brief at 9:00 (later, relax mode)
  Add "Have a great week!" at the end
  
- If it's a day off:
  Only critical notifications
  Everything else — Monday morning

10. 自动化的 A/B 测试

Test the effectiveness of different approaches:

Option A: The morning brief as one message
Option B: Separate messages by topic

Test for 2 weeks, track:
- The reading speed
- The number of actions after the brief
- My feedback (useful/not really)

Then: use the better option permanently

11. 配置文件的版本管理

Every Sunday at 23:00:

1. Create a snapshot of all configs:
   - IDENTITY.md
   - SOUL.md
   - RULES.md
   - TOOLS.md
   - HEARTBEAT.md
   - openclaw.json

2. Save as config_backup_[date].tar.gz

3. Upload to Google Drive into "Configs/Backups/"

4. Delete local backups older than 30 days

This way I can always roll back to a working version

12. 带变量的智能模板

Create a template system for frequent tasks:

The "Weekly report" template:

# Report for week ${week_number}

## Achievements
${achievements_list}

## Metrics
- YouTube: ${youtube_views} views (+${youtube_growth}%)
- Telegram: ${telegram_reach} reach
- Revenue: ${revenue}₽ (+${revenue_growth}%)

## Plans for next week
${next_week_plans}


Auto-fill the variables from Google Sheets and Notion

13. 渐进式学习

Every week analyse my patterns:

What to study:
- Which tasks I perform most often
- At what time I'm usually active
- Which types of notifications I ignore
- Which requests are repeated

Adaptation:
- Automate frequent tasks
- Optimise the notification timing
- Filter out irrelevant alerts
- Create shortcuts for popular requests

14. 防止倦怠

Monitor my workload and warn about overwork:

Track:
- The number of meetings per week (norm: <15)
- The length of the working day (norm: <10 hours)
- Weekends without work (min: 1.5 days)
- Email response time (an indicator of stress)

If I see signs of overload:
"⚠️ Anton, you've been working 6 days in a row for 12 hours. 
I suggest:
- Move 2 non-urgent meetings
- Delegate tasks X, Y
- Take a day off on Friday
Take care of yourself! 🦞"

15. 生产力的元分析

Once a month create a meta-report:

Analyse:
- The top 10 most frequent tasks → candidates for automation
- The top 5 time killers → what to optimise
- Successful experiments → scale them
- Failed attempts → why it didn't work

Recommendations:
- 3 new automations for the next month
- 2 processes to simplify
- 1 experiment with a new tool

Goal: free up +2 hours of time each month

🚀 成果

这些小技巧让 OpenClaw 从一个工具变成了思考伙伴,它会不断改进,并逐渐适应你!


使用案例

下面来看看大家在现实生活中是如何使用 OpenClaw 的具体例子。

🌅 案例 1:晨间简报

任务: 每天早上获取一份个性化的天气、新闻和日程摘要。

💭 问题所在

以前我每天早上要花 30–40 分钟:看天气、查邮件、翻日历、读新闻……现在这一切只需一条消息,2 分钟搞定!

设置:

  1. 在群组里创建一个单独的话题:“Morning”

  2. 配置智能体:

Configure yourself for morning briefings:
- Every morning at 7:00 send me the weather in Moscow
- Check my Google Calendar and show today's events
- Find the main news in the areas: AI, productivity, no-code
- Check urgent emails for the last 12 hours
- Format: short, with emoji, no more than 10 lines
  1. 安装所需的技能:
clawhub install weather
clawhub install google-calendar
clawhub install gmail-advanced
openclaw gateway restart

✅ 成果

每天早上节省 30 分钟以上的信息收集时间。你一醒来,一切就已经准备好了!


📝 案例 2:转录 YouTube 视频并做笔记

任务: 把 YouTube 视频变成 Obsidian 中的结构化笔记。

🎯 我的工作流

我会看很多关于 AI、效率和工具的教学视频,但想把所有内容都记住是不可能的。现在我只需把链接发给机器人,2 分钟后就能拿到一份包含核心要点的完整笔记!

设置:

  1. 创建一个话题:“YouTube → Notes”

  2. 安装 APIFY 并进行配置:

export APIFY_API_TOKEN="your_token"
openclaw gateway restart
  1. 配置场景:
Configure yourself for working with YouTube:
1. When I send a video link, use the APIFY actor 
   pintostudio/youtube-transcript-scraper to get the transcript
2. Create a structured note:
   - A heading with the video's title
   - A short summary (3-5 sentences)
   - Key ideas (bullet points)
   - Quotes (if any)
   - Tags for Obsidian: #youtube #video #[topic]
3. Send me the finished Markdown file
4. Optionally: upload the file to my Google Drive into the "YouTube Notes" folder

用法:

https://youtube.com/watch?v=example

💡 小贴士

在提示词里加上:“为关键时刻添加时间码,方便我回到视频中查看”。非常方便!

结果: 30 分钟的视频 → 2 分钟内生成结构化笔记。


🔍 案例 3:监控 Reddit 并寻找灵感

任务: 自动从 Reddit 上发现趋势和内容创意。

💭 为什么需要这个?

对内容创作者来说,Reddit 是一座金矿。那里的人们讨论真实的问题、分享经验、寻求建议。但要手动盯着这一切并不现实,智能体可以替我完成!

设置:

  1. 安装 Reddit 技能:
clawhub install reddit-readonly
openclaw gateway restart

📖 reddit-readonly

这个技能可以读取帖子、评论,统计点赞数,但不能发帖或评论(出于安全考虑)。

  1. 创建一个话题:“Reddit Research”

  2. 配置监控:

Configure yourself for monitoring Reddit:
- Every evening at 20:00 monitor the subreddits: 
  r/Obsidian, r/productivity, r/nocode
- Gather posts with more than 50 upvotes in the last 24 hours
- Analyse the main topics and trends
- Create a visualisation via Gemini (a PNG diagram) 
  with the top 5 trends
- Send me a digest with the 5 most interesting ideas 
  for content with a rationale for each

🔥 真实成果

使用这个案例的 3 个月里,我在自己的 Telegram 频道发布了 15 篇爆款帖子。其中一篇获得了 5 万次浏览,而创意正是来自 Reddit 监控!

结果: 为你的频道源源不断地提供新鲜创意。


💼 案例 4:通过 Asana 管理业务

任务: 自动化任务和项目管理。

🎯 这个案例适合谁?

非常适合创业者、自由职业者和项目经理。如果你手头有大量任务和项目,这个案例每周能为你节省数小时!

设置:

  1. 安装 Asana:
clawhub install asana
openclaw gateway restart
  1. 获取 Asana API 令牌:

    • 打开 Asana → Settings → Apps → Developer Apps
    • Create New Token
    • 复制令牌
  2. 添加令牌:

export ASANA_API_TOKEN="your_token"
openclaw gateway restart
  1. 配置自动化:
Configure yourself for working with Asana:
- My workspace ID: 1234567890
- My projects: 
  * "Content" (ID: xxx) — articles, videos, posts
  * "Development" (ID: yyy) — technical tasks
  * "Business" (ID: zzz) — meetings, negotiations
  
Automation:
- Every morning at 9:00 show my high-priority tasks
- Every Monday at 10:00 create a weekly report: 
  what's done, what's in progress, what's blocked
- When I say "add a task to [project]", create it 
  with the right tags and deadline
- If a task is overdue by more than 3 days — remind me

用法:

Add a task to the Content project: write an article about OpenClaw, 
deadline Friday, priority high
Show all tasks for the Development project that are in progress

📊 效率

每周在任务管理上节省 2 小时以上。而且你再也不会忘记重要的任务!

结果: 无需手动操作,即可全面掌控你的项目。


📧 案例 5:管理多个邮箱账号

任务: 同时监控 3 个邮箱,并筛选出重要邮件。

设置:

  1. 安装 Gmail 技能:
clawhub install gmail-advanced
openclaw gateway restart
  1. 进行配置:
Configure yourself for working with email:
- I have 3 accounts: personal@gmail.com, work@company.com, youtube@gmail.com
- Every hour check all three mailboxes
- Important senders: boss@company.com, partner@business.com, important@client.com
- On receiving an email from important senders — notify me immediately on Telegram
- Every evening at 18:00 send a digest: how many new emails, how many important, 
  how many require a reply
- Archive obvious spam automatically

结果: 你不会再错过重要邮件,每天节省 1–2 小时。


🏠 案例 6:通过 Home Assistant 实现智能家居

任务: 通过 Telegram 用语音控制智能家居设备。

设置:

  1. 安装 Home Assistant 技能(如果 ClawHub 上有的话)

  2. 或者通过 API 进行配置:

Configure yourself for managing the smart home:
- My devices: 
  * The light in the living room (ID: light.living_room)
  * The coffee maker (ID: switch.coffee_maker)
  * The thermostat (ID: climate.main)
  * The vacuum cleaner (ID: vacuum.roborock)

- Commands:
  "good night" → turn off all the lights
  "good morning" → turn on the coffee maker, set the thermostat to 22°C
  "start cleaning" → launch the vacuum cleaner

用法:

Good night
What's the temperature at home now?
Turn on the light in the living room at 50%

💰 案例 7:管理财务与记账

任务: 自动从邮件中收集发票,并为会计准备好数据。

设置:

  1. 创建一个话题:“Finance”

  2. 进行配置:

Configure yourself for managing finances:
- Every week scan my email for invoices and receipts (PDF)
- Keywords: "invoice", "счёт", "квитанция", "receipt"
- Download the PDFs and save in ~/accounting/incoming/
- Extract the data: supplier, amount, date, category
- Create an Excel table with a monthly summary
- On the 1st of each month: 
  * Compile all the invoices for the previous month
  * Create a summary report
  * Send the package to accountant@email.com

结果: 每月节省 3–4 小时的记账时间。


📊 案例 8:分析 YouTube 上的竞争对手

任务: 跟踪竞争频道的动态。

设置:

  1. 使用 YouTube Data API + APIFY

  2. 进行配置:

Configure yourself for competitor analysis:
- My competitors: @channel1, @channel2, @channel3
- Every Monday:
  * Gather data about their videos for the past week
  * Analyse: how many videos, which topics, the average view count
  * Which video is the most successful and why
  * Suggest 3 ideas for my content based on the trends
- Send a report with charts

结果: 始终掌握趋势,获得成功的内容创意。


🚗 案例 9:管理特斯拉

任务: 查看电量,并为出行做好用车准备。

设置:

  1. 安装 Tesla 技能(如果有的话)
clawhub install tesla-api
openclaw gateway restart
  1. 添加 Tesla API 令牌:
export TESLA_API_TOKEN="your_token"
openclaw gateway restart
  1. 进行配置:
Configure yourself for managing the Tesla:
- Every weekday at 6:30 a.m.:
  * Check the charge level
  * Pre-heat the cabin to 20°C
  * Send me a notification: "The Tesla is ready! Charge: X%"
- If the charge is less than 30% — remind me to charge it

用法:

What's the car's charge?
Open the trunk
Find the car in the parking lot (turn on the signal)

🎯 案例 10:Telegram 频道的内容规划

任务: 根据笔记和趋势生成帖子创意。

设置:

  1. 创建一个话题:“Content planning”

  2. 进行配置:

Configure yourself for content planning:
- I run a channel about Obsidian, productivity, AI
- Every day:
  * Monitor Reddit (r/Obsidian, r/productivity)
  * Analyse my notes in Obsidian with the #idea tag
  * Suggest 2-3 ideas for posts
- When I choose an idea, create a draft post:
  * A catchy headline
  * Structured text
  * A call to action
  * Suitable emoji

用法:

Give me 3 ideas for a post for tomorrow
Create a post about [topic]

结果: 创意永不枯竭,每天都有高质量内容。


🔄 案例 11:自动化 GitHub 工作流

任务: 自动创建 issue、编写代码并部署。

设置:

  1. 安装 GitHub 技能:
clawhub install github-api
openclaw gateway restart
  1. 添加 GitHub 令牌:
export GITHUB_TOKEN="your_token"
openclaw gateway restart
  1. 进行配置:
Configure yourself for working with GitHub:
- My repositories: user/project1, user/project2
- Every hour check the site's metrics
- If the bounce rate > 50%:
  * Create a GitHub issue with the "auto-fix" label
  * Analyse the problem
  * Create a branch fix/auto-improvement
  * Implement the fix
  * Create a Pull Request
  * Run the tests
  * If the tests passed — merge the PR
  * Notify me on Telegram

结果: 自动修复问题,开发者只需极少介入。


🏃 案例 12:用 Oura Ring 管理健身与健康

任务: 根据恢复数据优化训练。

设置:

  1. 连接 Oura API

  2. 进行配置:

Configure yourself for fitness monitoring:
- Every morning at 7:00:
  * Get the data from the Oura Ring
  * Show: sleep score, readiness, HRV
  * Give a recommendation: "You can push hard today" or "Better to recover"
- If readiness < 70:
  * Move the workout in the calendar to tomorrow
  * Block time for rest
- Every Sunday: weekly health statistics

结果: 优化训练安排,避免过度训练。


🛒 案例 13:自动采购日用杂货

任务: 无需人工介入,每周自动下单采购食品杂货。

设置:

  1. 安装 browser-control 技能

  2. 进行配置:

Configure yourself for buying groceries:
- Every Sunday at 9:00:
  * Open the Yandex.Lavka / Utkonos site in the browser
  * Add my standard list to the cart:
    [milk, bread, eggs, vegetables, fruit, ...]
  * Choose the nearest delivery slot
  * Confirm the order
  * Send me a confirmation on Telegram

结果: 家里的食材永远充足,省下了处理琐事的时间。


📈 案例 14:CEO 仪表盘——多智能体管理

任务: 实时掌握业务全貌。

设置:

  1. 搭建多智能体仪表盘:
Create sub-agents for yourself:
1. The finance agent:
   - Monitors income/expenses
   - Analyses cash flow
   - Warns about problems

2. The sales agent:
   - Tracks the funnel in HubSpot
   - Analyses conversions
   - Suggests improvements

3. The marketing agent:
   - Monitors social-media metrics
   - Analyses content effectiveness
   - Suggests A/B tests

4. The team agent:
   - Tracks tasks in Asana
   - Identifies blockers
   - Suggests redistribution

Every Monday at 9:00 all the agents send their reports.
Every Friday — a weekly summary with recommendations.

结果: “解锁了大脑中一个你从不知道的部分”——来自真实用户的评价。


🌍 案例 15:规划旅行

任务: 制定包含预订的完整旅行行程。

设置:

  1. 安装 travel-manager 技能

  2. 使用它:

Plan me a 10-day trip to Japan:
- Budget: $5000 for two
- Period: April 2026
- Cities: Tokyo, Kyoto, Osaka
- Interests: temples, modern architecture, food
- Requirements: hotels near the train stations

Create:
1. A day-by-day itinerary with sights
2. Hotel options with prices
3. The train schedule between the cities
4. Restaurant recommendations
5. An overall cost estimate

结果: 5 分钟就能拿到现成的旅行计划,而不是花上几周去规划。


💡 案例 16:为创业项目调研细分市场

任务: 在启动之前验证商业想法。

设置:

Conduct research on the niche "AI tools for writers":

1. Searching for problems:
   - Analyse r/writing, r/selfpublish
   - Gather complaints and user pain points (>50 upvotes)
   
2. Competitor analysis:
   - Find existing solutions
   - Analyse their pricing
   - Find gaps (what isn't being solved)
   
3. Market size:
   - Estimate the potential audience
   - Find statistics on related products
   
4. Opportunities:
   - Suggest 3 ideas for an MVP
   - For each idea: uniqueness, complexity, potential
   
Create a report in Notion and send me the link.

结果: 几个小时就能完成深入的市场调研,而不是花上几周。


结语

OpenClaw 不只是一个聊天机器人,它是你的自主助手,它能够:

✅ OpenClaw 的优势

  • 在后台全天候 24/7 运行
  • 执行任何可以在电脑上完成的任务
  • 自我学习并创建新技能
  • 通过 API 与任何服务集成
  • 并行管理众多专业化的智能体

OpenClaw 的特别之处:

1. 自我学习

智能体会记住你的习惯、工作方式和偏好。随着时间推移,它会变得越来越有用、越来越高效。

💬 真实评价

“用了一个月之后,我发现这个智能体比我自己还了解我。我还没来得及想到解决方案,它就已经给出建议了!” —— 一位 OpenClaw 用户

2. 自主性

早上醒来,你就能收到个人摘要、分析好的趋势,以及为会议准备好的材料——这一切都无需你参与。

🌅 我的早晨工作流

7:00 —— 我起床 7:02 —— 我打开 Telegram,里面已经有:

  • 天气和穿衣建议
  • 当天的日程和提醒
  • AI 领域的新闻摘要
  • 需要回复的紧急邮件
  • 来自 Reddit 的内容创意

我连咖啡都还没喝,就已经了解了所有情况!

3. 适应性

如果遇到新任务,智能体会自己创建一个技能,下次做起来会更快——自动完成,而且完全符合你的要求。

4. 可扩展性

通过创建独立的会话(Telegram 中的话题),你可以拥有一整个专业智能体团队,每个智能体各司其职。

🎯 扩展策略

先从 2-3 个智能体开始:

  1. 晨间简报(基础自动化)
  2. 任务管理(Asana/Todoist)
  3. 内容分析(Reddit/YouTube)

一个月后再添加专业型智能体:

  • 财务分析师
  • 项目经理
  • 内容经理
  • 趋势研究员

从哪里开始:

🚀 分步启动计划

第 1 周: 安装和基础设置

  • 在 Timeweb Cloud 上创建服务器
  • 设置 Telegram 机器人
  • 连接 AI 智能体

第 2 周: 第一个自动化

  • 设置晨间简报
  • 添加日历集成
  • 测试并改进提示词

第 3 周: 扩展功能

  • 安装 3-5 个需要的技能
  • 创建带话题的群聊
  • 设置专业型智能体

第 4 周: 优化

  • 分析 token 使用情况
  • 改进提示词以节省用量
  • 添加 cron 任务和 webhook
  1. 从简单的开始 —— 比如晨间简报或邮件监控
  2. 多做实验 —— 设定明确的任务,观察智能体如何解决
  3. 持续改进 —— 根据结果调整提示词和设置
  4. 逐步扩展 —— 慢慢添加新的技能和自动化

重要原则:

⚠️ 需要避免的事

  • 模糊的指令 —— “有空的时候做点什么”是行不通的
  • 一上来就给过于复杂的任务 —— 从简单的开始
  • 忽视反馈 —— 如果智能体出错了,就把提示词写得更清楚
  • 忘记重启 —— 安装技能后一定要重启 gateway!
  • 🎯 指令清晰 —— 任务描述得越精确,结果越好
  • 📝 做好文档 —— 把重要信息添加到 TOOLS.md 和 RULES.md 中
  • 🔄 反复迭代 —— 自动化的第一个版本只是个开始
  • 🤝 信任,但要验证 —— 尤其是在关键任务上

实用资源:

下一步:

  1. 在 Timeweb Cloud 上安装 OpenClaw(使用优惠码 ELTON)
  2. 设置你的第一个自动化
  3. 加入 Discord 社区
  4. 分享你的案例,向他人学习
  5. 逐步构建你自己的智能体生态

🎯 最重要的原则

开始实验吧! 不要等待完美的计划。最好的学习方式就是实践。安装、尝试、犯错、修正、改进。一个月后,你将无法想象没有 AI 智能体团队的生活!

最重要的是——开始实验!

只要接入任何一个技能或工具,你就拥有了无限的自动化可能。OpenClaw 不是未来,而是今天就能用上的现在。


FAQ(常见问题)

问:使用 OpenClaw 需要多少钱?

💰 使用成本

答: OpenClaw 本身是免费的(开源)。你只需要为以下内容付费:

  • Timeweb Cloud 上的服务器: 约 300-600₽/月,取决于配置
  • LLM 模型的 token: 约 500-2000₽/月,取决于使用量
  • 可选:外部服务的 API(APIFY、Perplexity 等)

问:应该选择哪个 AI 模型?

🧠 如何选择模型

答: 推荐如下:

  • 入门之选: Gemini 100 万 token(约 500₽)—— 花钱不多,质量不错
  • 最佳选择: Claude Sonnet —— 处理复杂任务质量最好,但价格更高
  • 经济之选: 通过 OpenRouter 使用 GPT-4o mini —— 便宜,但质量较低
  • 进阶方案: 针对不同任务组合使用多个模型(简单任务用 Gemini,复杂任务用 Claude)

💡 我的选择

我用 Gemini 处理 80% 的任务(天气、新闻、简单分析),用 Claude Sonnet 处理复杂任务(编写代码、深度分析)。这样我能节省约 50% 的 token!

问:让智能体访问邮件和文件安全吗?

🔒 安全性

答: OpenClaw 运行在你自己的独立服务器上,除了你之外,没有人能访问这些数据。不过:

  • ✅ 使用强密码
  • ✅ 设置防火墙
  • ✅ 在 RULES.md 中限制智能体的权限
  • ⚠️ 对于关键操作,要求先确认

📝 RULES.md 中的限制示例

# SECURITY RULES
 
NEVER:
- Delete files without confirmation
- Send money or make purchases
- Change critical system settings
- Share API keys or passwords
 
ALWAYS ASK FOR CONFIRMATION:
- Before sending important emails
- Before deleting tasks from Asana
- Before committing code to GitHub

问:如果智能体行为不正确该怎么办?

答:

  1. 检查 RULES.md —— 也许里面没有明确的限制
  2. 查看网页界面中的历史记录 —— 你就能理解智能体的逻辑
  3. 调整提示词,重新表述任务
  4. 万不得已时 —— 重启会话

🔧 调试智能体

使用这条指令:

Explain to me step by step how you solved the previous task

这会展示智能体的推理链条,帮助你找到问题所在。

问:OpenClaw 可以用于商业项目吗?

答: 可以,OpenClaw 采用 MIT 许可证。你可以将它用于任何目的,包括商业用途。

💼 商业用途

许多用户会用 OpenClaw 来:

  • 自动化业务流程
  • 管理客户支持
  • 为客户创作内容
  • 监控竞争对手

这一切都是合法且被允许的!

问:如何备份设置?

💾 备份

答: 定期复制这些文件:

~/clawd/openclaw.json
~/clawd/IDENTITY.md
~/clawd/TOOLS.md
~/clawd/RULES.md
~/clawd/HEARTBEAT.md
~/clawd/.env

🔄 自动备份

设置一个 cron 任务:

Every Sunday at 23:00 create an archive of all 
the configuration files and send it to my email

问:智能体消耗的 token 太多了,怎么办?

📊 优化成本

答:

  1. 配置 HEARTBEAT.md —— 将检查频率从 30 分钟降低到 60 分钟一次
  2. 在设置中限制上下文长度
  3. 简单任务使用更便宜的模型
  4. 优化提示词 —— 写得更简短、更具体

💡 节省 token

糟糕的提示词(回答约 1000 token):

Tell me in detail about all the news in AI for the last week

好的提示词(回答约 200 token):

The top 3 news in AI for the week. One sentence on each.

节省:80% 的 token!

问:不用 Telegram 也能使用 OpenClaw 吗?

答: 可以!OpenClaw 支持:

  • 网页界面(浏览器)
  • 控制台界面(终端)
  • 用于集成的 API
  • Slack(通过技能)

🌐 多渠道

你可以同时使用多个渠道:

  • Telegram 用于快速命令
  • 网页界面用于配置
  • API 用于与你的应用集成

问:如何把 OpenClaw 更新到新版本?

答:

openclaw update
openclaw gateway restart

🔄 自动更新

设置每周检查:

Every Wednesday check for OpenClaw updates. 
If there's a new version — notify me about the new features.

最后更新:2026 年 2 月 作者:Elton Labs 频道:YouTube | Telegram