MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
Communication
📱

wacli

Send WhatsApp messages and search or sync WhatsApp history programmatically via the wacli CLI tool.

by OpenClawv1.0.0
ProductivityAutomationAPICLI
Connecting to VM...
Connecting to VM...
npx clawhub@latest install wacli
39Current Installs
📦
v1.0.0Version

Requirements

wacli

wacli Skill Overview

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.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install wacli
or

Click the Install button at the top of this page for one-click setup

When to Use wacli

Best Fit

  • You want your agent to send a WhatsApp message to a specific contact or group on your behalf (e.g., notifying a client, alerting a team group).
  • You need to search past WhatsApp conversations for specific keywords, dates, or contacts programmatically.
  • You want to sync and backfill WhatsApp history into a local store for downstream processing or lookup.
  • You need to send files or documents (PDFs, images, etc.) to a WhatsApp recipient with an optional caption.

When Not to Use

  • You are chatting with the agent via WhatsApp yourself — OpenClaw handles those conversations automatically; do not invoke wacli for your own chat session.
  • You need to receive or respond to incoming WhatsApp messages in real time; wacli is an outbound/query tool, not an inbox listener.
  • The recipient or message content is ambiguous — always confirm details before sending.

Key Features

Send Text Messages to Contacts and Groups

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).

Send Files with Captions

Attach and deliver files (PDFs, images, and more) to any WhatsApp contact or group using wacli send file, with an optional caption string.

Search Message History

Query your synced WhatsApp history by keyword, date range, and chat using wacli messages search. Useful for retrieving past conversation context before taking action.

List and Find Chats

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.

History Backfill

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.

Auth, Sync, and Diagnostics

wacli auth handles QR-based login and initial sync. wacli sync --follow keeps your local store continuously updated. wacli doctor helps diagnose connection issues.

Use Cases

Automated client or team notifications

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.

Sending documents to contacts

An agent generates a PDF report or agenda and delivers it directly to a WhatsApp recipient using wacli send file with a descriptive caption.

Searching past conversations for context

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.

Syncing WhatsApp history for data processing

A workflow syncs and backfills WhatsApp message history into a local store (~/.wacli) so downstream tools can query, index, or analyze conversation data.

Connecting to VM...
npx clawhub@latest install wacli
39Current Installs
📦
v1.0.0Version

Requirements

wacli

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!