Surfaces Lark / Feishu bot

Lark / Feishu Bot

Language: English · 简体中文

CrewDesk's Lark / Feishu adapter (apps/lark-bot) projects the exact same canonical SQLite conversation_ledger as the Web console. Start a goal on mobile Lark, approve a tool call or inspect an HTML artifact in Web, and jump straight into a worktree terminal with zero context loss.

Setup Wizard (/channels)

  1. Create a custom bot application in the Feishu Open Platform or Lark Open Platform with bot capability and long-connection (WebSocket) event subscription enabled.
  2. Open System → Channels (/channels) in CrewDesk.
  3. Choose the platform brand (Feishu or Lark), enter your App ID and App Secret, and follow the scope-apply shortcut to grant message read/send permissions.
  4. Enable the channel toggle and verify the connection status indicator turns green.

Sender Allowlist (allowed_senders)

Because CrewDesk follows a single-operator trust model, inbound Lark messages are guarded by an explicit allowlist:

  • Add your own Lark open_id (and any explicitly trusted operator IDs) to agent.lark.allowed_senders.
  • Messages from unlisted open_ids are dropped before reaching any agent.
  • Bot-authored messages are always dropped to prevent echo loops.
  • Leaving allowed_senders empty denies all inbound senders (fail-closed) rather than opening the bot to everyone.

Multi-Surface Handoff

  • Conversations started from Lark appear immediately under Work sessions (/chat) in the Web console.
  • Bind an existing Web session to a Lark group: click the link icon (Copy /bind command) in the Web chat top bar and send @Bot /bind <conversationId> (or paste the full Web /chat/<id> URL or chats://<id> URI) inside any authorized Lark group or topic. The bot verifies the session belongs to the same agent, attaches that topic to the Web session, skips already-settled history to avoid flooding the group, and syncs all new turns and approval cards bidirectionally.
  • Delivery notices, reminders, and settled answers stay in sync across both surfaces while avoiding cross-agent misattribution (the Lark surface only delivers front-desk PA replies, never raw worker noise).