Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. Specifically, the "Thêm Phó Nhóm" (Add Group Deputy) operation allows you to add a user as a deputy (co-admin) to a specified Zalo group. This is useful for automating group management tasks such as delegating administrative roles without manual intervention in the Zalo app.

Practical examples:

  • Automatically assign trusted users as deputies when creating or updating groups.
  • Delegate group moderation responsibilities dynamically based on external triggers or workflows.

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 to be added as a deputy in the group.

Output

The output JSON contains:

  • status: A string indicating the result of the operation, e.g., "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 output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session with Zalo.
  • The zca-js library 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:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo. Verify that the API key credential is correctly configured and valid.
    • Errors returned from the Zalo API are passed through; check the error message for details such as invalid IDs or permission issues.
  • To resolve errors, ensure all required input properties are correct, credentials are up to date, and the Zalo API service is reachable.

Links and References

Discussion