codedao12 - Zalo User icon

codedao12 - Zalo User

Tổng hợp chức năng gửi tin nhắn, quản lý user, group, cài đặt

Actions104

User Action → Người dùng: Lấy avatar theo User ID

AI-generated

Summary

Fetch avatar URLs for specified Zalo user IDs with selectable avatar size and optional custom credential usage.

Inputs

  • useSession — Toggle to use a custom session credential instead of the default n8n credential for Zalo login.
  • connectToId (required) — Select the saved Zalo account credential (user ID or phone) to use for authentication when custom credential usage is enabled.
  • friendIds (required) — Comma-separated list of Zalo user IDs whose avatar URLs to retrieve.
  • avatarSize — Choose the size of the avatar image to return; options include Small (120 pixels) and Large (240 pixels).

Output shape

a JSON object containing avatar URLs for each requested user ID.

The output includes avatar URLs at the requested size for each provided user ID. The operation requires authentication either via the default n8n credential or a user-selected custom credential, depending on the 'useSession' flag.

Examples

Example 1: Retrieve large avatars for multiple Zalo users using a saved credential

Set useSession to true, choose the saved credential under connectToId, input multiple user IDs in friendIds (comma-separated), and set avatarSize to 240.

Links

Discussion