Actions10
Overview
This node manages Zalo user interactions, specifically for the "User" resource and its operations. The "Đổi tên gợi nhớ" (Change Alias Name) operation allows you to set or update a custom alias name for a Zalo friend, making it easier to recognize them in your contacts.
Common scenarios where this node is beneficial include:
- Personalizing contact names in your Zalo friend list.
- Automating updates of friend aliases based on external data.
- Managing friend relationships programmatically within workflows.
For example, you could use this node to automatically rename friends with their company names or roles when syncing contacts from a CRM system.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user whose alias you want to change. |
| Alias Name | The new alias name to assign to the user. |
Output
The output JSON contains:
status: A string indicating the success of the operation, typically"Thành công"(Success).response: The raw response object returned by the Zalo API after changing the alias name.
Example output JSON structure:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- Uses the
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
- Invalid Credentials: If the node throws "No API instance found," ensure that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
- User Not Found: Errors may occur if the specified User ID does not exist or is invalid. Verify the User ID before running the node.
- API Rate Limits: Frequent requests might hit Zalo API rate limits; consider adding delays or error handling to manage this.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation
- zca-js GitHub Repository (Note: Replace with actual repo if available)