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 group members, update group details, and create notes within groups. This is useful for automating group management tasks on Zalo, such as setting up new chat groups with specific members or updating group metadata without manual intervention.

A practical example: Automatically creating a new Zalo group with a specified list of user IDs when onboarding a new project team, ensuring all relevant members are added immediately.

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 member IDs to add to the group upon creation.

Output

The output JSON contains the response from the Zalo API after attempting to create a group. It typically includes details about the newly created group such as its ID, name, and members.

Example output structure:

{
  "id": "string",          // Group identifier assigned by Zalo
  "name": "string",        // Name of the created group
  "members": ["string"]    // Array of user IDs included in the group
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node depends on the external zca-js library to interact with Zalo services.
  • Proper configuration of credentials including cookie, IMEI, and user agent is necessary for successful API calls.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API authentication token and related credentials (cookie, IMEI, user agent) are valid and 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: If the API returns errors related to permissions or rate limits, check your Zalo API account status and ensure it has sufficient privileges to create groups.
  • Network Issues: Connectivity problems can cause failures; verify network access to Zalo's API endpoints.

Links and References

Discussion