Zalo User Interact icon

Zalo User Interact

Gửi tin nhắn và tương tác với Zalo User

Actions133

Message → Send Message

AI-generated

Summary

Send a message to a Zalo user or group

Inputs

  • threadId (required) — ID of the Zalo user or group to send the message to
  • message — Text content of the message
  • threadType (required) — Type of conversation: User (0) or Group (1)
  • attachmentsParameter — Collection of attachment definitions
  • attachmentsUrls — Comma‑separated list of attachment URLs or paths
  • stylesParameter — Collection of text styling options
  • urgency (required) — Priority level of the message (0=Default,1=Important,2=Urgent)
  • mentionsParameter — Collection of user mention definitions
  • quoteParameter — JSON string of a quoted message
  • ttl — Message lifetime in seconds

Output shape

a response object indicating success or failure; may contain the identifier of the sent message

Exact response structure depends on the Zalo API; not fully documented

Examples

Example 1: Send a text message to a group with an attachment

threadType=Group, message='Hello', attachmentsParameter=[{attachmentPath='/files/logo.png'}], urgency=Important

Example 2: Send a styled message to a user with mentions

threadType=User, message='Welcome!', stylesParameter=[{st='b', start=0, len=5}], mentionsParameter=[{pos=12, uid='12345', len=5}], urgency=Default

Example 3: Send a message with a quoted message and TTL

threadType=Group, message='Re: previous', quoteParameter='{"text":"Old msg"}', ttl=3600, urgency=Urgent

Links

Discussion