Booca Docs

Chat integrations

Connect Booca agents to Feishu, Lark, Slack, DingTalk, WeCom, or Telegram and use them from the chat tools your team already uses.

Chat integrations let the team ask an agent questions, @-mention it in a group chat, or create issues from the chat window — without opening Booca.

Feishu/Lark, Slack, DingTalk, WeCom, and Telegram are supported today. They share the same session, identity, and execution mechanics but install differently.

In the examples below, @Booca is an illustrative bot name. In Slack, select your installed bot from the mention picker before typing /new or /clear; use its actual name if you renamed it.

Choose a platform

Feishu / LarkSlackDingTalkWeComTelegram
InstallationGenerate a QR code in Booca and authorize by scanning it with FeishuCreate an app in Slack, then paste two tokens into BoocaCreate an internal app and Stream-mode robot, then paste its AppKey and AppSecret into BoocaCreate a smart bot with the long connection enabled in the WeCom admin console, then paste its Bot ID and Secret into BoocaCreate a Bot with @BotFather, then paste its token into Booca
DM the agentSupportedSupportedSupportedSupportedSupported
Groups or channelsTriggered by @-mentioning the BotTriggered by @-mentioning the BotTriggered by @-mentioning the BotTriggered by @-mentioning the BotTriggered by @-mentioning or replying to the Bot
Create issues/issue message command; creates the issue from your input as-is/issue slash command; the agent writes up the description before creating/issue message command; creates the issue from your input as-is/issue message command; creates the issue from your input as-is/issue message command; creates the issue from your input as-is
Start a new Chat/new [message]DM: /new [message]; channel/thread: @Booca /new [message]/new [message]/new [message]/new [message]
Clear the current Chat context/clear [message]DM: /clear [message]; channel/thread: @Booca /clear [message]/clear [message]/clear [message]/clear [message]
ConnectionPlatform long connectionSocket ModeStream modePlatform long connectiongetUpdates long polling

New connections are currently open only for mainland-China Feishu; existing international Lark connections keep working and can still be managed.

Each Bot is bound to one Booca agent. To use several agents on the same chat platform, connect a separate Bot for each.

For help with this Booca deployment, contact your administrator through the support channel they provide. Include the affected integration, deployment version, and a redacted reproduction; never send credentials.

WeCom supports text, speech-recognition text supplied by WeCom, images, files, videos, and mixed text/image messages. Attachments are downloaded and decrypted before being passed to the agent; actual understanding depends on its tool and model. Unsupported, unreadable or oversized media receives an explanatory notice. Agent-generated files uploaded and attached to its reply can be delivered back as separate messages after the text; a failed or unconfirmed delivery is reported separately.

Telegram handles text messages today. Unsupported media gets a short reply explaining that, and is not passed to the agent.

Step-by-step guides:

Connect a WeCom smart bot

  1. In the WeCom admin console, create a smart bot with its long connection enabled, then obtain its Bot ID and Secret. A group webhook robot is a different integration.
  2. As a workspace owner or admin, open the target agent’s Integrations → WeCom entry in Booca. Enter the Bot ID, Secret and optional display name.
  3. Wait for credential validation and successful connection; a network verification failure does not by itself mean the credentials are wrong.
  4. Send a DM, or add and @-mention the bot in a group. Complete the Booca account-binding link on first use.
  5. View connected bots under Settings → Integrations. A bot already bound elsewhere must be disconnected from its existing installation before being reused.

Self-hosted deployments need BOOCA_WECOM_SECRET_KEY and the single-replica setup described below. Do not run a separate client with the same bot credentials: WeCom permits only one active long connection per bot.

How a message is processed

  1. Booca resolves the Bot to its workspace and agent.
  2. In a group or channel, only messages that explicitly @-mention the Bot continue; DMs need no mention.
  3. Booca verifies the sender's account binding and workspace membership.
  4. The message joins an agent chat session, and a task is created.
  5. The agent's reply goes back to the original DM or thread.

