Actions12
Overview
This node manages Zalo user interactions through various operations such as sending friend requests, accepting requests, blocking/unblocking users, updating profile settings, retrieving user info, and managing messages. It is particularly useful for automating social interactions on the Zalo platform, enabling workflows that integrate Zalo user management without manual intervention.
A practical example is using this node to automatically send a personalized friend request message to a list of user IDs, streamlining outreach campaigns or customer engagement processes on Zalo.
For the selected operation "Gửi Lời Mời Kết Bạn" (Send Friend Request), the node sends a friend request to a specified user ID with an accompanying message.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user to whom the friend request will be sent. |
| Message | The message text that accompanies the friend request invitation. |
Output
The output JSON contains:
status: A string indicating the result status, typically"Thành công"meaning "Success".response: The raw response object returned from the Zalo API after attempting to send the friend request.
Example output JSON structure:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
- Uses an external Zalo API client library (
zca-js) to perform API calls. - The node expects these credentials to be configured in n8n under a generic API key credential for Zalo.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent information.
- API Errors: Errors returned from the Zalo API (e.g., user not found, request limit exceeded) will be surfaced in the node's error output. Check the error message for specific causes.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details per item.
- Empty or Incorrect User ID: Ensure the
User IDproperty is correctly provided and corresponds to a valid Zalo user.
Links and References
- Zalo Official Developer Documentation
- Zalo API Client Library (zca-js) (for reference on API methods used)