Install
openclaw skills install @globalcaos/whatsapp-ultimateYou put 5 agents in a WhatsApp group. They all respond at once. Your API bill does a backflip. Protocol v2 fixes that — congestion control, conversation lifecycle, and budget-aware scheduling. Agents that know when to talk, when to shut up, and when to burn unused tokens before reset. Built for the TinkerClaw fork — github.com/globalcaos/tinkerclaw. Documentation only: this package ships no scripts.
openclaw skills install @globalcaos/whatsapp-ultimateOne of dozens of skills and plugins in TinkerClaw — a self-improving OpenClaw fork that's been running 24/7 for months.
You put 5 agents in a WhatsApp group. They all respond at once. Your API bill does a backflip.
Protocol v2 fixes that. Your agents learn group etiquette: when to talk, when to shut up, and when to spend the tokens they'd otherwise waste before the limit resets.
It adds congestion control so a busy group doesn't trigger a stampede of replies, a conversation lifecycle so a thread knows when it's actually over, and budget-aware scheduling so the cheap chatter waits and the work that matters gets the headroom. Multi-agent WhatsApp groups that stay calm, stay on-topic, and stay inside budget.
Part of TinkerClaw — real-time token tracking, self-improving crons, persistent cognitive memory. This is one piece of that stack; the repo has dozens more.
👉 https://github.com/globalcaos/tinkerclaw
Clone it. Fork it. Break it. Make it yours.
Everything you can do in WhatsApp, your AI agent can do too. This skill documents all WhatsApp capabilities available through OpenClaw's native channel integration. No external Docker services, no CLI wrappers — direct WhatsApp Web protocol via Baileys.This package is documentation. It contains SKILL.md and description.md — no scripts, no
binaries, no installer, no background process.
| Capability | Used by this package? |
|---|---|
| Read WhatsApp credentials | No |
| Network | No |
| File write | No |
| Patch OpenClaw source | No |
| Env vars / secrets / API keys | No |
Every action below is executed by your OpenClaw/TinkerClaw WhatsApp channel, with that channel's permissions and configuration. Installing this skill does not add those actions; uninstalling it does not remove them.
Earlier versions (up to 4.1.0) bundled four maintenance scripts — a contact inventory, a group creator, and two source-patch scripts (inbound message retention, auth-profile prefix). 4.2.0 removes them. See the changelog for why.
| Category | Features |
|---|---|
| Messaging | Text, media, polls, stickers, voice notes, GIFs |
| Interactions | Reactions, replies/quotes, edit, unsend |
| Groups | Create, rename, icon, description, participants, admin, invite links |
| History | Local-DB search only (see caveat below). vCard contact extraction |
Total: 22 distinct actions.
These 22 actions belong to OpenClaw's WhatsApp channel, not to this package. This skill documents them; installing it does not add them, and uninstalling it does not remove them.
message action=send channel=whatsapp to="+34612345678" message="Hello!"
message action=send channel=whatsapp to="+34612345678" message="Check this out" filePath=/path/to/image.jpg
Supported: JPG, PNG, GIF, MP4, PDF, DOC, etc.
message action=poll channel=whatsapp to="+34612345678" pollQuestion="What time?" pollOption=["3pm", "4pm", "5pm"]
message action=sticker channel=whatsapp to="+34612345678" filePath=/path/to/sticker.webp
Must be WebP format, ideally 512x512.
message action=send channel=whatsapp to="+34612345678" filePath=/path/to/audio.ogg asVoice=true
Use OGG/Opus format for voice notes — MP3 may not play correctly.
message action=send channel=whatsapp to="+34612345678" filePath=/path/to/animation.mp4 gifPlayback=true
Convert GIF to MP4 first (WhatsApp requires this):
ffmpeg -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4 -y
message action=react channel=whatsapp chatJid="34612345678@s.whatsapp.net" messageId="ABC123" emoji="🚀"
message action=react channel=whatsapp chatJid="34612345678@s.whatsapp.net" messageId="ABC123" remove=true
message action=reply channel=whatsapp to="34612345678@s.whatsapp.net" replyTo="QUOTED_MSG_ID" message="Replying to this!"
message action=edit channel=whatsapp chatJid="34612345678@s.whatsapp.net" messageId="ABC123" message="Updated text"
message action=unsend channel=whatsapp chatJid="34612345678@s.whatsapp.net" messageId="ABC123"
Irreversible and visible. Deletion-for-everyone cannot be undone, and WhatsApp leaves a "This message was deleted" tombstone in the chat. Confirm with the human before an agent unsends anything it did not send itself.
message action=group-create channel=whatsapp name="Project Team" participants=["+34612345678", "+34687654321"]
message action=renameGroup channel=whatsapp groupId="123456789@g.us" name="New Name"
message action=setGroupIcon channel=whatsapp groupId="123456789@g.us" filePath=/path/to/icon.jpg
message action=setGroupDescription channel=whatsapp groupJid="123456789@g.us" description="Team chat for Q1 project"
message action=addParticipant channel=whatsapp groupId="123456789@g.us" participant="+34612345678"
message action=removeParticipant channel=whatsapp groupId="123456789@g.us" participant="+34612345678"
Affects a real person and requires admin. Removal is visible to the whole group and you cannot silently undo it. Same for
promoteParticipant/demoteParticipant. Get explicit human confirmation before an agent changes a group's membership or admin list.
message action=promoteParticipant channel=whatsapp groupJid="123456789@g.us" participants=["+34612345678"]
message action=demoteParticipant channel=whatsapp groupJid="123456789@g.us" participants=["+34612345678"]
message action=leaveGroup channel=whatsapp groupId="123456789@g.us"
message action=getInviteCode channel=whatsapp groupJid="123456789@g.us"
Returns: https://chat.whatsapp.com/XXXXX
message action=revokeInviteCode channel=whatsapp groupJid="123456789@g.us"
Both directions are sensitive.
getInviteCodereturns a link that lets anyone holding it join the group — treat it as a credential and do not paste it into logs or other chats.revokeInviteCodeinstantly breaks every copy of the old link that is already circulating.
message action=getGroupInfo channel=whatsapp groupJid="123456789@g.us"
Returns: name, description, participants, admins, creation date.
WhatsApp uses JIDs (Jabber IDs) internally:
| Type | Format | Example |
|---|---|---|
| Individual | <number>@s.whatsapp.net | 34612345678@s.whatsapp.net |
| Group | <id>@g.us | 123456789012345678@g.us |
When using to= with phone numbers, OpenClaw auto-converts to JID format.
Your agent cannot pull old messages back off your phone on demand. Anything that claims otherwise is wrong. What actually exists:
whatsapp-history.db — whatever your gateway captured while it was
running, including media captions and link previews, not just plain text.Who writes the history DB. The channel's own live capture does, not this package. In the TinkerClaw fork that capture is part of the WhatsApp channel and stores inbound messages from chats the gateway sees; delete
whatsapp-history.dbto clear it.
Use OGG/Opus format:
ffmpeg -i input.wav -c:a libopus -b:a 64k output.ogg
Convert images to WebP stickers:
ffmpeg -i input.png -vf "scale=512:512:force_original_aspect_ratio=decrease,pad=512:512:(ow-iw)/2:(oh-ih)/2:color=0x00000000" output.webp
WhatsApp has anti-spam measures. Avoid:
To react/edit/unsend, you need the message ID. Incoming messages include this in the event payload. For your own sent messages, the send response includes the ID.
| Feature | whatsapp-ultimate | wacli | whatsapp-automation | gif-whatsapp |
|---|---|---|---|---|
| Native integration | yes | no (CLI) | no (Docker) | N/A |
| Send text | yes | yes | no | no |
| Send media | yes | yes | no | no |
| Polls | yes | no | no | no |
| Stickers | yes | no | no | no |
| Voice notes | yes | no | no | no |
| GIFs | yes | no | no | yes |
| Reactions | yes | no | no | no |
| Reply/Quote | yes | no | no | no |
| Edit | yes | no | no | no |
| Unsend | yes | no | no | no |
| Group create | yes | no | no | no |
| Group management | yes (full) | no | no | no |
| Receive messages | yes | yes | yes | no |
| Two-way chat | yes | no | no | no |
| External deps | None | Go binary | Docker + WAHA | ffmpeg |
<why_this_matters> If you put multiple AI agents in one WhatsApp group, the naive default is everyone responds to everything. Five agents replying to one message means 5x the API spend per turn, plus echo loops where agents agree with each other forever. Protocol v2 introduces congestion control, conversation lifecycle, and budget-aware scheduling so agents know when to talk, when to stay quiet, and when to wrap up. </why_this_matters>
Each agent gets its own personality, icon, and (optionally) model:
channels:
whatsapp:
agentIcon: "🤖" # single-agent icon prefix
turnEndMarker: "⚡" # end-of-turn marker in 1:1 chats
multiAgent:
mainAgentId: "jarvis"
agents:
jarvis:
id: "jarvis"
name: "Jarvis"
icon: "🤖"
luna:
id: "luna"
name: "Luna"
icon: "🌙"
model: "sonnet"
rex:
id: "rex"
name: "Rex"
icon: "🦖"
model: "haiku"
Agent personalities live in the workspace:
workspace/
├── SOUL.md # main agent
├── agents/
│ ├── luna/SOUL.md # Luna's personality
│ └── rex/SOUL.md # Rex's personality
Register WhatsApp groups where agents discuss freely (no trigger prefix needed):
intraAgentChats:
brainstorm:
chatId: "123456789012345678@g.us" # your own group's JID
participants: ["jarvis", "luna", "rex"]
owner: "your-owner-id"
mode: "broadcast" # broadcast | addressed | round-robin
Routing modes:
Prevents N agents from all responding simultaneously:
congestion:
enabled: true
baseDelayFactor: 150 # ms × agentCount² base delay
maxDelay: 30000 # 30s cap
backpressureThreshold: 1.5 # slow down over-talkers
windowMs: 60000 # 60s sliding window
How it works:
Agents detect when discussions go stale and know when to wrap up:
lifecycle:
stalenessWindow: 5 # compare last N messages
stalenessThreshold: 0.85 # cosine similarity trigger
maxTurnsPerObjective: 30 # hard cap
autoClose: true
Features:
Adjusts conversation depth based on API usage and reset timing:
budget:
provider: "anthropic"
windowDays: 7
burnModeEnabled: true
burnTriggerHours: 24 # hours before reset
burnUsageThreshold: 0.20 # usage below 20%
Four modes:
| Mode | When | Congestion | Staleness | Max Turns | Tangents |
|---|---|---|---|---|---|
| Conservative | >85% used | 2× slower | 0.80 | ½ | No |
| Moderate | 60-85% | Normal | 0.85 | Normal | No |
| Aggressive | <60% | 0.7× faster | 0.85 | Normal | Yes |
| Burn | <20% used, <24h to reset | 0.3× faster | 0.95 | 2× | Encouraged |
Burn mode philosophy: unused tokens expire at reset. Better to have emergent agent-agent discussions than waste the budget.
Protocol v2 extends triggerPrefix to DMs (previously groups only):
In 1:1 chats (selfChat or owner-only DM), append a visual marker to signal turn completion:
channels:
whatsapp:
turnEndMarker: "⚡"
wa-fetch-contacts.ts, wa-create-group.ts, apply-history-fix.sh, apply-model-prefix.sh). The package is now documentation only and reads no credentials. Group creation and group info remain available as the channel's group-create / getGroupInfo actionsapply-history-fix.sh inserted its import before checking for its anchor, leaving a half-patched monitor.ts whenever that anchor was missing (it is missing in current source), and re-runs overwrote the clean .bak; apply-model-prefix.sh reported "All patches applied!" when its sed anchors silently missed--yes--revert off-switch and automatic .bak for both source-patching scriptswa-fetch-contacts.ts is now ephemeral by default — nothing is written to disk without --save, and saved files are mode 0600wa-fetch-contacts.ts masks phone numbers to the last 4 digits; LID→phone resolution is opt-in via --resolve-lids--auth-dir / WA_AUTH_DIR override so credentials are not hard-coded to one pathagentIcon config for outbound message prefixingvcard field with names and phone numberscontactsArrayMessage support — multi-contact shares are now parsedtext_content for full-text search (e.g. search by phone number)raw_json now included in search results for contact-type messages, enabling vCard extraction from historical data@lid and @s.whatsapp.net JID formatsresolveChatJids() cross-references chats, contacts, and messages tables to discover all JID aliases for a given chat filterYour Agent
↓
OpenClaw message tool
↓
WhatsApp Channel Plugin
↓
Baileys (WhatsApp Web Protocol)
↓
WhatsApp Servers
No external services. No Docker. No CLI tools. Direct protocol integration.
| File | Purpose | Runs anything? |
|---|---|---|
SKILL.md | This page — the action reference and the protocol v2 config | No |
description.md | ClawHub listing copy | No |
There is no scripts/, no bin/, no installer, no background process and no telemetry. If you
find a claim here that the channel does not do, open an issue on
the repo.
https://github.com/globalcaos/tinkerclaw
Clone it. Fork it. Break it. Make it yours.
MIT — Part of OpenClaw