企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

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

Actions257

智能机器人回复 → [主动回复] 主动回复消息

AI-generated

Summary

Send an active reply message via WeCom intelligent robot, supporting Markdown or template card formats for immediate response within 1 hour of trigger invocation.

Inputs

  • replyType (required) — Specify the type of reply message, either 'Markdown 消息' (markdown) or '模板卡片消息' (template_card).
  • content (required) — Content of the Markdown message when replyType is 'markdown'. Supports rich Markdown formatting up to 20480 bytes UTF-8.
  • feedback_id — Optional feedback ID string for Markdown message; non-empty value enables user feedback callback.
  • template_card_input_mode — Mode of input for template card: 'form' for individual fields or 'json' for direct JSON input. Required when replyType is 'template_card'.
  • template_card_json (required) — Full JSON object defining the template card, used when template_card_input_mode is 'json'.
  • card_type — Template card type such as button_interaction, multiple_interaction, vote_interaction, news_notice, or text_notice, required when using form input mode for template cards.
  • source — Source information fields for the template card when using form input mode.
  • main_title — Primary title and subtitle for the template card in form input mode.
  • emphasis_content — Key data fields for highlighting in the template card (form mode).
  • quote_area — Citation or reference section in the template card, usually not used with key data (form mode).
  • sub_title_text — Secondary text content in the template card for form input mode.
  • horizontal_content_list — List of items with titles and text forming a horizontal content list in the template card (form mode).
  • jump_list — List of jump or navigation links in the template card (form mode).
  • card_action — Overall card click action configuration, mandatory for certain card types like text_notice and news_notice (form mode).
  • task_id — Unique task identifier for the template card to distinguish actions, required if action_menu is set (form mode).
  • button_selection — Dropdown selector for buttons, available for button_interaction card type (form mode).
  • button_list — List of buttons for button_interaction template cards (form mode).
  • select_list — Dropdown selectors for multiple_interaction template cards (form mode).
  • checkbox_question_key — Key identifier for the choice question in vote_interaction cards (form mode).
  • checkbox_mode — Choice mode for vote_interaction cards: single (0) or multiple (1) select (form mode).
  • checkbox_disable — If true, disables selection modification for vote_interaction choice question (form mode).
  • option_list — Options list for vote_interaction and multiple_interaction card types, limited to 10 items (form mode).
  • submit_button_text — Text label for the submit button in vote_interaction and multiple_interaction cards (form mode).
  • submit_button_key — Event key for submit button, returns in callback when user submits options (form mode).
  • card_image — Image style content for news_notice card type requiring either card_image or image_text_area (form mode).
  • image_text_area — Left image and right text area for news_notice cards, complementing card_image (form mode).
  • vertical_content_list — Vertical content list of titles and descriptions for news_notice card (form mode).
  • action_menu — Additional action menu on card's right top corner, allowing multiple operations (form mode).

Output shape

a JSON object containing response data indicating success or failure of the active reply call

This operation issues a single active reply message to a WeCom intelligent robot callback URL. Each response_url can only be called once and is valid for 1 hour from triggering. The message payload depends on the replyType selected and the provided parameters.

Links

Discussion