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 management tasks in Zalo for community managers or businesses.
  • Adding trusted users as deputies to help moderate or manage group activities.
  • Integrating Zalo group management into broader workflows, e.g., syncing group roles with other systems.

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 added as a deputy to the specified group.

Output

The output JSON contains:

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

Example output structure:

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

No binary data is output by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • 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

  • Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
  • User or Group Not Found: Errors may occur if the provided group ID or user ID does not exist or the authenticated account lacks permission. Double-check IDs and permissions.
  • API Rate Limits or Network Issues: Temporary failures might happen due to network problems or API rate limits. Retrying later or checking network connectivity can help.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.

Links and References

Discussion