Actions10
Overview
This node manages Zalo user interactions, specifically allowing operations related to a Zalo user's contacts and profile. The "Đổi tên gợi nhớ" (Change Alias Name) operation lets you update the alias name (a memorable or custom display name) for a specific user in your Zalo contact list.
Common scenarios where this node is useful include:
- Personalizing contact names in your Zalo friend list for easier recognition.
- Automating updates of friend aliases based on external data or CRM systems.
- Managing large contact lists by programmatically setting meaningful display names.
For example, if you have a contact with user ID 12345 and want to set their alias to "Best Friend", you would use this operation to update that alias directly via the node.
Properties
| Name | Meaning |
|---|---|
| User ID | The unique identifier of the Zalo user whose alias name you want to change. |
| Alias Name | The new alias name (custom display name) to assign to the specified user. |
Output
The output JSON contains:
status: A string indicating the result status, typically"Thành công"meaning "Success".response: The raw response from the Zalo API after attempting to change the alias name. This may contain details about the updated alias or confirmation data.
Example output JSON:
{
"status": "Thành công",
"response": {
// API response details here
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an active Zalo API credential with valid authentication tokens (cookie, IMEI, user agent).
- 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," it means the provided credentials are invalid or missing required fields like cookie or device identifiers. Ensure your Zalo API credential is correctly set up.
- User Not Found: If the specified User ID does not exist or is incorrect, the API call will fail. Double-check the User ID input.
- Permission Issues: Changing alias names might require appropriate permissions on the Zalo account. Verify that the authenticated user has rights to modify friend aliases.
- Network Errors: Temporary network issues can cause failures. Retrying the operation usually resolves such problems.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON.