Actions12
Overview
This node interacts with the Zalo platform to manage user-related actions, specifically for the "Zalo User" resource. The operation "Gửi Lời Mời Kết Bạn" (Send Friend Request) allows sending a friend request to another Zalo user along with a custom message.
Common scenarios where this node is beneficial include automating social engagement workflows, such as:
- Automatically sending friend requests to new contacts or leads.
- Personalizing connection requests with a message to increase acceptance rates.
- Integrating Zalo friend management into broader marketing or CRM automation pipelines.
For example, a business could use this node to send personalized friend requests to customers who sign up on their website, helping to build direct communication channels on Zalo.
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 JSON data for each input item processed. The output JSON contains:
status: A string indicating the result status, typically"Thành công"(Success).response: The detailed response from the Zalo API regarding the friend request action.
The output is paired with the corresponding input item index to maintain traceability.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- The node depends on an underlying Zalo API client library instantiated with authentication details including cookie, IMEI, and user agent strings.
- Proper configuration of these credentials and environment variables in n8n is necessary for successful execution.
Troubleshooting
Common Issues:
- Invalid or expired authentication credentials may cause failures.
- Incorrect or missing User ID or Message parameters can lead to errors.
- Network connectivity issues with the Zalo API endpoint.
Error Messages:
- If the node throws an error related to authentication, verify that the API key credential is correctly configured and valid.
- Errors mentioning missing parameters indicate that required inputs like User ID or Message were not provided.
- Unexpected API responses might require checking the Zalo API status or rate limits.
Resolution Tips:
- Ensure all required properties are set and valid.
- Refresh or reconfigure API credentials if authentication fails.
- Check network access and proxy settings if connectivity issues occur.
Links and References
- Zalo Official Developer Documentation
- Zalo API Authentication Guide
- n8n Documentation on Creating Custom Nodes