Mtai Zalo Group icon

Mtai 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 specific operation "Thêm Phó Nhóm" (Add Group Deputy) allows you to add a user as a deputy (co-admin) of a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.

Practical example:
You have a Zalo group for your project team and want to assign a trusted member as a deputy to help moderate and manage the group. Using this node operation, you provide the group ID and the user ID of the member to promote them to deputy status.


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 in 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": { /* API response object */ }
}

No binary data is produced by this operation.


Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, device IMEI, and user agent strings to establish a session with Zalo.
  • The external library zca-js is used internally to interact with the Zalo API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group ID or user ID can lead to errors or no effect.
    • Network connectivity problems can prevent API calls from succeeding.
  • Error messages:

    • If the API instance cannot be created due to invalid credentials, the error "No API instance found. Please make sure to provide valid credentials." will be thrown.
    • Errors returned from the Zalo API (e.g., user not found, insufficient permissions) will be included in the output if "Continue On Fail" is enabled; otherwise, they will stop execution.
  • Resolutions:

    • Verify that the API credentials are correct and up to date.
    • Double-check the group and user IDs for accuracy.
    • Ensure network access to the Zalo API endpoints.

Links and References

Discussion