Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing users to perform various group-related operations via the Zalo API. The "Add Group Deputy" operation lets you assign a user as a deputy (vice-leader) of a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.

Practical scenarios include:

  • Assigning moderators or deputies in community or work groups on Zalo.
  • Automating group role assignments based on external triggers or workflows.
  • Managing group leadership dynamically from other systems integrated with n8n.

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 success of the operation, typically "Thành công" (meaning "Success").
  • response: The raw response object returned by the Zalo API after adding the deputy user.

Example output structure:

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

No binary data is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
  • The underlying implementation depends on the zca-js library for interacting with Zalo's API.

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," verify that the provided API credentials are valid and contain the necessary authentication tokens.
  • Missing Required Parameters: Ensure both "ID Nhóm" (group ID) and "ID Người Dùng" (user ID) are provided and correctly formatted.
  • API Errors: If the Zalo API returns errors (e.g., user not found, insufficient permissions), these will be surfaced in the node's error messages. Check that the user ID exists and has the right to be assigned as deputy.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.

Links and References

Discussion