Channel messages that don't @-mention the Bot never trigger the agent and are not added to its conversation context.

Ordinary messages follow this flow. /issue is a command, not a chat turn: Booca posts the result back to the originating platform but does not add the command to Booca Chat. Slack's native slash command continues through its separate asynchronous issue-creation flow.

Delegated work follow-up

When an agent in a Feishu/Lark, WeCom, or DingTalk conversation hands work to another agent — creating an issue for it and assigning it — the hand-off no longer ends in silence. When the delegated agent finishes, the original agent is woken automatically in the same conversation: it reads the result and replies where the request started, so the member who asked does not have to check back for progress. Delegation started from the Booca web chat is followed up the same way: the reply lands directly in that chat, and a turn typed from the web inside a bound conversation is answered there and echoed to the channel.

First-phase limits:

  • Feishu/Lark, WeCom, and DingTalk conversations and Booca web chats are covered; the other platforms keep the previous behavior.
  • Only direct delegation from a conversation triggers the follow-up; work dispatched through multi-agent groups reports through its own loop.
  • The original agent's runtime must advertise the delegation-channel-callback-v1 capability. Deploy the matching server and runtime versions together; older runtimes safely keep the previous behavior.

Conversation controls

/new creates a new Booca Chat and routes later messages from that external conversation to it. /new <message> creates the Chat and uses the message as its first turn. The previous Chat remains stored and usable in Booca.

/clear stays in the current Booca Chat but starts a new agent-visible context. The full Chat history remains available in Booca, while the agent cannot retrieve messages from before the boundary. /clear <message> uses the message as the first turn in the new context; a bare /clear applies to the next real message.

On Slack, /new and /clear are native slash commands in a DM. A native slash-command payload does not identify a channel thread, so use @Booca /new [message] or @Booca /clear [message] inside the target thread.

Session isolation

  • Feishu/Lark separates sessions by chat; later messages in the same chat continue the same session.
  • Slack separates DMs by channel; in a channel, each thread holds its own session.
  • DingTalk separates sessions by conversation; each DM or group continues its own session.
  • WeCom separates sessions by chat; each DM or group chat continues its own session.
  • Telegram separates sessions by chat; forum topics are isolated by topic.

Follow-ups in a channel still need a fresh @-mention. The agent only receives messages addressed to it — it never reads the whole channel history automatically.

Account binding

The first time a member messages the Bot, they receive an account binding link. After signing in to Booca, the platform account is linked to their membership in the current workspace.

Booca only runs the agent after binding completes. Every message re-checks account binding and workspace membership; after leaving a workspace, the Bot can no longer be used to reach it.

Account binding only confirms who the sender is. Other members on the chat platform are not automatically added to the Booca workspace.

Manage connections

Workspace owners and admins can connect or disconnect Bots; for Feishu/Lark and DingTalk Bots, connecting and disconnecting is also open to the agent's owner. Regular members can view connected integrations and use the agents they have access to.

After disconnecting, the Bot stops receiving new messages. Existing Booca conversations and run records are kept.

Self-hosting

A self-hosted deployment must configure a 32-byte encryption key for each platform before Booca opens its connection entry point:

BOOCA_LARK_SECRET_KEY=<base64-encoded 32-byte key>
BOOCA_SLACK_SECRET_KEY=<base64-encoded 32-byte key>
BOOCA_DINGTALK_SECRET_KEY=<base64-encoded 32-byte key>
BOOCA_WECOM_SECRET_KEY=<base64-encoded 32-byte key>
BOOCA_TELEGRAM_SECRET_KEY=<base64-encoded 32-byte key>

These keys encrypt stored Bot credentials. See Environment variables for how to generate, store, and rotate them.

WeCom additionally requires a single backend replica: its only outbound path is the WebSocket held by one process, so replies produced on another replica are dropped. Run the WeCom-enabled backend unreplicated until cross-replica outbound routing lands.

Next steps