Zalo User Interact icon

Zalo User Interact

Gửi tin nhắn và tương tác với Zalo User

Overview

This n8n custom node provides integration with Zalo's group management features. Specifically, for the Group resource and the Remove Group Deputy operation, the node allows you to remove a deputy (phó nhóm) from a specified Zalo group by providing the relevant user and group IDs.

Common scenarios:

  • Automating group administration tasks in Zalo, such as managing deputies.
  • Integrating Zalo group management into broader workflows, e.g., onboarding/offboarding processes where deputy roles need to be updated automatically.

Practical example:
When an employee leaves a project, you can use this node in your workflow to automatically remove their deputy status from the project's Zalo group.


Properties

For the Group resource and Remove Group Deputy operation, the following input properties are supported:

Display Name Type Description
User Id String ID của Zalo User để lấy thông tin.
Group Id String ID của nhóm Zalo.

Both fields are required for this operation.


Output

The output is a JSON object indicating the result of the operation. The structure typically includes:

{
  "success": true,
  "data": { /* details about the removal, if provided by API */ }
}
  • If the operation is successful, success will be true.
  • In case of failure, the output may include:
    • success: false
    • An error message describing what went wrong.

No binary data is produced by this operation.


Dependencies

  • Zalo Official Account API: Requires valid credentials (such as access tokens or API keys) configured in n8n.
  • n8n Credentials: You must set up Zalo API credentials in n8n for the node to authenticate requests.
  • Network Access: The n8n instance must be able to reach Zalo's API endpoints.

Troubleshooting

Common issues:

  • Invalid or missing User Id/Group Id: Ensure both IDs are correct and exist in Zalo.
  • Insufficient permissions: The authenticated account must have admin rights in the group to remove a deputy.
  • API errors: Network issues or Zalo API downtime can cause failures.

Error messages you might see:

  • "User not found": The provided User Id does not correspond to a member of the group.
  • "Group not found": The Group Id is invalid or inaccessible.
  • "Permission denied": The account used does not have sufficient privileges.
  • "API request failed": General error for network/API issues.

How to resolve:

  • Double-check the User Id and Group Id values.
  • Verify that your Zalo credentials are valid and have the necessary permissions.
  • Check network connectivity and Zalo API status.

Links and References


Discussion