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 avatars or names, and listing all groups.

The "Đổi Tên Nhóm" (Change Group Name) operation specifically allows users to rename an existing Zalo group by providing the group's ID and the new desired name.

Practical examples:

  • Renaming a project discussion group after a rebranding.
  • Updating group names to reflect changes in team structure.
  • Automating group name updates based on external triggers or workflows.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group to rename.
Tên Mới The new name to assign to the specified group.

Output

The output JSON contains the response from the Zalo API after attempting to change the group name. This typically includes confirmation details about the updated group name or status information returned by the API.

Example output structure:

{
  "groupId": "string",
  "newName": "string",
  "status": "success"
}

(Note: Actual fields depend on the Zalo API response.)

No binary data is output by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
  • The node depends on the zca-js library for interfacing with the Zalo API.
  • Credentials must be configured in n8n with appropriate API keys and session information.

Troubleshooting

  • Invalid Credentials: If the node throws "No API instance found," verify that the provided Zalo API credentials are correct and active.
  • Group Not Found: Errors may occur if the specified group ID does not exist or the authenticated user lacks permission to modify it.
  • API Rate Limits: Frequent requests might trigger rate limiting; consider adding delays or retries.
  • Malformed Input: Ensure that the group ID and new name are correctly formatted strings and not empty.

To resolve errors:

  • Double-check credential validity and refresh tokens if necessary.
  • Confirm group IDs via other operations like "getGroupInfo."
  • Validate input parameters before execution.
  • Enable "Continue On Fail" to handle partial failures gracefully.

Links and References

Discussion