wacli
它能做什么
它指导 AI 智能体使用 wacli 命令,向他人发送 WhatsApp 消息,并搜索或同步过去的 WhatsApp 记录。它适合希望获得帮助、在 WhatsApp 上联系他人的人。
适用场景
- ✓你让智能体给某个特定的人发送 WhatsApp 消息的时候。
- ✓你想在较早的 WhatsApp 聊天中搜索某条消息或某张发票的时候。
- ✓需要同步 WhatsApp 记录或检查其状态的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/extensions/whatsapp/skills/wacli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请给 Sam 发一条 WhatsApp 消息,说我会晚十分钟到,但先和我确认措辞。”
每周 5 个新技能,1 分钟读完。
工作原理
技能找到正确的聊天,与你一起确认收件人和准确的文字,然后再发送消息。它也可以搜索并显示已保存的消息,以检查其措辞。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wacli
Use wacli only when the user explicitly asks you to message someone else on WhatsApp or when they ask to sync/search WhatsApp history.
Do NOT use wacli for normal user chats; OpenClaw routes WhatsApp conversations automatically.
If the user is chatting with you on WhatsApp, you should not reach for this tool unless they ask you to contact a third party.
Safety
- Require explicit recipient + message text.
- Confirm recipient + message before sending.
- If anything is ambiguous, ask a clarifying question.
Auth + sync
wacli auth(QR login + initial sync)wacli sync --follow(continuous sync)wacli doctor
Find chats + messages
wacli chats list --limit 20 --query "name or number"wacli messages search "query" --limit 20 --chat <jid>wacli messages search "invoice" --after 2025-01-01 --before 2025-12-31
Inspect / verify messages
wacli messages show --chat <jid> --id <message_id> --json --fullmessages showrequires both--chatand--id; do not pass the message ID as a positional argument.- After sending, verify the stored message when exact formatting matters, especially multiline text.
History backfill
wacli history backfill --chat <jid> --requests 2 --count 50
Send
- Text:
wacli send text --to "+14155551212" --message "Hello! Are you free at 3pm?" - Group:
wacli send text --to "1234567890-123456789@g.us" --message "Running 5 min late." - File:
wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "Agenda" - Multiline:
--messageis literal by default; pass--message-escapesto interpret\n,\r,\t.
Notes
- Store dir:
~/.wacli(override with--store). - Use
--jsonfor machine-readable output when parsing. - Backfill requires your phone online; results are best-effort.
- WhatsApp CLI is not needed for routine user chats; it's for messaging other people.
- JIDs: direct chats look like
<number>@s.whatsapp.net; groups look like<id>@g.us(usewacli chats listto find).
常见问题
它会不经询问就给别人发消息吗?
不会。它要求明确的收件人和消息内容,并在发送前两者都进行确认。
它会处理我与智能体之间的聊天吗?
不会。正常对话会自动路由,因此这个工具只用于联系他人。
它能搜索过去的消息吗?
可以。它可以按文字、聊天和日期范围搜索 WhatsApp 记录。
详情
作者的原始描述
Send third-party WhatsApp messages or sync/search WhatsApp history via wacli, not normal active chats.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #40
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
discrawl
394k让你的智能体搜索和总结本地保存的 Discord 消息档案,查看档案的新旧程度,并阅读私信。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。