Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing users to perform various group-related operations such as creating groups, retrieving group info, managing members, and updating group details. The "Add User To Group" operation lets you add one or multiple users to an existing Zalo group by specifying the group ID and user IDs.

Practical scenarios include:

  • Automating the addition of new members to a team or community group on Zalo.
  • Managing membership dynamically based on external triggers or workflows.
  • Integrating Zalo group management into broader communication or CRM automation.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group where users 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) (userIds) A comma-separated list of user IDs to be added to the specified 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 success or failure of the operation and any relevant data returned by the API.

Example structure:

{
  "json": {
    // API response object indicating the result of adding users to the group
  },
  "pairedItem": {
    "item": 0
  }
}

No binary data is output by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node depends on the zca-js library for interacting with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials can cause authentication failures.
    • Incorrect group ID or user IDs may lead to errors or no changes.
    • Network or API rate limits might cause request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." — Indicates missing or invalid authentication; verify your Zalo API credentials.
    • Errors related to user or group IDs usually mean the provided IDs are incorrect or the authenticated user lacks permission; double-check the IDs and permissions.
  • Resolution tips:

    • Ensure that the Zalo API credentials are up-to-date and correctly configured.
    • Validate all input parameters before running the node.
    • Use the "Continue On Fail" option to handle errors gracefully in batch operations.

Links and References

Discussion