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 operations for managing Zalo groups. Specifically, the Disperse Group operation allows you to dissolve (disperse) a Zalo group by providing its unique Group Id. This is useful in scenarios where an administrator needs to permanently remove a group and all its associations from Zalo.

Practical Example:
An organization using Zalo for internal communication may want to automate the cleanup of obsolete project groups. By integrating this node into their workflow, they can automatically disperse groups that are no longer needed.


Properties

Supported Input Properties for "Disperse Group"

Display Name Type Required Description
Group Id String Yes ID của nhóm Zalo. (Zalo group ID)
  • Group Id: The unique identifier of the Zalo group you wish to disperse. This property is required for the operation.

Output

The output of the Disperse Group operation is a JSON object for each input item processed. The structure is as follows:

{
  "success": true,
  "data": { ... }
}
  • If the operation is successful:
    • success: true
    • data: Contains the response data from the Zalo API regarding the dispersal of the group.
  • If there is an error:
    • success: false
    • error: Error message string describing what went wrong.

Note: The actual content of data or error depends on the response from the Zalo API and any errors encountered during execution.


Dependencies

  • External Service: Requires access to the Zalo API with appropriate permissions to manage groups.
  • API Key/Token: You must configure your Zalo API credentials in n8n for authentication.
  • n8n Configuration: No special configuration beyond standard credential setup is required.

Troubleshooting

Common Issues

  • Invalid Group Id: If the provided Group Id does not exist or is incorrect, the operation will fail with an error message indicating the group was not found.
  • Insufficient Permissions: If the API credentials do not have permission to disperse the group, an error will be returned.
  • Network/API Errors: Any issues communicating with the Zalo API (e.g., network timeouts, service unavailability) will result in an error output.

Error Messages

  • "Group not found": Check that the Group Id is correct and exists in Zalo.
  • "Permission denied": Ensure your API credentials have the necessary rights to manage/disperse groups.
  • "API request failed": There may be a temporary issue with the Zalo API or your network connection.

Resolution Steps:

  • Double-check the Group Id.
  • Verify your Zalo API credentials and permissions.
  • Retry after some time if the issue appears to be with the Zalo service.

Links and References


Discussion