Actions10
Overview
This node manages interactions with Zalo users, specifically enabling operations related to friend requests and user management on the Zalo platform. It is useful for automating social interactions such as sending or accepting friend requests, blocking/unblocking users, updating user profile settings, retrieving user information, and managing friend aliases.
A practical example is automating the process of sending personalized friend requests with a custom message to multiple users, which can be beneficial for marketing campaigns or community building on Zalo.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to interact with (e.g., send friend request to). |
| Message | The message accompanying the friend request when sending an invitation to connect. |
Output
The output JSON structure varies depending on the operation but generally includes:
status: A string indicating success, typically "Thành công" (meaning "Success").response: The detailed response object returned from the Zalo API for the performed action.- For some operations like
getUserInfoorfindUser, the output directly contains the user data retrieved. - For
getAllFriends, the output includes afriendsarray listing friend details.
No binary data output is produced by this node.
Example output for sending a friend request:
{
"status": "Thành công",
"response": {
// API response details here
}
}
Dependencies
- Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
- The node depends on an external Zalo API client library (
zca-js) to perform API calls. - Proper configuration of these credentials in n8n is necessary for successful execution.
Troubleshooting
Common Issues:
- Invalid or expired authentication credentials may cause login failures.
- Missing required parameters like User ID or Message will result in errors.
- Network issues or API rate limits could interrupt operations.
Error Messages:
"No API instance found. Please make sure to provide valid credentials."
Indicates failure to authenticate with Zalo API; verify credentials and their validity.- Errors thrown during specific operations will include the error message from the API; enabling "Continue On Fail" allows processing subsequent items despite errors.
Resolution Tips:
- Ensure all required input fields are provided and correctly formatted.
- Refresh or update API credentials if authentication fails.
- Check network connectivity and API usage limits.
Links and References
- Zalo Official Developer Documentation
- Zalo API Client Library (zca-js) - GitHub Repository (replace with actual link if available)