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 deputies, changing group details, and more. The "Thêm Phó Nhóm" (Add Group Deputy) operation specifically adds a user as a deputy (co-admin) to an existing Zalo group.

Practical scenarios include:

  • Automating group administration tasks in Zalo.
  • Adding trusted users as deputies to help manage group activities.
  • Integrating Zalo group management into broader workflows for community or team coordination.

Example: Automatically add a user as a deputy to a group when certain conditions are met, such as reaching a membership threshold or upon request approval.

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 to be added as a deputy in 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 related to adding the deputy.

Example output JSON:

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

No binary data is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including cookie, device IMEI, and user agent information.
  • The node uses an external Zalo API client library (zca-js) to perform API calls.
  • Credentials must be configured properly in n8n to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group or user IDs can lead to errors or no effect.
    • Network or API downtime might cause request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." — Indicates missing or invalid credentials; verify and update your API key and related info.
    • Errors returned from the Zalo API (e.g., user not found, permission denied) will be included in the error message; check that the user and group IDs are correct and that the authenticated account has sufficient permissions.
  • To continue processing other items even if one fails, enable the "Continue On Fail" option in the node settings.

Links and References

Discussion