Actions10
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 more. The specific operation "Lấy Tất Cả Nhóm" (Get All Groups) fetches all groups associated with the authenticated user.
Practical scenarios include:
- Automating group management tasks in Zalo for marketing or community engagement.
- Synchronizing group data with other systems.
- Bulk retrieval of group lists for reporting or analysis.
Properties
| Name | Meaning |
|---|---|
| Giới Hạn | Maximum number of groups to retrieve (number). Default is 50. |
(Note: For the "Lấy Tất Cả Nhóm" operation, only the "Giới Hạn" property is relevant, controlling how many groups are fetched.)
Output
The output JSON contains a response field holding the list of groups retrieved from Zalo. The structure is:
{
"response": [ /* array of group objects */ ]
}
Each group object includes details as provided by the Zalo API about each group.
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - Node configuration must include these credentials to authenticate API requests.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found," it indicates missing or invalid credentials. Ensure the API key credential is correctly configured with valid cookie, IMEI, and user agent values.
- API Rate Limits or Network Issues: Failures in fetching groups may be due to network problems or API rate limits. Check connectivity and retry later.
- Empty Response: If no groups are returned, verify that the authenticated user actually belongs to any groups.
- Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for the Zalo API client library)