|
1 | 1 | --- |
2 | | -summary: "Behavior and config for WhatsApp group message handling (mentionPatterns are shared across surfaces)" |
| 2 | +summary: "WhatsApp group message handling — activation, allowlists, sessions, and context injection" |
3 | 3 | read_when: |
4 | | - - Changing group message rules or mentions |
5 | | -title: "Group messages" |
| 4 | + - Configuring WhatsApp groups specifically |
| 5 | + - Changing WhatsApp activation modes (`mention` vs `always`) |
| 6 | + - Tuning WhatsApp group session keys or pending-message context |
| 7 | +title: "WhatsApp group messages" |
| 8 | +sidebarTitle: "WhatsApp groups" |
6 | 9 | --- |
7 | 10 |
|
8 | | -Goal: let Clawd sit in WhatsApp groups, wake up only when pinged, and keep that thread separate from the personal DM session. |
| 11 | +For the cross-channel groups model (Discord, iMessage, Matrix, Microsoft Teams, Signal, Slack, Telegram, WhatsApp, Zalo), see [Groups](/channels/groups). This page covers the WhatsApp-specific behavior on top of that model: activation, group allowlists, per-group session keys, and pending-message context injection. |
| 12 | + |
| 13 | +Goal: let OpenClaw sit in WhatsApp groups, wake up only when pinged, and keep that thread separate from the personal DM session. |
9 | 14 |
|
10 | 15 | <Note> |
11 | | -`agents.list[].groupChat.mentionPatterns` is also used by Telegram, Discord, Slack, and iMessage. This doc focuses on WhatsApp-specific behavior. For multi-agent setups, set `agents.list[].groupChat.mentionPatterns` per agent, or use `messages.groupChat.mentionPatterns` as a global fallback. |
| 16 | +`agents.list[].groupChat.mentionPatterns` is also used by Telegram, Discord, Slack, and iMessage. For multi-agent setups, set it per agent, or use `messages.groupChat.mentionPatterns` as a global fallback. |
12 | 17 | </Note> |
13 | 18 |
|
14 | | -## Current implementation (2025-12-03) |
| 19 | +## Behavior |
15 | 20 |
|
16 | 21 | - Activation modes: `mention` (default) or `always`. `mention` requires a ping (real WhatsApp @-mentions via `mentionedJids`, safe regex patterns, or the bot’s E.164 anywhere in the text). `always` wakes the agent on every message but it should reply only when it can add meaningful value; otherwise it returns the exact silent token `NO_REPLY` / `no_reply`. Defaults can be set in config (`channels.whatsapp.groups`) and overridden per group via `/activation`. When `channels.whatsapp.groups` is set, it also acts as a group allowlist (include `"*"` to allow all). |
17 | 22 | - Group policy: `channels.whatsapp.groupPolicy` controls whether group messages are accepted (`open|disabled|allowlist`). `allowlist` uses `channels.whatsapp.groupAllowFrom` (fallback: explicit `channels.whatsapp.allowFrom`). Default is `allowlist` (blocked until you add senders). |
|
0 commit comments