Actions10
Overview
This node manages interactions with Zalo users, specifically allowing actions such as sending friend requests, accepting friend requests, blocking/unblocking users, updating profile settings, retrieving user info, and more. It is useful for automating social interactions on the Zalo platform, such as managing contacts or integrating Zalo user management into workflows.
The "Gửi lời mời kết bạn" (Send Friend Request) operation sends a friend request to a specified Zalo user ID with an optional accompanying message. This can be used in scenarios like automating outreach campaigns, onboarding new contacts, or integrating Zalo friend requests into customer engagement processes.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier 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 sending the friend request.
Example output 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 cookie, device 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
- Invalid Credentials: If the node throws "No API instance found. Please make sure to provide valid credentials.", verify that the Zalo API credentials are correctly set up with valid cookie, IMEI, and user agent values.
- API Errors: Errors from the Zalo API (e.g., invalid user ID, rate limits) will be thrown during execution. Enable "Continue On Fail" to handle errors gracefully per item.
- Missing Required Parameters: Ensure both "User ID" and "Message" fields are provided; they are required for sending a friend request.
- Network Issues: Connectivity problems may cause failures; check network access to Zalo services.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client library)