Zalo User icon

Zalo User

Quản lý người dùng Zalo

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 status, typically "Thành công" meaning "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-js library 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 Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
  • User Not Found: Errors may occur if the provided User ID does not exist or is invalid. Verify the User ID before running the node.
  • API Rate Limits or Restrictions: The Zalo API might limit requests; handle errors gracefully and consider retry mechanisms.
  • 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

Discussion