Actions21
- Message Actions
- Group Actions
- Chat Actions
- Contact Actions
Overview
This node integrates with the Green API service to manage WhatsApp groups and messages. Specifically, for the Group - Set Group Admin operation, it allows you to assign admin rights to a participant within a WhatsApp group. This is useful in scenarios where you want to delegate group management tasks such as adding/removing participants or changing group settings to trusted members.
Practical examples:
- Automatically promote a user to admin after they join a group.
- Manage group roles dynamically based on external triggers or workflows.
- Facilitate community management by assigning multiple admins programmatically.
Properties
| Name | Meaning |
|---|---|
| Group ID | The unique identifier of the WhatsApp group where the admin rights will be assigned. Example format: 972501234567-1587570015@g.us. |
| Participant Chat ID | The chat ID of the participant to be promoted to admin. Example format: 972501234567@c.us. |
Output
The node outputs a JSON array containing the response from the Green API for the set group admin request. The structure typically includes confirmation details about the operation's success or failure. The exact fields depend on the Green API response but generally confirm that the participant was successfully made an admin.
No binary data output is involved in this operation.
Dependencies
- Requires an active Green API account with valid credentials (instance ID and API token).
- The node uses HTTP POST requests to the Green API endpoints.
- Proper configuration of the Green API credentials in n8n is necessary.
- Network access to
https://api.green-api.commust be available.
Troubleshooting
Common issues:
- Invalid or incorrectly formatted Group ID or Participant Chat ID can cause failures.
- Insufficient permissions or invalid API credentials will result in authentication errors.
- Network connectivity problems may prevent reaching the Green API endpoint.
Error messages:
"Failed to set group admin: <error message>"indicates the API call failed. Check the error message for specifics.- Errors related to reading files or missing parameters do not apply to this operation but may appear if other operations are used in the same node.
Resolution tips:
- Verify the Group ID and Participant Chat ID formats.
- Ensure the API credentials are correctly configured and active.
- Confirm the participant is already part of the group before setting admin rights.
- Check network connectivity and firewall settings.
Links and References
- Green API Documentation – Official API docs for detailed endpoint information.
- WhatsApp Group Management Concepts – Understanding WhatsApp group roles and permissions (external resource).