Actions9
Overview
This node enables interaction with Zalo user accounts through various operations such as sending friend requests, accepting friend requests, blocking/unblocking users, changing account settings or avatar, retrieving user information, and searching for users. It is particularly useful for automating social interactions on the Zalo platform, managing contacts, and customizing user profiles programmatically.
A practical example is automating the process of sending personalized friend requests to multiple users by specifying their User IDs and accompanying messages, which can streamline marketing or networking campaigns on Zalo.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to whom the friend request will be sent. |
| Message | The message text that accompanies the friend request being sent to the specified user. |
Output
The node outputs a JSON object for each input item processed. For the "sendFriendRequest" operation, the output JSON contains:
status: A string indicating the result status, typically"Thành công"(meaning "Success").response: The raw response data returned from the Zalo API after attempting to send the friend request.
Each output item is paired with its corresponding input item index.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses stored credentials including cookie, device IMEI, and user agent strings to establish a session.
- Depends on the external
zca-jslibrary to interact with the Zalo API. - Requires proper configuration of the Zalo API credentials within n8n, including valid authentication tokens and session cookies.
Troubleshooting
Common Issues:
- Invalid or expired credentials may cause login failures.
- Missing or incorrect User ID or Message parameters will prevent successful friend request sending.
- Network connectivity issues can interrupt communication with the Zalo API.
Error Messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates failure to authenticate with Zalo. Verify that the API credentials are correctly configured and not expired.- Errors related to specific user operations will include the error message from the Zalo API. Enabling "Continue On Fail" allows processing subsequent items even if some fail.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (Note: Replace with actual repo if available)