Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. It allows users to create new groups, retrieve group information, manage members and deputies, update group details like name and avatar, and handle group notes. This is useful for automating group management tasks in Zalo, such as setting up new groups with specific members, updating group settings, or extracting member lists for further processing.

A practical example: Automatically creating a new Zalo group with a predefined list of user IDs when onboarding a new project team, or fetching all groups and their members to synchronize with an external CRM system.

Properties

Name Meaning
Tên Nhóm (groupName) The name of the new group to be created.
Danh Sách ID Thành Viên (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) A comma-separated list of user IDs to be added as members of the new group.

Output

The output JSON structure depends on the operation but for the "Tạo Nhóm" (createGroup) operation specifically:

  • json contains the response from the Zalo API after creating the group.
  • The response typically includes details about the newly created group such as its ID, name, and member list.

The node does not output binary data.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node uses an external Zalo API client library (zca-js) to perform API calls.
  • Credentials must be configured properly in n8n to allow authenticated requests to Zalo.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided Zalo API credentials are correct and have not expired.
  • Malformed User IDs: Ensure the user IDs string is correctly formatted as a comma-separated list without extra spaces or invalid characters.
  • API Rate Limits or Permissions: Some operations may fail if the authenticated user lacks permissions or if API rate limits are exceeded.
  • Error Handling: When continueOnFail is enabled, errors for individual items will be returned in the output JSON under an error field instead of stopping execution.

Links and References

Discussion