Actions10
Overview
This node manages Zalo user interactions, specifically allowing automation of friend-related actions on the Zalo platform. The "Chấp nhận lời mời kết bạn" (Accept Friend Request) operation enables users to programmatically accept incoming friend requests by specifying the user ID of the requester.
Common scenarios where this node is beneficial include:
- Automating social media management workflows for businesses or influencers who receive many friend requests.
- Integrating Zalo user management into broader CRM or marketing automation systems.
- Streamlining community management by automatically accepting friend requests from verified or targeted users.
Example: Automatically accept all pending friend requests from a list of user IDs obtained from another system or trigger.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user whose friend request you want to accept. This must be provided as a string and is required for the operation. |
Output
The output JSON contains:
status: A string indicating the result of the operation, typically"Thành công"meaning "Success".response: The raw response object returned by the Zalo API after accepting the friend request. This may contain additional details about the accepted request.
Example output JSON structure:
{
"status": "Thành công",
"response": {
// API-specific response details here
}
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured in n8n beforehand.
- No additional environment variables are explicitly required beyond the credential setup.
Troubleshooting
- Invalid Credentials: If the node throws an error stating no API instance found, verify that the Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
- User ID Not Found or Invalid: Ensure the provided User ID corresponds to a valid Zalo user who has sent a friend request.
- API Rate Limits or Network Issues: Temporary failures might occur due to network problems or API rate limits; retrying later or checking network connectivity can help.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON under the
errorfield.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)
- n8n Documentation on Creating Custom Nodes