Skip to content

Who the bot answers

Every incoming message passes these checks before the agent sees it. Nothing gets through by default.

yes yes no Direct message Sender allowed?dmPolicy, allowFrom Group message Group enabled andsender allowed?groupPolicy, groups @mentioned?requireMention Agent replies Kept as context

A message that fails a check is ignored and stays unread.

Direct messages

dmPolicyWho gets a reply
disabled (default)Nobody
allowlistSenders listed in allowFrom
openAnyone who messages you

Groups

groupPolicyWho gets a reply in groups
disabled (default)Nobody
allowlistSenders in groupAllowFrom, or in allowFrom if that’s empty
openAny group member

In groups, the agent only replies when someone @mentions you. Messages without a mention are kept, and the next mention includes them as context.

Override any of this per group in groups, keyed by group ID, with "*" for all groups:

"agent-wechat": {
"dmPolicy": "allowlist",
"allowFrom": ["wxid_alice", "wxid_bob"],
"groupPolicy": "allowlist",
"groups": {
"*": { "enabled": false },
"family@chatroom": { "enabled": true, "requireMention": false },
"project@chatroom": { "enabled": true, "allowFrom": ["wxid_carol"] }
}
}

Here the agent answers Alice and Bob directly. In the family group it answers Alice and Bob without needing a mention. In the project group it answers only Carol, when she mentions you. Every other group is ignored.