企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

智能机器人被动回复 → [智能机器人被动回复] 回复用户消息

AI-generated

Summary

Send a passive reply to a WeCom intelligent bot user as either a streaming message, a template card, or both. The node uses the message-receiving API credentials and must follow a trigger configured to wait for a workflow response; place it last on its branch and complete the reply within 5 seconds.

Inputs

  • replyType (required) — Choose streaming message, template card, or streaming message with an attached template card.
  • stream_id (required) — For streaming replies, provide the stream ID on the initial reply; on a streaming refresh callback it can be left blank to reuse the callback's stream ID.
  • finish — For streaming replies, choose whether to end the stream. When ending it, you can include up to 10 images, each specified by Base64 data and the original image's MD5.
  • content — Streaming message text, which supports Markdown and is limited to 20,480 UTF-8 bytes. Later replies replace the previous content.
  • feedback_id / stream_feedback_id / template_card_feedback_id — Optional feedback IDs for the selected reply type; a nonempty ID enables a feedback callback. Each is limited to 256 UTF-8 bytes.
  • template_card_input_mode — For template cards, choose form fields or provide the complete template_card object as JSON. This also applies to the card attached to a streaming reply when attachment is enabled.
  • template card fields — In form mode, configure a card type and its applicable content, such as title, source, text, choices, buttons, images, links, or action menu. Available fields vary by card type; some card types require specific fields. An action menu requires a task ID.
  • attach_template_card — For combined replies, defaults to true. Turn it off to send only the streaming message.

Output shape

A single n8n item per input item, containing the WeCom reply API response.

The reply is sent through the passive-reply endpoint using the trigger's message-receiving API credentials. The operation-scoped notice requires the trigger's response mode to be “wait for workflow (passive reply),” the same credentials as the trigger, this node last on its branch, and completion within 5 seconds.

Links

Discussion