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 their user IDs.

Practical scenarios include:

  • Moderating group membership by removing inactive or unwanted members.
  • Automating group management workflows where users need to be dynamically removed based on certain conditions.
  • Maintaining group hygiene in community or team chats on Zalo.

Example: Removing several users from a project discussion group after the project ends to keep the group relevant.

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 (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 platform.
  • The node uses stored cookies, device IMEI, and user agent strings from credentials or input data to establish a session with the Zalo API.
  • The external library zca-js is used internally to interact with the Zalo API.

Troubleshooting

  • Invalid Credentials: If the API instance cannot be created, ensure that valid Zalo API credentials (including cookie, IMEI, and user agent) are provided.
  • User IDs Format: User IDs must be correctly formatted and separated by commas if multiple. Incorrect formatting may cause errors or no users being removed.
  • Group ID Validity: Ensure the group ID exists and the authenticated user has permission to modify the group.
  • API Errors: Network issues or API rate limits can cause failures. Check connectivity and retry later if needed.
  • Error Handling: If the node is set to continue on failure, errors for individual items will be returned in the output JSON under an error field.

Links and References

Discussion