Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API to perform various group-related operations. Specifically, the "Thêm Thành Viên Vào Nhóm" (Add User(s) to Group) operation allows users to add one or multiple members to an existing Zalo group by specifying the group ID and user IDs.

Common scenarios where this node is beneficial include:

  • Automating group membership management in Zalo for community managers or businesses.
  • Adding new members to a group based on external triggers or workflows.
  • Integrating Zalo group management into broader automation pipelines.

Practical example:

  • Automatically add newly registered customers to a Zalo support group by passing their user IDs and the target group ID.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group to which 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) 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 or failure and any relevant data returned by the API.

Example output structure:

{
  // Response object from the Zalo API indicating the result of adding users to the group
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API authentication token (cookie), device IMEI, and user agent string.
  • The node uses the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials may cause authentication failures.
    • Incorrect group ID or user IDs can lead to errors or no changes in group membership.
    • Network connectivity problems might prevent successful API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the Zalo API credentials are correctly configured and valid.
    • Errors related to invalid parameters usually indicate incorrect group ID or malformed user ID lists. Ensure IDs are correct and user IDs are comma-separated without extra spaces.
    • If the node fails but "Continue On Fail" is enabled, error details will be included in the output JSON for each failed item.

Links and References

Discussion