Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node allows you to remove one or more users from a Zalo group by specifying the group ID and the user IDs. It is useful in scenarios where you need to automate group management tasks, such as moderating group membership or cleaning up inactive users. For example, you could use this node in an n8n workflow to automatically remove users who violate group rules or to periodically prune members based on certain criteria.

Properties

Name Type Meaning
ID Nhóm String 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) String The user ID(s) to remove from the group. Multiple IDs should be separated by commas.

Output

The output is a JSON object containing the response from the Zalo API after attempting to remove the specified users from the group. The structure of the output depends on the underlying API/library, but typically includes information about the success or failure of the operation for each user.

Example output:

{
  "status": "success",
  "removedUserIds": ["user1", "user2"],
  "groupId": "123456789"
}

Note: The actual fields may vary depending on the Zalo API's response.

Dependencies

  • External Service: Requires access to the Zalo platform via the zca-js library.
  • Credentials: You must provide valid Zalo credentials (zaloApi) including cookie, IMEI, and user agent.
  • n8n Configuration: Ensure that the Zalo credential is set up in your n8n instance.

Troubleshooting

  • Invalid Credentials:
    Error: No API instance found. Please make sure to provide valid credentials.
    Solution: Double-check that your Zalo credentials (cookie, IMEI, user agent) are correct and active.

  • Malformed User IDs:
    If user IDs are not separated by commas or contain invalid characters, the operation may fail.
    Solution: Ensure user IDs are provided as a comma-separated string with no extra spaces.

  • API Limitations or Errors:
    If the Zalo API returns an error (e.g., user not found, insufficient permissions), it will be included in the output under the error field if "Continue On Fail" is enabled.

Links and References

Discussion