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 example:
If you have a Zalo group for a project team and want to update its name to reflect a new project phase, you can use this operation to change the group name programmatically within your workflow.

Properties

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

Output

The output JSON contains the response from the Zalo API after attempting to change the group name. It typically includes details confirming the success of the operation or any relevant data returned by the API.

Example output structure:

{
  "someApiResponseField": "value",
  ...
}

(Note: The exact fields depend on the Zalo API's response to the rename request.)

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 credentials in n8n is necessary for authentication.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing an incorrect group ID will result in errors or no changes.
    • Network connectivity problems can prevent API calls from succeeding.
  • 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 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, it will return error details in the output JSON for each failed item.

Links and References

Discussion