Actions10
Group → Lấy Tất Cả Nhóm
AI-generatedOverview
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.
- Bulk processing or reporting on all groups a user belongs to.
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 trigger workflows based on group membership.
Properties
| Name | Meaning |
|---|---|
| Giới Hạn | Maximum number of groups to fetch (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 retrieved at most.
Output
The output JSON contains a single field:
response: An array of group objects representing all the groups fetched from Zalo.
Each item in the response array corresponds to a group with its details as returned 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 an API key credential to authenticate with the Zalo API.
- Uses the
zca-jslibrary internally to interact with Zalo services. - The node expects valid authentication cookies, device IMEI, and user agent strings either from credentials or input data.
- Proper configuration of the Zalo API credential in n8n is necessary.
Troubleshooting
- No API instance found: This error indicates invalid or missing credentials. Ensure that the API key credential is correctly configured and includes valid cookie, IMEI, and user agent values.
- Empty response or no groups returned: Verify that the authenticated user actually belongs to groups and that the limit parameter is set appropriately.
- Network or API errors: Check internet connectivity and Zalo API service status.
- If the node fails but "Continue On Fail" is enabled, it will return an error message in the output JSON under the
errorfield for the respective item.
Links and References
- Zalo Official API Documentation
- n8n Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)