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 specific operation "Lấy Tất Cả Nhóm" (Get All Groups) retrieves a list of all Zalo groups associated with the authenticated user.

Common scenarios:

  • Automating group management tasks in Zalo for marketing or community engagement.
  • Synchronizing group data from Zalo into other systems.
  • Bulk processing or reporting on all groups a user is part of.

Practical example:

  • A social media manager wants to fetch all their Zalo groups to analyze member counts and activity levels automatically.

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, the property "Giới Hạn" (limit) controls how many groups are fetched at most.


Output

The output JSON contains a field named response which holds the list of all groups retrieved from Zalo.

Example structure:

{
  "response": [
    {
      "groupId": "string",
      "groupName": "string",
      "membersCount": 123,
      "...": "other group details"
    },
    ...
  ]
}
  • Each item in the response array represents a single Zalo group with its details.
  • The node does not output binary data.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses the zca-js library 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 error: This occurs if the node cannot establish a connection to the Zalo API due to invalid or missing credentials. Ensure that the API key credential is correctly configured and valid.
  • Empty or incomplete response: Verify that the authentication cookies and device identifiers are correct and have not expired.
  • Rate limits or API errors: If the Zalo API returns errors, check the API usage limits and ensure compliance with Zalo's policies.
  • Incorrect limit value: Providing a non-numeric or negative value for "Giới Hạn" may cause unexpected behavior; use positive integers.

Links and References

Discussion