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

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

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

Actions172

客户联系 → [消息推送] 编辑入群欢迎语素材

AI-generated

Summary

Updates an existing WeCom group welcome message template with text and, optionally, one attachment. The template ID is required; choose an attachment type and provide its corresponding content fields, and optionally set the legacy third-party app agent ID.

Inputs

  • template_id (required) — ID of the welcome message material to edit.
  • text_content — Optional welcome text, up to 3000 bytes. Supports the %NICKNAME% placeholder, which WeCom replaces with the customer’s nickname when sending.
  • attachmentType — Attachment type: none, image, link, mini program, file, or video. At most one attachment type can be used; text and an attachment can be sent together as two messages.
  • image_media_id / image_pic_url — For an image attachment, provide its media ID or an image URL obtained through the upload image API.
  • link_title / link_picurl / link_desc / link_url — For a link attachment, provide the required title (up to 128 bytes) and URL. Cover URL and description (up to 512 bytes) are optional.
  • miniprogram_title / miniprogram_pic_media_id / miniprogram_appid / miniprogram_page — For a mini program attachment, all fields are required: title (up to 64 bytes), cover media ID, app ID associated with the company, and page path.
  • file_media_id — For a file attachment, provide the required media ID.
  • video_media_id — For a video attachment, provide the required media ID.
  • agentid — Agent ID of the authorized app; only needed for older third-party suites with multiple apps.

Output shape

A single API response item.

The operation makes a request to update the template. The provided source pack omits the implementation body, so it does not establish the precise response fields.

Links

Discussion