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 resource and Get Group Data operation, it retrieves detailed information about a specified WhatsApp group by its Group ID. This is useful when you want to fetch metadata or current state of a group such as participants, admins, or other group details.
Practical scenarios include:
- Monitoring group membership or settings before performing further actions.
- Displaying group info in dashboards or reports.
- Automating workflows that depend on group attributes.
Properties
| Name | Meaning |
|---|---|
| Group ID | The unique identifier of the WhatsApp group to retrieve data from. Example format: 972501234567-1587570015@g.us |
Output
The output is a JSON array where each item contains the response from the Green API's getGroupData endpoint. This typically includes comprehensive information about the group such as:
- Group name
- List of participants
- Admins
- Group creation date
- Other metadata related to the group
No binary data is returned for 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.
- Properly configured credentials must be set up in n8n to authenticate API calls.
Troubleshooting
Common issues:
- Invalid or missing Group ID will cause the API call to fail.
- Incorrect or expired API credentials will result in authentication errors.
- Network connectivity problems can prevent successful API requests.
Error messages:
"Failed to get group data: <error message>"indicates the API request failed. Check the Group ID validity and credentials.- Errors including
"Data sent: {...}"show the payload sent to the API, useful for debugging malformed inputs.
Resolutions:
- Verify the Group ID format matches WhatsApp group IDs.
- Ensure API credentials are correct and have necessary permissions.
- Confirm network access to the Green API service.
Links and References
- Green API Documentation – Official API docs for reference on group-related endpoints.
- WhatsApp Group ID format explanation: Typically phone number plus group-specific suffix ending with
@g.us.