Actions13
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members, changing group details, and fetching all groups associated with the authenticated user.
The specific operation "Lấy Tất Cả Nhóm" (Get All Groups) retrieves a list of all Zalo groups accessible to the user. This is useful for scenarios where you want to display or process all groups without specifying each group individually.
Practical examples:
- Automatically syncing all your Zalo groups into a CRM or database.
- Generating reports or analytics on all groups you manage.
- Triggering workflows based on the existence or properties of any group.
Properties
| Name | Meaning |
|---|---|
| Giới Hạn | The maximum number of groups to retrieve (limit). Default is 50. |
Note: For the "Lấy Tất Cả Nhóm" operation, only the "Giới Hạn" property is relevant, which controls how many groups are fetched at most.
Output
The output JSON contains a single field:
response: An array containing the details of all retrieved groups from Zalo.
Example structure:
{
"response": [
{
"groupId": "string",
"name": "string",
"members": [...],
"admins": [...],
// other group-specific fields
},
...
]
}
The exact fields inside each group object depend on the Zalo API response but generally include identifiers, member lists, and metadata about each group.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session with Zalo.
- The external dependency is the
zca-jslibrary used internally to interact with the Zalo API.
Troubleshooting
No API instance found / Invalid credentials:
If the node throws an error indicating no API instance was found, it usually means the provided credentials are invalid or expired. Ensure that the API key credential is correctly configured and valid.Empty or incomplete group list:
If fewer groups than expected are returned, check the "Giới Hạn" property to ensure it is set high enough to cover all groups.Network or API errors:
Temporary network issues or API rate limits may cause failures. Retrying after some time or verifying network connectivity can help.Error parsing input parameters:
Make sure the input properties are correctly set and conform to expected types.
Links and References
- Zalo Official API Documentation (general reference for group management)
- n8n Documentation for general node usage and credential setup