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 removing users from groups.

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

Practical examples:

  • Automatically update a group's name based on external triggers or workflows.
  • Rename groups to reflect changes in project phases or team structures.
  • Maintain consistent naming conventions across multiple Zalo groups via automation.

Properties

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

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: The exact fields depend on the Zalo API's response for the rename operation.)

No binary data is output by this operation.

Dependencies

  • Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • The node uses the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential within n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an incorrect or non-existent group ID will result in errors from the API.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with the Zalo API. Verify your API credentials and ensure they are correctly configured.
    • Errors related to invalid group IDs or permissions will come directly from the Zalo API and should be checked against the group existence and your account's access rights.
  • To handle errors gracefully, enable the "Continue On Fail" option in the node settings to allow processing of subsequent items even if one fails.

Links and References

Discussion