Actions9
Overview
This node interacts with groups in the Zalo platform, specifically allowing users to retrieve all groups associated with their account. It is useful for scenarios where you need to list or manage multiple groups programmatically, such as syncing group data, auditing group memberships, or automating group-related workflows.
For example, a marketing team could use this node to fetch all their Zalo groups to analyze member engagement or to automate sending messages to each group.
Properties
| Name | Meaning |
|---|---|
| Giới Hạn | The maximum number of groups to retrieve (limit). |
Output
The node outputs an array of JSON objects, each representing a group retrieved from the Zalo platform. Each item contains details about a group, such as its members, admins, current members, update members, and total member count.
The exact structure includes fields like:
members: List of group members (limited by the "Giới Hạn" property).admins: List of group administrators.currentMems: Current members in the group.updateMems: Members who have updated recently.totalMember: Total number of members in the group.
No binary data output is involved.
Dependencies
- Requires an API authentication token credential to connect to the Zalo platform.
- Uses an internal client class to handle API requests, which requires valid session cookies, IMEI, and user agent strings.
- The node expects these credentials and session details to be properly configured and available at runtime.
Troubleshooting
Common issues:
- Invalid or expired authentication tokens or cookies may cause failures in fetching groups.
- Exceeding the allowed limit or quota set by the Zalo API might result in errors.
- Network connectivity problems can interrupt API calls.
Error messages:
- If the node cannot establish a connection or authenticate, it throws an error indicating failure to get the client instance.
- Errors during individual group retrieval are caught and returned as part of the output JSON under an
errorfield if the node is set to continue on failure; otherwise, they stop execution.
Resolutions:
- Ensure that the API key or authentication token is valid and refreshed if necessary.
- Verify network connectivity.
- Adjust the "Giới Hạn" property to a reasonable number within API limits.
Links and References
- Zalo Official API Documentation (for understanding API capabilities and limits)
- n8n documentation on Creating Custom Nodes