跳到正文
Skillpedia
邮件与消息394k · #40

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/openclaw/openclaw/blob/main/extensions/whatsapp/skills/wacli/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 --full
  • messages show requires both --chat and --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: --message is literal by default; pass --message-escapes to interpret \n, \r, \t.

Notes

  • Store dir: ~/.wacli (override with --store).
  • Use --json for 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 (use wacli chats list to 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能