Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. Specifically, the "Thêm Thành Viên Vào Nhóm" (Add User to Group) operation allows users to add one or multiple members to an existing Zalo group. This is useful for automating group management tasks such as onboarding new members into team chats, community groups, or project channels on Zalo.

Practical examples:

  • Automatically adding new employees to a company’s internal communication group.
  • Adding event participants to a dedicated discussion group after registration.
  • Managing membership of interest-based groups by syncing user lists from external databases.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group where members will be added.
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) A comma-separated list of user IDs representing the members to add to the group.

Output

The output JSON contains the response from the Zalo API after attempting to add the specified users to the group. It typically includes details about the operation's success and any relevant metadata returned by the API.

Example structure:

{
  // API response data confirming added users or error details
}

No binary data output is produced by this operation.

Dependencies

  • Requires a valid Zalo API credential with appropriate permissions to manage groups.
  • The node uses stored authentication data including cookies, device IMEI, and user agent strings to authenticate API requests.
  • The zca-js library is used internally to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group ID or user IDs can result in errors or no changes.
    • Network connectivity problems can interrupt API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the API key/credential is correctly configured and has not expired.
    • Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
    • If the node fails but "Continue On Fail" is enabled, error details will appear in the output JSON under the error field.

Links and References

Discussion