Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and modifying group details. The "Remove User From Group" operation enables users to remove one or multiple members from a specified Zalo group by providing the group ID and user IDs.

Practical scenarios include:

  • Moderators or group admins automating member management by removing inactive or unwanted users.
  • Integrations where user membership needs to be updated dynamically based on external triggers or workflows.
  • Batch removal of multiple users from a group in one operation.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group from which users will be removed.
ID Người Dùng (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) One or more user IDs to remove from the group, separated by commas if multiple users.

Output

The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. It typically includes status information about the removal operation.

Example structure:

{
  "response": { /* API response object indicating success or failure */ }
}

If the operation fails for any item and "Continue On Fail" is enabled, the output for that item will contain an error message:

{
  "error": "Error message describing what went wrong"
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
  • 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 credentials causing authentication failures.
    • Incorrect group ID or user IDs leading to errors from the Zalo API.
    • Network connectivity problems preventing API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo API. Verify your credentials and ensure they are correctly configured.
    • Errors returned from the API during user removal will be shown in the output under the error field if "Continue On Fail" is enabled. Check the error message for details.
  • Resolution tips:

    • Double-check the group ID and user IDs for correctness.
    • Refresh or re-enter API credentials if authentication errors occur.
    • Enable "Continue On Fail" to allow processing of other items even if some fail.

Links and References

Discussion