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 "Thay Đổi Chủ Nhóm" (Change Group Owner) operation changes the owner of a specified Zalo group to a new user.

Typical use cases include:

  • Transferring group ownership when the current owner leaves or delegates control.
  • Automating group management tasks in workflows involving Zalo groups.
  • Integrating Zalo group administration into broader automation pipelines.

Example: Automatically changing the owner of a Zalo group after detecting inactivity from the current owner.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group whose ownership is to be changed.
ID Chủ Nhóm Mới The user ID of the person who will become the new owner of the group.

Output

The output JSON contains:

  • status: A string indicating success, typically "Thành công" ("Success").
  • response: The raw response from the Zalo API related to the ownership change operation.

Example output JSON structure:

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

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for Zalo with valid authentication cookies, device IMEI, and user agent information.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured properly in n8n before execution.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failure.
    • Incorrect group ID or user ID parameters can lead to API errors.
    • Network connectivity problems might prevent communication with the Zalo API.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node failed to authenticate with Zalo. Verify that the API key credential is correctly set up with valid cookie, IMEI, and user agent values.
    • Errors related to invalid parameters usually indicate missing or malformed input properties. Double-check the group ID and new owner user ID fields.
    • If the node throws errors about processing options or poll data, ensure inputs conform to expected formats.
  • Resolution tips:

    • Re-authenticate or update the Zalo API credentials.
    • Validate all input parameters before running the node.
    • Check network access and firewall settings if connection issues persist.

Links and References

Discussion