comfyui_LLM_party

1625

Available Nodes

FeishuSendMsg

FeishuSendMsg Node Documentation

Overview

The FeishuSendMsg node is a component of the ComfyUI LLM Party that facilitates automated message sending via Feishu, a collaborative business and office communication platform. This node enables users to send various types of messages, such as text, markdown, images, and audio, to both group and individual chats on Feishu. By integrating this functionality into the ComfyUI workflow, users can enhance their automated processes with seamless communication features.

Inputs

The FeishuSendMsg node requires several inputs to function correctly:

  • msg_type: This input determines the type of message to send. It accepts the following options:

    • "text": Sends a simple text message.
    • "markdown": Sends a message with markdown formatting.
    • "image": Sends an image file.
    • "audio": Sends an audio file.
  • text: This is the message content for text and markdown message types. By default, it's set to "Hello. I am an AI from LLM_Party."

  • app_id: The application ID associated with your Feishu app.

  • app_secret: The application secret for authenticating the Feishu app.

  • chat_type: Specifies whether the message is intended for a "group" or "single" (individual) chat.

  • chat_id: Required for group chats, this is the identifier of the group chat to which the message will be sent.

  • user_id and open_id: Used for single chats, either the user ID or open ID of the recipient must be provided.

  • is_enable: A boolean flag to activate or deactivate the node's message-sending functionality. Default is enabled (True).

  • file_path (optional): When sending images or audio, this is the file path to the respective media. Only image or audio paths are valid for this input.

Outputs

The FeishuSendMsg node produces three outputs:

  • file_key: For image and audio messages, this is the unique key representing the uploaded file in Feishu's storage.

  • msg_id: The message ID of the sent message, which can be used for message tracking or further actions.

  • show_help: A placeholder output currently used for displaying help text or messages.

Usage in ComfyUI Workflows

The FeishuSendMsg node can be incorporated into ComfyUI workflows to automate message dispatching as part of larger processes. For example:

  • Notification Systems: Use the node to send alerts or updates to project teams working collaboratively through Feishu.

  • Customer Engagement: Automatically send promotional content or updates to customers directly via a Feishu chat interface.

  • Data Collection: Dispatch forms or information requests to individual recipients or groups to gather responses via Feishu.

Special Features and Considerations

  • Tenant Access Token: The node utilizes a tenant access token system to authenticate requests with Feishu. It requires input of a valid app_id and app_secret to generate this token.

  • Markdown Support: The node supports sending messages with markdown, allowing for enhanced message formatting within Feishu.

  • Media Conversion: Audio files are automatically converted to the Opus format if they are not already in that format, ensuring compatibility with Feishu's media upload standards.

  • Language Options: The node supports both Chinese and English, adapting its response language based on the system settings or specific configuration.

By integrating FeishuSendMsg nodes into your workflows, you can efficiently manage communication across your Feishu network, leveraging automation to improve collaboration and user engagement.