飞书 icon

飞书

飞书 API 集成,支持多种飞书功能

Actions112

消息 → 批量发送消息

AI-generated

Summary

Sends a Feishu message to the specified departments and users, using the selected message type and content. Each incoming n8n item triggers a send request; adding the Batching option enables concurrent requests, optionally spaced by an interval.

Inputs

  • 凭证类型 (required) — Choose user-level or app-level Feishu credentials; defaults to app-level.
  • 消息类型 (required) — Choose text, rich text, image, group-card share, or interactive card.
  • 文本内容 / 富文本内容 / Image Key / Chat ID(群名片) / 卡片内容 (required) — Provide the content for the selected message type: text, rich-text JSON, image key, chat ID to share, or card JSON.
  • 部门 ID 列表 — Department IDs to receive the message. Accepts a JSON array or comma-separated string; maximum 200.
  • 用户 Open ID 列表 — User Open IDs to receive the message. Accepts a JSON array or comma-separated string; maximum 200.
  • 用户 User ID 列表 — User IDs to receive the message. Accepts a JSON array or comma-separated string; maximum 200.
  • 用户 Union ID 列表 — User Union IDs to receive the message. Accepts a JSON array or comma-separated string; maximum 200.
  • Options.Batching — Adding this option enables concurrent sends. Items per Batch defaults to 50; Batch Interval defaults to 1000 ms and controls pauses between batches.
  • Options.Timeout — Request timeout in milliseconds; 0 means no timeout.

Output shape

A list of n8n items containing Feishu API response data for successful sends.

Processes each incoming item as a separate request. With Continue On Fail enabled, failed sends produce items with an error field; otherwise an error stops execution. The source pack does not include the message operation module, so the exact API response fields and handling of empty recipient lists are not specified.

Links

Discussion