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 example:
If you want to update the name of a Zalo group programmatically after a rebranding or event, you can use this operation to automate the renaming process without manually changing it in the Zalo app.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group to rename. This is required to specify which group will be renamed.
Tên Mới The new name to assign to the specified group. This is the updated group name that will replace the current one.

Output

The output JSON contains the response from the Zalo API after attempting to change the group name. It typically includes confirmation details about the operation's success and any relevant metadata returned by the API.

Example output structure:

{
  "response": {
    // API-specific response fields confirming the name change
  }
}

No binary data output is involved in this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node depends on the external zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential within n8n is necessary for successful authentication and API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an incorrect or non-existent group ID will result in errors or no changes.
    • Network connectivity problems can prevent API communication.
  • 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 parameters usually indicate missing or malformed input properties like group ID or new name.
    • If the node throws errors during execution but "Continue On Fail" is enabled, error details will be included in the output JSON under the error field.

Links and References

Discussion