From 188893f31980d04b1ebc4c282b0bcd0d7759a8e6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 20 Jan 2026 15:00:11 +0000 Subject: [PATCH] docs: add WhatsApp family binding example --- docs/concepts/multi-agent.md | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/docs/concepts/multi-agent.md b/docs/concepts/multi-agent.md index e08552386..572c1c1f2 100644 --- a/docs/concepts/multi-agent.md +++ b/docs/concepts/multi-agent.md @@ -256,6 +256,52 @@ Keep WhatsApp on the fast agent, but route one DM to Opus: Peer bindings always win, so keep them above the channel-wide rule. +## Family agent bound to a WhatsApp group + +Bind a dedicated family agent to a single WhatsApp group, with mention gating +and a tighter tool policy: + +```json5 +{ + agents: { + list: [ + { + id: "family", + name: "Family", + workspace: "~/clawd-family", + identity: { name: "Family Bot" }, + groupChat: { + mentionPatterns: ["@family", "@familybot", "@Family Bot"] + }, + sandbox: { + mode: "all", + scope: "agent" + }, + tools: { + allow: ["exec", "read", "sessions_list", "sessions_history", "sessions_send", "sessions_spawn", "session_status"], + deny: ["write", "edit", "apply_patch", "browser", "canvas", "nodes", "cron"] + } + } + ] + }, + bindings: [ + { + agentId: "family", + match: { + channel: "whatsapp", + peer: { kind: "group", id: "120363999999999999@g.us" } + } + } + ] +} +``` + +Notes: +- Tool allow/deny lists are **tools**, not skills. If a skill needs to run a + binary, ensure `exec` is allowed and the binary exists in the sandbox. +- For stricter gating, set `agents.list[].groupChat.mentionPatterns` and keep + group allowlists enabled for the channel. + ## Per-Agent Sandbox and Tool Configuration Starting with v2026.1.6, each agent can have its own sandbox and tool restrictions: