📱

wacli

Send WhatsApp messages and search/sync your WhatsApp history directly from your AI agent via the wacli CLI.

作者 OpenClawv1.0.0
CommunicationProductivityAutomationCLIDeveloper Tool
正在连接 VM...
正在连接 VM...
npx clawhub@latest install wacli
19当前安装数
v1.0.0版本

系统要求

wacli

The wacli skill gives your AI agent the ability to interact with WhatsApp on your behalf — sending messages to contacts or groups, searching through your message history, and keeping your local WhatsApp store in sync.This skill is designed for agent-initiated outreach: telling your agent to message a third party, look up a past conversation, or deliver a file. It is not used for your own chats with the agent — OpenClaw routes those automatically.

工作原理

wacli connects to WhatsApp using a QR-code login flow and syncs your message store locally to ~/.wacli. Once authenticated, the agent can query that local store or dispatch messages through WhatsApp's servers. The skill follows a careful safety protocol:The agent requires an explicit recipient and message before doing anything.It confirms both the recipient and message content with you before sending.If anything is ambiguous, it pauses and asks a clarifying question.Use --json flag for machine-readable output when the agent needs to parse results programmatically.

核心功能

Send Text Messages — Dispatch text messages to any WhatsApp contact (+14155551212) or group (@g.us JID) with a simple command.Send Files — Attach and send files such as PDFs with an optional caption to any contact or group.Search Message History — Full-text search across your synced messages with date-range filters (--after, --before) and per-chat scoping.Chat Listing — List and query your recent chats by name or number to resolve JIDs before sending.History Backfill — Request older messages from WhatsApp's servers (requires your phone to be online).Continuous Sync — Keep your local message store up to date in the background with wacli sync --follow.Safety-First Design — Built-in confirmation step before every send action; ambiguous inputs trigger a clarifying question rather than guessing.

系统要求

WhatsApp Account — Required. You must authenticate via QR code login using wacli auth before any send or sync operations. Your phone must remain associated with the account.Phone Online for Backfill — Optional, but your phone must be online and accessible when using wacli history backfill; results are best-effort.

使用场景

Agent-Driven Outreach — Ask your agent to notify a contractor, teammate, or client on WhatsApp without leaving your workflow.File Delivery — Have the agent send a PDF, invoice, or document to a contact with a custom caption.Conversation Research — Search months of WhatsApp history for a specific topic, keyword, or date range to surface past agreements or details.Group Notifications — Send a quick update to a WhatsApp group, such as a project team or family group, from an automated workflow.

安装方式

1
Run in your terminal
npx clawhub@latest install wacli
or
2
Click the Install button at the top of this page for one-click setup

常见问题

评价

0 条评价

登录后撰写评价

暂无评价。来分享你的使用体验吧!