Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

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 and deputies, changing group details, and fetching all groups.

The "Lấy Tất Cả Nhóm" (Get All Groups) operation specifically retrieves a list of all Zalo groups associated with the authenticated user. This is useful for scenarios where you want to display or process all groups without specifying each group individually.

Practical example:

  • Automatically syncing all your Zalo groups into a CRM system.
  • Generating reports on all groups you manage in Zalo.
  • 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. (Number input; default is 50)

Note: Although the "Giới Hạn" property is defined, the bundled code for the "getAllGroups" operation does not explicitly use this limit parameter when calling the API. It simply calls getAllGroups() without arguments.

Output

The output JSON structure for the "Lấy Tất Cả Nhóm" operation contains:

{
  "response": [ /* array of group objects returned by the Zalo API */ ]
}
  • response: An array containing all the groups retrieved from the Zalo API. Each element represents a group with its details as provided by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API. This includes cookie, IMEI, and user agent information used internally for login.
  • Uses the external zca-js library to interact with the Zalo API.
  • Requires proper configuration of the Zalo API credentials within n8n.

Troubleshooting

  • No API instance found error:
    This occurs if the node cannot establish a connection to the Zalo API using the provided credentials. Ensure that the API key credential is valid and contains correct cookie, IMEI, and user agent values.

  • Empty or incomplete group list:
    If the response is empty or missing expected groups, verify that the authenticated user has access to those groups and that the API credentials have sufficient permissions.

  • Limit property ignored:
    The "Giới Hạn" (limit) property is defined but not applied in the current implementation of the "getAllGroups" operation. Users expecting to limit the number of groups returned may need to handle filtering downstream.

  • API rate limits or connectivity issues:
    Network problems or API rate limiting can cause errors. Check network connectivity and API usage quotas.

Links and References

Discussion