Zalo User icon

Zalo User

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

Overview

This node interacts with the Zalo social platform to manage user-related operations. Specifically, for the "User" resource and the "Lấy danh sách bạn bè" (Get all friends) operation, it retrieves a list of the authenticated user's friends from Zalo.

Common scenarios where this node is beneficial include:

  • Synchronizing a user's Zalo friend list with another system.
  • Analyzing or processing friend data for marketing or engagement purposes.
  • Automating workflows that depend on the user's social connections.

For example, you could use this node to fetch up to 50 friends (or any specified limit) and then send personalized messages or invitations based on that list.

Properties

Name Meaning
Limit The maximum number of friend results to retrieve. For example, setting this to 50 returns up to 50 friends.

Output

The output JSON contains a single field:

  • friends: an array of friend objects representing the user's friends on Zalo. Each object includes details about a friend (the exact structure depends on the Zalo API response).

Example output snippet:

{
  "friends": [
    {
      "id": "123456789",
      "name": "Friend Name",
      "avatar": "https://...",
      ...
    },
    ...
  ]
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
  • The node uses an external Zalo SDK/library to perform API calls.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • No API instance found error: This indicates invalid or missing credentials. Ensure that the Zalo API credential is correctly configured with valid cookie, IMEI, and user agent values.
  • Empty friend list: Could be due to no friends on the account or API limitations. Verify the account has friends and the API permissions are sufficient.
  • Rate limiting or API errors: If the Zalo API limits requests, consider adding delays or reducing the Limit value.
  • Continue on Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON under the error field.

Links and References

Discussion