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 contacts.
Example use case: 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. |
Output
The node outputs JSON data with the following structure:
{
"status": "Thành công",
"response": { /* response object from Zalo API */ }
}
status: A string indicating success ("Thành công" means "Success").response: Contains the raw response returned by the Zalo API after accepting the friend request. This may include confirmation details or metadata about the accepted request.
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- The node uses the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate and authorize API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials can cause authentication failures.
- Providing an incorrect or non-existent User ID will result in errors from the Zalo API.
- Network connectivity problems may prevent successful API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not initialize the Zalo API client due to missing or invalid credentials. Verify your API key and credential setup.- Errors thrown during execution typically contain the message from the underlying API call. If
continueOnFailis enabled, these errors are returned in the output JSON under theerrorfield.
Resolution tips:
- Double-check the User ID input for correctness.
- Ensure the Zalo API credential is correctly configured and has not expired.
- Enable
continueOnFailif you want the workflow to proceed despite individual item errors.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client library)