Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

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

Practical scenarios include:

  • Moderators or group admins automating the removal of inactive or unwanted members.
  • Integrations that maintain group membership dynamically based on external criteria.
  • Batch processing to clean up group membership lists efficiently.

Example: Removing several users from a group after detecting inactivity or policy violations by specifying their user IDs separated by commas.

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 output structure:

{
  "response": {
    // API-specific details about the removal result
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Zalo API.
  • The node depends on the 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

  • Common issues:

    • Invalid or expired credentials leading to authentication failures.
    • Incorrect group ID or user IDs causing the API to reject the request.
    • Network connectivity problems preventing communication with the Zalo API.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Resolution: Verify that the API key credential is correctly configured and valid.
    • Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
    • If the node fails silently or returns empty responses, ensure that the user IDs exist in the group and that the authenticated user has permission to remove members.

Links and References

Discussion