企业微信(WeCom)-连接微信 icon

企业微信(WeCom)-连接微信

企业微信连接微信功能 - 微信客服、客户联系、家校应用、政民沟通

Actions172

微信客服 → [会话与消息] 发送消息

AI-generated

Summary

Send one WeCom customer-service message to a specified customer using a selected customer-service account. Choose a message type and provide its corresponding content or media details; sending is limited to the 48 hours after the customer messages, with a maximum of five messages, and API success does not confirm delivery.

Inputs

  • 客服账号 (open_kfid) (required) — Select the customer-service account to send from.
  • 客户 External UserID (touser) (required) — WeChat customer's external_userid.
  • 消息 ID (msgid) — Optional ID, up to 32 bytes, using digits, letters, underscores, or hyphens; must be unique within the selected account.
  • 消息类型 (msgtype) (required) — Choose text, image, voice, video, file, link, mini-program, menu, location, or customer-acquisition link.
  • 消息内容和类型专属字段 — Supply the fields for the chosen type: text content (up to 2048 bytes); a media ID for image, voice, video, or file; title, optional description, URL, and thumbnail media ID for a link; AppID, page path, thumbnail media ID, and optional title for a mini-program; optional opening and closing text and up to 50 menu items for a menu; latitude and longitude, with optional location name and address, for a location; or an HTTP(S) customer-acquisition link URL. Requiredness varies by type as shown in the operation fields.

Output shape

A single API response record for the send request.

The operation submits the selected message to WeCom customer service. A successful API response does not guarantee final delivery; delivery failures are reported separately by callback. Messages can be sent only within 48 hours after the customer initiates a message, up to five messages.

Links

Discussion