Actions10
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 beneficial include automating social interactions on Zalo, such as managing friend requests in bulk or integrating Zalo user management into broader workflows like CRM systems or customer engagement platforms.
For example, you could use this node to automatically accept friend requests from users who meet certain criteria, enabling seamless connection building without manual intervention.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the Zalo user whose friend request you want to accept |
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 by the Zalo API after accepting the friend request.
Example output JSON structure:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential with valid authentication details for Zalo.
- Uses stored cookie, device IMEI, and user agent information from credentials or input data to authenticate API calls.
- Depends on the external
zca-jslibrary to interact with the Zalo API.
Troubleshooting
- No API instance found: This error indicates invalid or missing credentials. Ensure that the API key credential is correctly configured with valid cookie, IMEI, and user agent values.
- Invalid User ID: If the provided User ID does not correspond to a valid Zalo user or there is no pending friend request from that user, the API call may fail. Verify the User ID before running the node.
- Network or API errors: Temporary network issues or API rate limits might cause failures. Implement retry logic or check API usage quotas if applicable.
- When using multiple items, enable "Continue On Fail" to avoid stopping the entire workflow on individual item errors.
Links and References
- Zalo Official Developer Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)
- n8n Documentation on Creating Custom Nodes