Actions12
Zalo User → Chấp Nhận Lời Mời Kết Bạn
AI-generatedOverview
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 incoming friend requests on a Zalo account.
Typical use cases include automating social media management tasks such as:
- Automatically accepting friend requests from users.
- Integrating Zalo friend management into CRM or marketing workflows.
- Streamlining community growth by handling friend requests without manual intervention.
For example, when a new user sends a friend request, this node can accept it automatically, enabling immediate communication or further automation steps.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user whose friend request you want to accept. This is a required string input. |
Output
The output JSON contains:
status: A string indicating the result status, e.g.,"Thành công"meaning "Success".response: The raw response object returned from the Zalo API after accepting the friend request. This typically includes details about the accepted 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 an API key credential to authenticate with the Zalo platform.
- The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session.
- The underlying implementation depends on the external
zca-jslibrary to interact with Zalo's API. - Proper configuration of the Zalo API credentials in n8n is necessary before using this node.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Missing or incorrect User ID will prevent the acceptance of friend requests.
- Network or API rate limits could cause temporary errors.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate with Zalo. Verify your API credentials and ensure they are correctly configured.- Errors thrown during execution will include the message from the API or internal exceptions. If
continueOnFailis enabled, errors for individual items will be returned in the output JSON under theerrorfield.
Resolution tips:
- Double-check that the API credentials contain valid cookie, IMEI, and user agent values.
- Ensure the User ID parameter is correctly set and corresponds to a valid pending friend request.
- Use the node’s logging features to inspect detailed error information.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client used)