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

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

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

Actions172

客户联系 → [客户朋友圈] 创建发表任务

AI-generated

Summary

Create a WeCom Moments publishing task with text and optionally one type of attachment. Choose the executing members and, optionally, limit customer visibility by tags; when no publishing range is specified, WeCom uses all members visible to the app.

Inputs

  • enableVisibleRange — Enable a specific publishing range. If enabled, optionally provide sender_user_list (comma-separated user IDs, up to 100,000) and sender_department_list (comma-separated department IDs). If disabled, the app-visible members are used.
  • enableExternalContactList — When a publishing range is enabled, choose whether to restrict visibility to customers selected by tags. If enabled, provide external_contact_tag_list with comma-separated enterprise customer tag IDs; rule-group tags are unsupported.
  • contentType (required) — Select text, image, video, or link. Attachments support up to 9 images, 1 video, or 1 link.
  • text_content — Moments text, up to 2,000 characters (4,000 bytes). The text and attachment content cannot both be empty.
  • imageCollection — For image content, provide up to 9 image media IDs, obtained through the attachment upload API. Image dimensions are limited to 10,800 pixels on the long edge and 1,080 on the short edge.
  • video_media_id — For video content, provide a media ID obtained through the attachment upload API. The video can be at most 30 seconds and 10 MB.
  • link_title — For link content, provide a title up to 64 characters (128 bytes).
  • link_url — For link content, provide the URL.
  • link_media_id — For link content, provide the cover image media ID, obtained through the attachment upload API. Image dimensions are limited to 10,800 pixels on the long edge and 1,080 on the short edge.

Output shape

A single WeCom API response record per input item.

Creates a Moments publishing task; it does not directly publish the post. The source pack shows only a signature-level view of the execution body, so exact response fields are not available.

Examples

Example 1: Create a text-only post for all app-visible members

Set contentType to text, provide text_content, and leave enableVisibleRange off.

Example 2: Create a tagged, image-based post for selected members

Enable the publishing range, provide sender_user_list and/or sender_department_list, enable customer visibility selection, provide external_contact_tag_list, select image, and add up to 9 image media IDs.

Links

Discussion