|
| 1 | +# Channels |
| 2 | + |
| 3 | +Sidebar → **Channels** → New |
| 4 | + |
| 5 | +Select the channel type and fill in the credentials, then assign agent + saver + memory. Every user/group chat is isolated automatically. |
| 6 | + |
| 7 | +## Supported Channels |
| 8 | + |
| 9 | +| Type | Required fields | |
| 10 | +|------|----------------| |
| 11 | +| Lark / Feishu | App ID, App Secret | |
| 12 | +| Slack | Bot Token (`xoxb-...`), App Token (`xapp-...`) | |
| 13 | +| WeCom | Bot ID, Secret | |
| 14 | +| WeChat | QR code login (credentials auto-populated) | |
| 15 | +| OneBot (QQ) | WS Host, WS Port, optional Access Token | |
| 16 | +| XiaoAI | Mi account ID, Password, Device name | |
| 17 | + |
| 18 | +## Lark / Feishu |
| 19 | + |
| 20 | +1. Create a bot app in the [Feishu Developer Console](https://open.feishu.cn) (or the [Lark Developer Console](https://open.larksuite.com/) for international) |
| 21 | +2. Enable **Bot** capability |
| 22 | +3. Grant the following permissions under **Permissions & Scopes** (or use **Batch Import** with the JSON below): |
| 23 | + |
| 24 | +| Permission | Description | |
| 25 | +|------------|-------------| |
| 26 | +| `im:message:send_as_bot` | Send messages as bot | |
| 27 | +| `im:message.p2p_msg:readonly` | Receive direct messages | |
| 28 | +| `im:message.group_at_msg:readonly` | Receive group @bot messages | |
| 29 | +| `im:message.group_msg` | Receive all group messages | |
| 30 | +| `im:message:readonly` | Read message content | |
| 31 | +| `im:chat:readonly` | Read chat/group info | |
| 32 | +| `im:resource` | Read files and images in messages | |
| 33 | +| `contact:user.base:readonly` | Read basic user info | |
| 34 | +| `contact:contact.base:readonly` | Read basic contact info | |
| 35 | + |
| 36 | +::: details Batch import JSON |
| 37 | +```json |
| 38 | +{ |
| 39 | + "scopes": { |
| 40 | + "tenant": [ |
| 41 | + "contact:contact.base:readonly", |
| 42 | + "contact:user.base:readonly", |
| 43 | + "im:chat:readonly", |
| 44 | + "im:message.group_at_msg:readonly", |
| 45 | + "im:message.group_msg", |
| 46 | + "im:message.p2p_msg:readonly", |
| 47 | + "im:message:readonly", |
| 48 | + "im:message:send_as_bot", |
| 49 | + "im:resource" |
| 50 | + ], |
| 51 | + "user": [] |
| 52 | + } |
| 53 | +} |
| 54 | +``` |
| 55 | +::: |
| 56 | + |
| 57 | +4. Under **Events & Callbacks**, set the subscription mode to **Long Connection** |
| 58 | +5. In Web UI → **Channels**, create a Lark channel and fill in **App ID** and **App Secret** |
| 59 | + |
| 60 | +Supports event deduplication, interactive cards, per-user context isolation, and file/image send and receive. |
| 61 | + |
| 62 | +## Slack |
| 63 | + |
| 64 | +1. Create a Slack app at [api.slack.com/apps](https://api.slack.com/apps) |
| 65 | +2. Enable **Socket Mode** and generate an App-Level Token (`xapp-...`) with the `connections:write` scope |
| 66 | +3. Add bot scopes: `chat:write`, `im:history`, `im:read`, `app_mentions:read`, `channels:history`, `groups:history`, `files:read` |
| 67 | +4. Install the app to your workspace and copy the **Bot User OAuth Token** (`xoxb-...`) |
| 68 | +5. In Web UI → **Channels**, create a Slack channel and fill in both tokens |
| 69 | + |
| 70 | +## WeCom |
| 71 | + |
| 72 | +1. Create an AI app in the [WeCom Admin Console](https://work.weixin.qq.com) and obtain the **Bot ID** and **Secret** |
| 73 | +2. In Web UI → **Channels**, create a WeCom channel and fill in Bot ID and Secret |
| 74 | + |
| 75 | +Connects via WebSocket for real-time messaging, with file and image support. |
| 76 | + |
| 77 | +## WeChat |
| 78 | + |
| 79 | +1. In Web UI → **Channels**, create a WeChat channel |
| 80 | +2. Click QR login and scan the code with WeChat to authenticate |
| 81 | +3. Credentials are saved automatically once authenticated, and the channel goes live immediately |
| 82 | + |
| 83 | +WeChat integration connects via the iLink Bot API, with file and image support. |
| 84 | + |
| 85 | +## OneBot (QQ / Telegram bridges / etc.) |
| 86 | + |
| 87 | +OneBot is the standard reverse-WS protocol used by [NapCat](https://napneko.github.io/), [Lagrange](https://lagrangedev.github.io/), and other QQ adapters. |
| 88 | + |
| 89 | +1. In Web UI → **Channels**, create a OneBot channel and configure: |
| 90 | + |
| 91 | +| Field | Description | Default | |
| 92 | +|-------|-------------|---------| |
| 93 | +| WS Host | WebSocket server bind host | `0.0.0.0` | |
| 94 | +| WS Port | WebSocket server port | `6700` | |
| 95 | +| Access Token | Optional token for authentication | empty | |
| 96 | +| Require @mention in groups | Only respond when @bot in group chats | `true` | |
| 97 | + |
| 98 | +2. Configure the OneBot client (NapCat / Lagrange / etc.) to connect via reverse WS to `ws://<sbot-host>:<wsPort>` with the same access token |
| 99 | + |
| 100 | +## XiaoAI |
| 101 | + |
| 102 | +Talk to your XiaoAi smart speaker as a sbot channel. |
| 103 | + |
| 104 | +1. In Web UI → **Channels**, create a XiaoAI channel and fill in: |
| 105 | + |
| 106 | +| Field | Description | |
| 107 | +|-------|-------------| |
| 108 | +| 小米 ID | Your Mi account ID | |
| 109 | +| 密码 | Mi account password | |
| 110 | +| 设备名称 | Target device name (matches a device in your account) | |
| 111 | + |
| 112 | +2. The bot logs in to Mi Cloud, listens for voice messages on the device, and replies via TTS through the speaker |
0 commit comments