Actions10
Overview
This node manages Zalo user interactions, specifically allowing you to unblock a user on the Zalo platform. It is useful in scenarios where you have previously blocked a user and want to restore communication with them. For example, if you manage customer relationships or social contacts via Zalo and need to programmatically unblock users based on certain triggers or workflows, this node facilitates that.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the user to unblock |
Output
The node outputs a JSON object for each input item processed. The output JSON contains:
status: A string indicating the operation result, typically"Thành công"(meaning "Success").response: The raw response from the Zalo API confirming the unblock action.
Example output JSON:
{
"status": "Thành công",
"response": { /* API response details */ }
}
No binary data is produced by this node.
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure.
- Missing or incorrect User ID will prevent the unblock operation.
- Network or API errors from Zalo can interrupt the process.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates that the node could not authenticate with Zalo. Verify your API credentials and ensure they include valid cookie, IMEI, and user agent values.- Errors related to invalid user IDs or permissions will be returned from the Zalo API and surfaced as node errors. Check that the User ID exists and that your account has rights to unblock it.
Handling failures:
- The node supports continuing on failure per item if enabled, allowing partial success in batch operations.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)