WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

👥 **GROUPS** · Add Participants

AI-generated

Summary

Add one or more participants to a specified WhatsApp group using a selected WhatGHL session for sending the request.

Inputs

  • Session Mode — Choose how the node selects the sender session: Auto, By Session Name, or Select Session from available sessions.
  • Session — When Session Mode is 'Select Session', pick the session from the available sessions for the API key.
  • Session Name — When Session Mode is 'By Session Name', specify the WAHA session name (e.g., 'Session1-0da2bdfd') to use as sender.
  • Group ID (required) — The identifier of the WhatsApp group to which participants will be added; supports formats like '1234567890@g.us' or numeric IDs.
  • Participants (required) — A list of participants to add, specified as a comma-separated string (e.g., '5491111111111@c.us,5492222222222@c.us') or as JSON array text (e.g., ["id1","id2"]).

Output shape

a single JSON response from WhatGHL API

The response contains the API result of the add group participants action. Errors are thrown or returned as JSON depending on node settings (continueOnFail). No pagination.

Examples

Example 1: Add two participants to a group using auto session mode

Set 'Group ID' to the target group, and 'Participants' to a comma-separated list of participant IDs. Leave 'Session Mode' as 'Auto'.

Links

Discussion