Actions9
Overview
This node allows users to interact with Zalo's user-related API functionalities, specifically enabling the sending of friend requests to other Zalo users. It is useful in scenarios where automation of social interactions on Zalo is desired, such as marketing campaigns, customer engagement, or community building by programmatically sending friend invitations with personalized messages.
For example, a business could use this node to automatically send friend requests to a list of potential customers along with a custom greeting message, streamlining outreach efforts.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user to whom the friend request will be sent. |
| Message | The accompanying message that will be sent along with the friend request invitation. |
Output
The node outputs an array of JSON objects, each corresponding to an input item processed. Each output object contains:
status: A string indicating the success status of the operation (e.g.,"success").response: The raw response from the Zalo API for the friend request action.pairedItem: Metadata linking the output to the original input item index.
No binary data output is produced by this node.
Dependencies
- Requires valid Zalo API credentials configured in n8n to authenticate API requests.
- Depends on an external Zalo API client library (
zca-js) to handle communication with Zalo services. - The node expects proper configuration of authentication tokens/cookies and user agent strings internally managed via credentials.
Troubleshooting
Common Issues:
- Invalid or expired API credentials can cause authentication failures.
- Incorrect or missing User ID will result in errors when attempting to send friend requests.
- Network connectivity issues may prevent successful API calls.
Error Messages:
"No API instance found. Please make sure to provide valid credentials."
This indicates missing or invalid API credentials; verify and reconfigure your Zalo API authentication in n8n.- Errors related to individual items will include the error message in the output JSON under the
errorfield if "Continue On Fail" is enabled. - If the node throws an error without continuing, check the input parameters and credentials.
Links and References
- Zalo Official Developer Documentation (for API details)
- n8n Documentation (for general node usage and credential setup)