Actions10
Overview
This node enables interaction with Zalo user accounts, specifically allowing management of friend relationships and user information on the Zalo platform. The "Gửi lời mời kết bạn" (Send Friend Request) operation lets you send a friend request to a specified Zalo user along with a custom message.
Common scenarios where this node is beneficial include automating social engagement workflows, managing contacts in bulk, or integrating Zalo user interactions into broader automation pipelines. For example, a marketing team could automatically send personalized friend requests to new leads collected from other sources.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to whom the friend request will be sent. |
| Message | The accompanying message that will be sent along with the friend request invitation. |
Output
The node outputs a JSON object for each input item processed. For the "sendFriendRequest" operation, the output JSON contains:
status: A string indicating the result status, typically"Thành công"meaning "Success".response: The raw response data returned by the Zalo API after sending 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 cookies, device IMEI, and user agent strings.
- Uses an external library (
zca-js) to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
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 values.
- API Errors: Errors returned from the Zalo API (e.g., user not found, request limit exceeded) will be surfaced as node errors unless "Continue On Fail" is enabled.
- Missing Required Parameters: Ensure that both "User ID" and "Message" fields are provided; otherwise, the node will fail.
- Network Issues: Connectivity problems may cause timeouts or failures when calling the Zalo API.