Wechat Work Node icon

Wechat Work Node

Wechat Work Node

Overview

This node enables sending group chat messages within an application environment, specifically targeting "应用群聊" (App Group Chat). It supports multiple message types such as text, images, voice, video, files, rich cards, news articles, and markdown content. This flexibility makes it useful for automating communication workflows in team collaboration tools or customer engagement platforms.

Typical use cases include:

  • Broadcasting announcements or updates to a group chat.
  • Sharing multimedia content like images, videos, or documents with a team.
  • Sending formatted messages such as markdown or rich cards for enhanced readability.
  • Automating notifications triggered by external events or system alerts.

Properties

Name Meaning
*群聊ID The unique identifier of the target group chat where the message will be sent.
*消息类型 The type of message to send. Options: text, image, voice, video, file, textcard, news, mpnews, markdown.
*消息内容 The textual content of the message. Required when message type is text or markdown. Maximum length is 2048 bytes.
*媒体文件ID The media file ID for messages that require media (image, voice, video, file). This ID is obtained via uploading temporary media.
视频消息的标题 Title of the video message, applicable only when sending a video. Maximum 128 bytes.
视频消息的描述 Description of the video message, applicable only when sending a video. Maximum 512 bytes.
是否是保密消息 Boolean flag indicating whether the message is confidential (safe).

Output

The node outputs an array of JSON objects representing the result of each message sent. Each output item corresponds to an input item processed. If an error occurs during processing and the node is configured to continue on failure, the output item will contain an error field describing the issue.

No binary data output is indicated by the source code or properties.

Dependencies

  • Requires an API key credential for authentication to the messaging platform.
  • The node internally calls an API endpoint to send messages, which requires valid credentials and network access.
  • Media files must be uploaded beforehand to obtain a media file ID used in sending media messages.

Troubleshooting

  • Common issues:

    • Invalid or missing group chat ID (chatid) will cause message sending to fail.
    • Incorrect or expired media file IDs will prevent media messages from being delivered.
    • Exceeding message size limits (e.g., content longer than 2048 bytes) may cause errors.
    • Network or authentication failures due to invalid API credentials.
  • Error messages:

    • Errors thrown during execution are captured and can be output per item if "Continue On Fail" is enabled.
    • Typical error messages relate to invalid parameters, authentication failures, or API request errors.
  • Resolution tips:

    • Verify all required fields are correctly set according to the message type.
    • Ensure media files are uploaded and their IDs are valid before sending.
    • Check API credentials and permissions.
    • Use the node's logging/debugging features to inspect detailed error information.

Links and References

  • No direct external links provided in the source code.
  • For more details on message types and media upload, consult the official documentation of the messaging platform integrated with this node.

Discussion