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
| Capability | Description | Module |
|---|---|---|
| Bidirectional messaging | Use a Feishu app bot as a messaging channel; Agents send / reply / update / delete messages | Feishu bot adapter |
| Ops monitoring alerts | Push system run alerts to a Feishu group via a custom bot | Feishu 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
| Mode | Description |
|---|---|
| Webhook | Feishu events delivered to a local port (webhookPort, default 9000) |
| WebSocket | Set wsMode: true to subscribe to event pushes; no public callback URL needed |
2.2 Auth & Config
| Field | Required | Description |
|---|---|---|
platform | ✅ | Fixed to 'feishu' |
appId / appSecret | ✅ | Feishu custom-app credentials (for tenant_access_token) |
verificationToken | no | Verify event callback source |
encryptKey | no | Event encryption; when set, derive the key via scrypt |
webhookPort | no | Webhook listen port, default 9000 |
wsMode | no | Enable WebSocket event subscription when true |
domain | no | Feishu 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
processedEventsto 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
| Key | Required | Description |
|---|---|---|
feishu.webhook_url | ✅ | Custom-bot webhook URL; no-op (returns false) when unset |
feishu.webhook_secret | no | Set 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