飞书 Webhook Trigger icon

飞书 Webhook Trigger

通过 Webhook 接收飞书事件回调,自动解密并处理 URL 验证

飞书 Webhook Trigger

AI-generated

Summary

Receive and handle Feishu event callbacks via a secure webhook, automatically decrypting encrypted payloads, validating tokens if enabled, and filtering events based on user selection.

Inputs

  • events (required) — Select one or more Feishu event types to trigger on, such as message receipt, menu clicks, file changes, user events, and more; use 'All events' to trigger on any event.
  • encryptKey — Provide the Feishu application's Encrypt Key to decrypt incoming encrypted callback data if encryption is enabled in Feishu backend (optional if encryption is disabled).
  • verifyToken — Enable to verify the Verification Token included in callback data to enhance security; when enabled, you must also supply the 'Verification Token'. Defaults to false.
  • verificationToken (required) — The Verification Token configured in the Feishu application, used to validate incoming callback tokens if verification is enabled.
  • responseMode — Choose when to send the response to Feishu: either immediately upon receiving the event or via a separate '飞书响应' (Feishu Response) node to allow synchronous workflow response.

Output shape

a single record containing the JSON payload of the received Feishu event

The node automatically handles Feishu URL verification events by responding with the challenge to verify the webhook endpoint. If token verification is enabled, events with invalid tokens are acknowledged with an error message but do not trigger the workflow. Only events matching the selected trigger types (or all if 'any_event' is selected) will be emitted; unmatched events are silently acknowledged without triggering the workflow. Encrypted payloads are decrypted transparently when an Encrypt Key is configured. The output JSON follows Feishu event callback structure as received and decrypted.

Examples

Example 1: Trigger on receiving a user message

Set 'events' to '接收消息' (im.message.receive_v1). Provide Verification Token and enable token verification if desired. Provide Encrypt Key if Feishu sends encrypted callbacks.

Example 2: Trigger on any Feishu event

Set 'events' to '所有事件' (any_event). Optionally provide Encrypt Key and Verification Token to secure and decrypt payloads.

Links

Discussion