Wechat Send icon

Wechat Send

Send a Wechat message, image, video, or file to a recipient

Wechat Send

AI-generated

Summary

Send a WeChat message of type text, image, video, or file to a specified recipient by their WeChat ID.

Inputs

  • Target ID (e.g., senderId) (required) — The target recipient's WeChat ID to send the message to. Typically set as {{ $json.senderId }} to reply to the sender.
  • Typing Session ID — Optional session ID to cancel the 'typing' state; use the typingSessionId from a WeChat trigger node.
  • Message Type (required) — The type of message to send: text, image, video, or file.
  • Message Content (required) — The text content to send when message type is 'text'.
  • Binary Property (required) — The name of the binary property holding the file data when sending images, videos, or files.
  • File Name — The name of the file when sending a file message; required if message type is 'file'.

Output shape

a list of JSON objects correlating to each input item, each indicating success status, messageId of the sent message, recipient ID, message type, and account ID; or error details if the send failed

Processes multiple input items individually. Validates inputs and credentials sessionData. Throws errors for missing required parameters or invalid sessionData unless 'Continue On Fail' is enabled.

Examples

Example 1: Send a text reply to a sender

Set 'Target ID' to '{{ $json.senderId }}', 'Message Type' to 'Text', and provide text in 'Message Content'.

Example 2: Send an image file

Set 'Target ID' to recipient ID, 'Message Type' to 'Image', specify the binary property containing image data, e.g. 'data'.

Links

Discussion