Zalo Send Message icon

Zalo Send Message

Gửi tin nhắn qua API Zalo sử dụng kết nối đăng nhập bằng cookie

Zalo Send Message

AI-generated

Summary

Send a message to a Zalo thread (user or group) with optional quote, mentions, and attachments.

Inputs

  • threadId (required) — ID của thread để gửi tin nhắn
  • type — Loại của tin nhắn (user hoặc group)
  • message (required) — Nội dung tin nhắn cần gửi
  • urgency — Mức độ khẩn cấp của tin nhắn
  • quote — Mention or quote details (can include msgId, senderId, content)
  • mentions — List of user IDs to mention in the message
  • attachmentsMode — Chế độ nhập attachment: cố định từng item hoặc dynamic qua array
  • attachments — Một hoặc nhiều ảnh đính kèm để gửi (chế độ Fixed)
  • attachmentUrlsDynamic — Array các URL ảnh/file. Nhập expression trả về mảng string (vd: {{ $JSON.imageUrls }})

Output shape

A list of objects containing success (boolean), response (object), threadId (string), threadType (number), and messageContent (object)

On failure the node errors unless continueOnFail is enabled; successful runs always return an array.

Examples

Example 1: Send a simple message to a group thread with a fixed image attachment

threadId=12345, type=Group, message='Hello group', urgency=0, attachmentsMode=fixed, attachments[attachment][imageUrl]=https://example.com/img.jpg

Example 2: Send a quoted message to a user thread with dynamic attachment URLs

threadId=67890, type=User, message='Re: previous', quote={'msgId':'abc','senderId':'bob','content':'...'}, attachmentUrlsDynamic='["https://a.com/img1.jpg","https://b.com/img2.jpg"]'

Links

Discussion