Add people to a group
add_group_participantsAdds participants to a WhatsApp group, reporting success or failure for each. If a contact cannot be added directly, an invite code is returned.
Instructions
Add participants to a group the account administers. Each result says whether it worked; someone who cannot be added directly comes back with an invite code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"groupId": "<groupId>",
"contactIds": "<contactIds>"
},
"name": "add_group_participants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | The group id (`...@g.us`), from list_groups. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| contactIds | Yes | Contact ids: E.164 with + (`+584241112233`) or `lid:<digits>`. |