Manage communities
manage_communityCreate and manage WhatsApp communities, link or unlink groups, and list community groups and members.
Instructions
WhatsApp communities: a community is a group with community: true that links other groups. Create one, list its groups and members, and link or unlink groups (the account must admin both). get_group reads the community itself; send to it like a group. To create a new group inside a community, use create_group with communityId; list_groups shows each group's communityId.
Actions:
create: Create a community with the account as owner. Returns it.list_groups: The groups linked to the community, marking its default (announcement) group.list_members: Members across the community's linked groups.link_group: Link a group into the community.unlink_group: Unlink a group from the community. The group itself stays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The community name. Required for `create`. | |
| limit | No | Page size, 1 to 100. Default 20. Optional for `list_groups`, `list_members`. | |
| action | Yes | What to do. See the list of actions in the tool description. | |
| cursor | No | `nextCursor` from the previous page, to get the next one. Optional for `list_groups`, `list_members`. | |
| groupId | No | The group to link or unlink (`...@g.us`). Required for `link_group`, `unlink_group`. | |
| accountId | No | The wuapi account id of the linked number to act as (from list_accounts). Required for every action. | |
| communityId | No | The community's group id (`...@g.us`), from list_groups (`community: true`). Required for `list_groups`, `list_members`, `link_group`, `unlink_group`. | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. Optional for `create`. |