Actions9
Overview
This node allows you to block a user on the Zalo platform by specifying their User ID. It is useful in scenarios where you want to programmatically manage your Zalo contacts, for example, to prevent unwanted interactions or spam from specific users. A practical use case would be automating the moderation of a Zalo account by blocking users who violate certain rules or criteria.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user to be blocked |
Output
The node outputs a JSON object containing:
status: A string indicating the success status of the operation (e.g., "success").response: The raw response from the Zalo API after attempting to block the user.
The output is paired with the input item index to maintain data consistency across multiple executions.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses a Zalo API client internally that requires a valid cookie, device identifier (IMEI), and user agent string for authentication.
- The node expects these credentials and connection details to be provided via the configured credential in n8n.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause the node to fail.
- Providing an incorrect User ID will result in an error or no action.
- Network connectivity problems can interrupt communication with the Zalo API.
Error messages:
- If the node cannot establish a connection due to missing or invalid credentials, it throws an error indicating failure to connect.
- Errors returned from the Zalo API are passed through in the
errorfield of the output JSON when the node is set to continue on failure.
Resolution tips:
- Verify that the API key credential is correctly configured and has not expired.
- Ensure the User ID is accurate and corresponds to a valid Zalo user.
- Check network settings and firewall rules to allow outbound requests to the Zalo API.
Links and References
- Zalo Official Developer Documentation (for API reference and authentication details)
- n8n Documentation (for general usage and credential setup)