Skip to content

Channels & Bots

DotCraft can bring the same agent into the chat platforms your team already uses — QQ, WeCom, Feishu / Lark, Telegram, WeChat. A channel bot shares the same session core, memory, skills, and security policy as everything else, so what you see in Desktop is the same context the bot works from.

DotCraft Channels configuration and conversations

What's Provided

ChannelSDKDocumentation
QQTypeScriptchannel-qq
WeComTypeScriptchannel-wecom
Feishu / LarkTypeScriptchannel-feishu
Telegram (TypeScript)TypeScriptchannel-telegram
WeChatTypeScriptchannel-weixin
Telegram (Python)Pythonpython-telegram

TypeScript channel modules follow the TypeScript Module integration contract: standard manifest, createModule, configDescriptors, and lifecycle states.

Integration Path

DotCraft channel adapter topology

Three integration shapes:

  • Embedded in Desktop: Desktop launches the channel for you. Open the Desktop Channels page, fill in platform tokens, callbacks, allowlists, or QR-code auth, then enable in one click.
  • Server Compose deployment: Use Server Deployment to run AppServer, the bundled TypeScript channels, and optional OpenSandbox from Docker Compose.
  • Standalone adapter: Run the channel as your own process and connect it to AppServer over WebSocket. Best when you need to operate a custom adapter yourself.

For the channel registration and transport fields behind these shapes, see Entry Points and Services. Each platform's connection, permission allowlists, and approval timeouts are set in the Configuration Reference.

Channels and Unified Session Core

  • A group chat = a Thread; multiple messages from the same user = additional Turns / Items in the Thread.
  • The channel passes group, user, and message-type metadata; DotCraft uses it to attribute messages to threads.
  • When the agent needs approval (write file, shell command), the channel renders the request as a native platform message (button / quote). Execution waits for user consent.
  • Desktop / TUI can connect to the same AppServer to see chat history, take over, or correct replies.

See Unified Session Core for the model.

Scenarios

ScenarioRecommendation
Internal knowledge-base botFeishu / WeCom for enterprise IT
OSS community Q&ATelegram / QQ
Project support / aftermarketWeChat / WeCom
Trigger an Agent CI report from a groupAny channel + Automations
Read group history in Desktop and take overAny channel + Desktop on the same workspace

Security Notes

Connecting an external channel exposes the agent to arbitrary user input. Pair it with:

  • Approval for outside-workspace file and shell actions
  • A narrowed tool surface
  • A strong random AppServer WebSocket token
  • Optionally OpenSandbox for further isolation

Full checklist and exact fields: Security & Sandbox and Configuration Reference.

Building a Custom Channel

DotCraft ships five channels out of the box. To integrate other platforms (Slack, Discord, Lark private deployment, enterprise IM):

Apache License 2.0