Feishu Node icon

Feishu Node

Feishu Node

Overview

The "回复消息" (Reply to Message) operation of the Feishu Node allows users to programmatically reply to an existing message within the Feishu (Lark) platform. This is useful for building automated workflows that interact with chat messages, such as bots that respond to user queries, customer support automations, or notification systems that provide contextual replies in threads.

Practical examples:

  • Automatically replying to a user's question in a group chat.
  • Sending a confirmation message in response to a specific trigger message.
  • Posting follow-up information in a thread based on workflow logic.

Properties

Name Type Meaning
待回复的消息的ID String The ID of the message you want to reply to.
消息类型 Options The type of message to send as a reply (e.g., text, image, file, etc.). See Feishu docs for details.
消息内容 JSON The content of the reply message, provided as a serialized JSON string.
UUID String A custom unique string for deduplication of reply requests.
是否以话题形式回复 Boolean Whether to reply in a thread (topic) format.

Output

The node outputs an array of items, each containing a json field. The structure of this output will typically include the result of the reply operation from the Feishu API, such as message IDs, status, and any error information if applicable. If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.

Example output (success):

[
  {
    "json": {
      "message_id": "om_xxx",
      "status": "success",
      // ...other fields returned by Feishu API
    }
  }
]

Example output (error, with Continue On Fail):

[
  {
    "json": {
      "error": "Invalid message_id"
    }
  }
]

Note: The exact structure depends on the Feishu API's response.

Dependencies

  • External Service: Requires access to the Feishu (Lark) Open Platform.
  • API Credentials: Needs valid Feishu API credentials (feishuCredentialsApi) configured in n8n.
  • Environment: No special environment variables are required beyond standard n8n credential setup.

Troubleshooting

  • Common Issues:

    • Invalid or expired Feishu credentials will prevent successful replies.
    • Incorrect or missing 待回复的消息的ID (Message ID) will cause errors.
    • Malformed 消息内容 (Content) JSON may result in API errors.
    • Insufficient permissions for the bot/app in the target chat.
  • Error Messages:

    • "未实现方法: message.message:reply": Indicates the selected resource/operation is not implemented in the node.
    • "Invalid message_id" or similar: The message ID does not exist or is inaccessible.
    • "NodeApiError": General API error; check the error details for more information.

How to resolve:

  • Double-check your Feishu credentials and permissions.
  • Ensure the message ID exists and is accessible by your app/bot.
  • Validate the JSON structure of your message content.
  • Review the Feishu API documentation for message formats and requirements.

Links and References

Discussion