Feishu Integration

Feishu is currently the only officially supported external platform integration for Markus. It provides bidirectional messaging and ops monitoring alerts. ← Back to Other · 中文原版


1. Overview

CapabilityDescriptionModule
Bidirectional messagingUse a Feishu app bot as a messaging channel; Agents send / reply / update / delete messagesFeishu bot adapter
Ops monitoring alertsPush system run alerts to a Feishu group via a custom botFeishu alert bot

2. Bidirectional Messaging

Markus treats a Feishu app bot as a messaging channel; Agents can send, reply, update, and delete messages.

2.1 Modes

ModeDescription
WebhookFeishu events delivered to a local port (webhookPort, default 9000)
WebSocketSet wsMode: true to subscribe to event pushes; no public callback URL needed

2.2 Auth & Config

FieldRequiredDescription
platform✅Fixed to 'feishu'
appId / appSecret✅Feishu custom-app credentials (for tenant_access_token)
verificationTokennoVerify event callback source
encryptKeynoEvent encryption; when set, derive the key via scrypt
webhookPortnoWebhook listen port, default 9000
wsModenoEnable WebSocket event subscription when true
domainnoFeishu Open Platform domain, default https://open.feishu.cn

2.3 Sending

  • Methods: sendMessage / sendReply / updateMessage / deleteMessage / sendCard
  • Message types: text, interactive (card), post (rich text), image
  • Recipient ID types (receiveIdType): chat_id (default) / open_id / user_id / union_id
  • Replies can be appended to an existing conversation (back to the original thread when a reply context exists)

2.4 Inbound Routing

Agents bind to a conversation by {platform}:{channelId}; Feishu inbound messages are routed to the bound Agent, and the Agent’s reply is sent back through the same channel.

2.5 Security

  • Supports event-callback encryption (encrypt + scrypt) and verification
  • Deduplicates processed events via processedEvents to avoid duplicate triggers

3. Ops Monitoring Alerts (Custom Bot)

The server can push plain-text alerts to a Feishu group via a custom bot, configured from the Admin settings page.

3.1 Config

KeyRequiredDescription
feishu.webhook_url✅Custom-bot webhook URL; no-op (returns false) when unset
feishu.webhook_secretnoSet when the bot uses signature security mode; sign = base64( HMAC-SHA256(key = "\${timestamp}\n\${secret}", data = "") )

3.2 Usage & Testing

  • After entering the webhook URL in the admin settings page, the server pushes system run alerts to the Feishu group.

3.3 Safety Contract

  • Never throws: a failed alert must never break the request or cron that triggered it.

4. Support Scope & Limits

  • The only officially supported platform is Feishu (Lark, open.feishu.cn).
  • DingTalk / Discord / X / Xiaohongshu / Zhihu are marked “planned” in the Integration category and have no integration or docs yet.

Prerequisites: Assets · Back to Other · next Reference & Admin