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

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

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

Actions172

客户联系 → [消息推送] 发送新客户欢迎语

AI-generated

Summary

Send a WeCom new-customer welcome message using a welcome code received from an external-contact callback. The code expires after 20 seconds; send text, attachments, or both, with attachments delivered as separate messages.

Inputs

  • welcome_code (required) — The welcome code from the external-contact-added callback. It is valid for 20 seconds, so run this operation promptly.
  • text_content — Welcome text, up to 4000 bytes. The text and attachments cannot both be empty.
  • enableAttachments — Enable attachments to configure up to 9 items. Attachments can be sent alongside text.
  • attachments — Optional image, link, mini-program, video, or file attachments. Images require either a media ID or an upload-image URL; links require a title and URL; mini-programs require a title, cover media ID, associated app ID, and page path; videos and files require a media ID.

Output shape

A single API response record per input item.

The operation posts the welcome code and configured message content to WeCom. The source pack shows response forwarding but does not specify the response fields.

Examples

Example 1: Send a welcome text and attachments

Set the welcome code promptly after the callback, enter text, and optionally configure up to 9 attachments; the text and attachments are sent as multiple messages.

Links

Discussion