Send WhatsApp messages and search or sync WhatsApp history programmatically via the wacli CLI tool.
npx clawhub@latest install wacliRequirements
wacli is a command-line interface for WhatsApp that lets AI agents send messages to contacts and groups, search message history, and sync chat data — all without manual interaction. It is designed for automating outbound messaging and querying conversation history, not for handling the user's own incoming WhatsApp chats (those are routed automatically by OpenClaw). Install this skill when you need your agent to reach out to third parties on WhatsApp or retrieve past message context.
npx clawhub@latest install wacliClick the Install button at the top of this page for one-click setup
Use wacli send text to deliver a message to any phone number or WhatsApp group JID. Supports both direct chats (<number>@s.whatsapp.net) and group chats (<id>@g.us).
Attach and deliver files (PDFs, images, and more) to any WhatsApp contact or group using wacli send file, with an optional caption string.
Query your synced WhatsApp history by keyword, date range, and chat using wacli messages search. Useful for retrieving past conversation context before taking action.
wacli chats list lets you search for contacts or groups by name or number, and returns their JIDs needed for sending or searching within a specific chat.
Use wacli history backfill to retrieve older messages from WhatsApp's servers into the local store. Requires your phone to be online; results are best-effort.
wacli auth handles QR-based login and initial sync. wacli sync --follow keeps your local store continuously updated. wacli doctor helps diagnose connection issues.
An agent detects a meeting delay or status change and uses wacli send text to notify the relevant contact or group WhatsApp chat without any manual steps.
An agent generates a PDF report or agenda and delivers it directly to a WhatsApp recipient using wacli send file with a descriptive caption.
Before drafting a follow-up, an agent searches WhatsApp history for a specific topic or keyword (e.g., wacli messages search "invoice" --after 2025-01-01) to surface relevant prior messages.
A workflow syncs and backfills WhatsApp message history into a local store (~/.wacli) so downstream tools can query, index, or analyze conversation data.
npx clawhub@latest install wacliRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!