Zalo User icon

Zalo User

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

Overview

This node, named "Zalo User," manages interactions with Zalo user accounts through various operations such as managing friend requests, blocking/unblocking users, changing account settings, and retrieving user information. Specifically, the operation "Lấy danh sách bạn bè" (Get all friends) fetches a list of friends from a Zalo user account.

Common scenarios where this node is beneficial include:

  • Automating social media management tasks on Zalo.
  • Integrating Zalo user data into workflows for marketing or customer engagement.
  • Managing friend lists programmatically to sync contacts or analyze social connections.

For example, you can use this node to retrieve up to a specified number of friends from a Zalo account and then process that list in subsequent workflow steps, such as sending messages or exporting contacts.

Properties

Name Meaning
Limit The maximum number of friends to retrieve from the Zalo user's friend list. Default is 50.

Output

The output JSON contains a single field:

  • friends: An array of friend objects representing the retrieved friends from the Zalo account. Each object corresponds to one friend’s details as returned by the Zalo API.

Example output structure:

{
  "friends": [
    {
      // Friend object properties (e.g., id, name, avatar, etc.)
    },
    ...
  ]
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including a cookie, device IMEI, and user agent string to establish a session with Zalo.
  • The external library zca-js is used internally to interact with the Zalo API.

Troubleshooting

  • Invalid Credentials or Session: If the provided credentials (cookie, IMEI, user agent) are invalid or expired, the node will fail to create an API instance and throw an error indicating no API instance was found. To resolve, ensure valid and current authentication details are supplied.
  • API Rate Limits or Network Issues: Calls to fetch friends may fail due to network problems or API rate limits. Retrying after some time or verifying network connectivity can help.
  • Limit Parameter Misuse: Setting the limit too high might cause performance issues or partial results if the API restricts the number of friends returned per request.
  • Error Handling: If the node is configured to continue on failure, errors for individual items will be included in the output under an error field with the message.

Links and References

Discussion