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 where this node is useful include:
- Automating group management tasks in Zalo for marketing or community engagement.
- Synchronizing group data with other systems.
- Monitoring group membership and details programmatically.
For example, using the "Lấy Tất Cả Nhóm" operation, you can retrieve a list of all your Zalo groups to display them in a dashboard or process them further in an automation workflow.
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" (limit) property is relevant, specifying how many groups to fetch at most.
Output
The output JSON contains a single field:
response: An array of group objects representing all the groups retrieved from Zalo.
Each item in the response array corresponds to a Zalo group with its details as provided by the Zalo API.
No binary data is output by this operation.
Example output structure (simplified):
{
"response": [
{
"groupId": "12345",
"name": "Group Name",
"membersCount": 100,
...
},
...
]
}
Dependencies
- Requires valid Zalo API credentials including a cookie, IMEI, and user agent string.
- The node uses an external Zalo API client library (
zca-js) to interact with the Zalo service. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, ensure that the Zalo API credentials are correctly configured and valid.
- API Rate Limits or Restrictions: Large requests might be limited by Zalo's API; consider adjusting the "Giới Hạn" property accordingly.
- Network Issues: Connectivity problems may cause failures; verify network access to Zalo services.
- Unexpected Response Structure: If the output does not match expectations, check if the Zalo API has changed or if the credentials have sufficient permissions.