Actions9
Overview
This node manages Zalo user interactions, specifically for the "Zalo User" resource. The operation "Chấp nhận lời mời kết bạn" (Accept Friend Request) allows you to programmatically accept a friend request from another Zalo user by specifying their user ID.
Common scenarios where this node is useful include automating social media management tasks such as:
- Automatically accepting incoming friend requests on Zalo.
- Integrating Zalo user management into broader workflows that involve customer engagement or community building.
- Streamlining user relationship management in marketing or support automation.
For example, if you receive multiple friend requests and want to accept them automatically based on certain criteria, this node can be part of an automated workflow to handle that efficiently.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user whose friend request you want to accept. This must be provided to identify which friend request to approve. |
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 accepting the friend request. This may contain details about the accepted request or confirmation data.
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.
- These credentials must be configured in n8n beforehand to allow the node to authenticate with the Zalo service.
- Uses the external
zca-jslibrary to interact with the Zalo API.
Troubleshooting
Common issues:
- Invalid or expired credentials will cause authentication failures.
- Missing or incorrect User ID input will prevent the node from identifying which friend request to accept.
- Network or API errors from Zalo may interrupt execution.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo. Check your API credentials and ensure they are correctly set up.- Errors related to invalid User ID or permission issues will be thrown by the API and surfaced by the node. Verify the User ID is correct and that the authenticated account has permission to accept the request.
To continue processing other items even if one fails, enable the "Continue On Fail" option in the node settings.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client used)