Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Group → List
AI-generatedOverview
This node enables interaction with WhatsApp through the Wappfy API, specifically focusing on managing WhatsApp groups when using the "Group" resource and the "List" operation. It allows users to retrieve a paginated list of WhatsApp groups associated with their session, supporting sorting and offsetting for efficient data handling.
Common scenarios where this node is beneficial include:
- Retrieving an overview of all WhatsApp groups managed by a user or organization.
- Integrating group data into CRM or marketing automation workflows.
- Monitoring group activity or membership by periodically listing groups.
- Building dashboards that display WhatsApp group information.
Practical example:
- A marketing team wants to fetch all WhatsApp groups they manage to analyze engagement or send targeted messages. They can use this node to list groups with pagination and sort them by subject in descending order.
Properties
| Name | Meaning |
|---|---|
| Limit | Number of groups to return in one request (pagination size). Default is 10. |
| Offset | Number of groups to skip before starting to collect the result set (pagination offset). Default is 0. |
| Sort Order | Order in which groups are sorted by their subject. Options: Ascending, Descending. Default is Descending. |
Output
The output is a JSON array where each item represents a WhatsApp group object retrieved from the Wappfy API. Each group object typically contains details such as group ID, subject (name), participants, description, and other metadata related to the group.
Example structure of one group item in json output:
{
"id": "group-id-string",
"subject": "Group Name",
"participants": [
{"id": "participant1@c.us"},
{"id": "participant2@c.us"}
],
"description": "Group description text",
...
}
No binary data is output by this operation.
Dependencies
- Requires a valid Wappfy API credential with an API key and instance name configured in n8n.
- The node makes HTTP requests to the Wappfy API base URL provided by the credentials.
- Proper network access to the Wappfy API endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing API key or instance name will cause authentication failures.
- Network connectivity problems to the Wappfy API endpoint.
- Requesting too large a limit may cause timeouts or rate limiting.
- Incorrect offset values might lead to empty results if out of range.
Error messages:
- Authentication errors usually indicate invalid API credentials; verify and update credentials.
- HTTP 4xx or 5xx errors from the API suggest issues like invalid parameters or server problems; check parameter correctness and retry later.
- If the node returns an error about "Cannot read property," it might be due to unexpected API response format; ensure the API version matches the node expectations.
Resolution tips:
- Double-check API credentials and permissions.
- Use reasonable limits and offsets.
- Enable "Continue On Fail" in the node settings to handle partial failures gracefully.
Links and References
- Wappfy API Documentation (general reference for API endpoints)
- WhatsApp Business API Overview (for understanding WhatsApp group concepts)
- n8n Documentation on HTTP Request Node (for custom API calls)
This summary covers the logic and usage of the "Group" resource with the "List" operation in the Wappfy node based on static code analysis.