Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members, and modifying group settings. Specifically, the "Thêm Phó Nhóm" (Add Group Deputy) operation allows you to assign a user as a deputy (co-admin) of a specified Zalo group.

Practical scenarios where this node is useful include:

  • Automating group administration tasks in Zalo.
  • Adding deputies to help manage large groups.
  • Integrating Zalo group management into broader workflows for team collaboration or community management.

Example: Automatically add a trusted user as a deputy to a newly created group to share administrative responsibilities.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group where the deputy will be added.
ID Người Dùng The unique identifier of the user who will be assigned as the deputy of the group.

Output

The output JSON contains:

  • status: A string indicating the result of the operation, e.g., "Thành công" meaning "Success".
  • response: The raw response from the Zalo API after attempting to add the deputy user.

Example output JSON:

{
  "status": "Thành công",
  "response": { /* API response object */ }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored cookies, IMEI, and user agent strings from credentials or input data to establish a session.
  • The external dependency is the zca-js library which provides the Zalo API client functionality.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group ID or user ID can lead to errors from the Zalo API.
    • Network connectivity problems might prevent successful API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify that the API key credential is correctly configured and valid.
    • Errors returned from the Zalo API (e.g., user not found, insufficient permissions) will be passed through. Check the IDs and permissions.
  • To handle errors gracefully, enable the "Continue On Fail" option in the node settings to allow workflow execution to proceed even if some items fail.

Links and References

Discussion