Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor: add bot platform setup guide reference (#14121)

LiJian421427f3a20a
diff --git a/packages/builtin-skills/src/lobehub/index.ts b/packages/builtin-skills/src/lobehub/index.ts
index 36f18c60be7..63f0337c854 100644
--- a/packages/builtin-skills/src/lobehub/index.ts
+++ b/packages/builtin-skills/src/lobehub/index.ts
@@ -4,6 +4,13 @@ import { systemPrompt } from './content';
import { toResourceMeta } from './helpers';
import agent from './references/agent';
import bot from './references/bot';
+import botDiscord from './references/bot-discord';
+import botFeishu from './references/bot-feishu';
+import botLark from './references/bot-lark';
+import botQQ from './references/bot-qq';
+import botSlack from './references/bot-slack';
+import botTelegram from './references/bot-telegram';
+import botWechat from './references/bot-wechat';
import config from './references/config';
import doc from './references/doc';
import eval_ from './references/eval';
@@ -29,12 +36,19 @@ export const LobeHubSkill: BuiltinSkill = {
avatar: LOBEHUB_AVATAR,
content: systemPrompt,
description:
- "Manage the LobeHub platform via the `lh` CLI — INCLUDING modifying THIS agent's own configuration. ACTIVATE this skill whenever the user asks you to: change your system prompt / instructions / persona, enable or disable tools / plugins / skills, switch model or provider, attach knowledge bases or files, edit the opening message, rename the topic, OR operate on any other platform resource (agents, topics, memory, documents, search, content generation, model/provider/plugin management, bot integrations, evals, usage stats). Without activation you cannot persist any change — you can only describe what you would do.",
+ "Manage the LobeHub platform via the `lh` CLI — INCLUDING modifying THIS agent's own configuration. ACTIVATE this skill whenever the user asks you to: change your system prompt / instructions / persona, enable or disable tools / plugins / skills, switch model or provider, attach knowledge bases or files, edit the opening message, rename the topic, OR operate on any other platform resource (agents, topics, memory, documents, search, content generation, model/provider/plugin management, bot integrations, evals, usage stats). ALSO ACTIVATE when the user asks to connect, link, or set up a messaging platform bot — including Discord, Telegram, Slack, Feishu (飞书), Lark, QQ, or WeChat (微信) — or uses phrases like '帮我链接 Discord', 'connect my Slack', '接入飞书', '配置 QQ 机器人', 'link WeChat'. Without activation you cannot persist any change — you can only describe what you would do.",
identifier: LobeHubIdentifier,
name: 'LobeHub',
resources: toResourceMeta({
'references/agent': agent,
'references/bot': bot,
+ 'references/bot/discord': botDiscord,
+ 'references/bot/feishu': botFeishu,
+ 'references/bot/lark': botLark,
+ 'references/bot/qq': botQQ,
+ 'references/bot/slack': botSlack,
+ 'references/bot/telegram': botTelegram,
+ 'references/bot/wechat': botWechat,
'references/config': config,
'references/doc': doc,
'references/eval': eval_,
diff --git a/packages/builtin-skills/src/lobehub/references/bot-discord.ts b/packages/builtin-skills/src/lobehub/references/bot-discord.ts
new file mode 100644
index 00000000000..f9933bdd4a2
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-discord.ts
@@ -0,0 +1,71 @@
+const content = `# Discord Bot Setup Guide
+
+Connect a Discord bot to your agent.
+
+**Developer Portal:** https://discord.com/developers/applications
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Application ID | Yes | Your app's unique ID |
+| Public Key | Yes | Used to verify requests from Discord |
+| Bot Token | Yes | Bot's authentication token |
+
+## Step-by-Step Setup
+
+### Step 1: Create a Discord Application
+
+1. Go to https://discord.com/developers/applications
+2. Click **"New Application"** (top right)
+3. Enter an app name → click **"Create"**
+4. On the **General Information** page that opens, copy:
+ - **Application ID** (shown as "APPLICATION ID")
+ - **Public Key** (shown as "PUBLIC KEY")
+
+### Step 2: Create the Bot and Get Token
+
+1. In the left sidebar, click **"Bot"**
+2. Click **"Add Bot"** → confirm
+3. Under the bot's username, click **"Reset Token"** → confirm → copy the **Bot Token**
+ > Save the token immediately — it is only shown once
+4. Scroll down to **Privileged Gateway Intents** and enable:
+ - **MESSAGE CONTENT INTENT** — required to read message text
+ - **SERVER MEMBERS INTENT** — recommended for member lookup
+
+### Step 3: Set Bot Permissions and Invite to Server
+
+1. In the left sidebar, click **"OAuth2"** → **"URL Generator"**
+2. Under **Scopes**, check:
+ - \`bot\`
+ - \`applications.commands\` (for slash command support)
+3. Under **Bot Permissions**, check:
+ - Send Messages
+ - Read Message History
+ - Add Reactions
+ - Manage Messages (optional, for message deletion)
+ - Create Public Threads (optional)
+4. Copy the generated URL at the bottom, open it in a browser, and select the server to add the bot
+
+### Step 4: Connect via CLI
+
+\`\`\`bash
+lh bot add -a <agentId> \\
+ --platform discord \\
+ --app-id <applicationId> \\
+ --public-key <publicKey> \\
+ --bot-token <botToken>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Notes
+
+- **Message Content Intent** is critical — without it, the bot receives empty message content
+- Apps with 100+ servers must apply for Discord verification to use privileged intents
+- If you regenerate the bot token, the old one immediately stops working — update the bot config with \`lh bot update\`
+- Discord uses a WebSocket gateway (not webhooks) — \`lh bot connect\` keeps the connection alive
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-feishu.ts b/packages/builtin-skills/src/lobehub/references/bot-feishu.ts
new file mode 100644
index 00000000000..667a8b88486
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-feishu.ts
@@ -0,0 +1,115 @@
+const content = `# Feishu (飞书) Bot Setup Guide
+
+Connect a Feishu custom app bot to your agent.
+
+**Developer Console:** https://open.feishu.cn/app
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Application ID (App ID) | Yes | Your app's unique identifier |
+| App Secret | Yes | App authentication secret |
+| Verification Token | No | Validates webhook requests come from Feishu |
+| Encrypt Key | No | AES key for encrypting webhook payloads |
+
+## Connection Modes
+
+- **WebSocket** (recommended) — SDK maintains persistent connection; no public URL needed
+- **Webhook** — Feishu POSTs events to your public HTTPS URL
+
+## Step-by-Step Setup
+
+### Step 1: Create a Custom App
+
+1. Go to https://open.feishu.cn/app and sign in with your Feishu account
+2. Click **"创建自建应用"** (Create Custom App)
+3. Enter app name, description, and upload an icon
+4. Click **"创建"** (Create)
+
+### Step 2: Get App ID and App Secret
+
+1. In the left sidebar, click **"凭证与基础信息"** (Credentials & Basic Info)
+2. Copy:
+ - **App ID** (应用ID)
+ - **App Secret** (应用密钥) — click "查看" (View) to reveal
+
+### Step 3: Enable Bot Capability
+
+1. In the left sidebar, click **"应用能力"** (App Capabilities) → **"机器人"** (Bot)
+2. Click **"开启机器人能力"** (Enable Bot)
+3. (Optional) Set a custom bot name
+
+### Step 4: Configure Event Subscriptions
+
+#### Option A: WebSocket Long Connection (Recommended)
+
+1. In the left sidebar, click **"事件与回调"** (Events & Callbacks) → **"事件配置"** (Event Configuration)
+2. Select **"使用长连接接收事件"** (Use long connection to receive events)
+3. Under **"添加事件"** (Add Events), add:
+ - **im.message.receive_v1** — receive messages sent to the bot
+4. Grant required permissions when prompted:
+ - \`im:message\` — read and send messages
+5. Click **"保存"** (Save)
+
+#### Option B: Webhook Mode
+
+1. Select **"使用 Webhook 接收事件"** (Use webhook to receive events)
+2. Enter your public HTTPS **Request URL**
+3. Feishu sends a \`url_verification\` challenge — your server must return the challenge value
+4. Add the same events as above
+
+### Step 5: Get Verification Token and Encrypt Key (Webhook Only)
+
+1. In **"事件与回调"** → **"加密策略"** (Encryption Strategy)
+2. Copy:
+ - **Verification Token** (验证Token)
+ - **Encrypt Key** (加密Key) — click to generate if not yet created
+
+### Step 6: Add Required Permissions
+
+1. In the left sidebar, click **"权限管理"** (Permission Management)
+2. Search and add:
+ - \`im:message\` — receive and send messages
+ - \`im:message.group_at_msg\` — receive @bot messages in groups (if needed)
+3. Publish the app (see Step 7) for permissions to take effect
+
+### Step 7: Publish the App
+
+1. In the left sidebar, click **"版本管理与发布"** (Version Management & Release)
+2. Click **"创建版本"** (Create Version)
+3. Fill in version notes → click **"保存"** (Save)
+4. Click **"申请发布"** (Apply for Release)
+5. The org admin receives a review request — they approve in the Admin Console
+6. Once approved, the bot becomes available in the organization
+
+### Step 8: Connect via CLI
+
+\`\`\`bash
+lh bot add -a <agentId> \\
+ --platform feishu \\
+ --app-id <appId> \\
+ --app-secret <appSecret>
+
+# Optional: with webhook verification
+lh bot add -a <agentId> \\
+ --platform feishu \\
+ --app-id <appId> \\
+ --app-secret <appSecret> \\
+ --verification-token <token> \\
+ --encrypt-key <key>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Notes
+
+- **WebSocket mode** (长连接) skips the need for a public URL and is the fastest to set up
+- Every change to permissions, events, or app info requires creating a new version and re-publishing
+- \`im.message.receive_v1\` is the key event — without it the bot receives no messages
+- Feishu does not render Markdown — use plain text or Feishu's card format for rich messages
+- The App Secret is sensitive; rotate it in the console if compromised (old secret stops working immediately)
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-lark.ts b/packages/builtin-skills/src/lobehub/references/bot-lark.ts
new file mode 100644
index 00000000000..7fc3fa2a2a3
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-lark.ts
@@ -0,0 +1,122 @@
+const content = `# Lark Bot Setup Guide
+
+Connect a Lark custom app bot to your agent. Lark is the international version of Feishu — setup is nearly identical.
+
+**Developer Console:** https://open.larksuite.com/app
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Application ID (App ID) | Yes | Your app's unique identifier |
+| App Secret | Yes | App authentication secret |
+| Verification Token | No | Validates webhook requests come from Lark |
+| Encrypt Key | No | AES key for encrypting webhook payloads |
+
+## Connection Modes
+
+- **WebSocket** (recommended) — SDK maintains persistent connection; no public URL needed
+- **Webhook** — Lark POSTs events to your public HTTPS URL
+
+## Step-by-Step Setup
+
+### Step 1: Create a Custom App
+
+1. Go to https://open.larksuite.com/app and sign in with your Lark account
+2. Click **"Create Custom App"**
+3. Enter app name, description, and upload an icon
+4. Click **"Create"**
+
+### Step 2: Get App ID and App Secret
+
+1. In the left sidebar, click **"Credentials"** (or **"Credentials & Basic Info"**)
+2. Copy:
+ - **App ID**
+ - **App Secret** — click "Show" or "Copy" to reveal
+
+### Step 3: Enable Bot Capability
+
+1. In the left sidebar, go to **"Features"** → **"Bot"**
+2. Enable the Bot feature
+3. (Optional) Set a custom bot name
+
+### Step 4: Configure Event Subscriptions
+
+#### Option A: WebSocket (Recommended)
+
+1. In the left sidebar, click **"Events & Callbacks"** → **"Event Configuration"**
+2. Select **"Use long connection to receive events"** (WebSocket mode)
+3. Under **"Add Events"**, add:
+ - **im.message.receive_v1** — receive messages sent to the bot
+4. Grant the required permission \`im:message\` when prompted
+5. Click **"Save"**
+
+#### Option B: Webhook Mode
+
+1. Select **"Send callbacks to developer server"**
+2. Enter your public HTTPS **Request URL**
+3. Lark sends a \`challenge\` parameter for URL verification — your server must return it
+4. Add the same events as above
+
+### Step 5: Get Verification Token and Encrypt Key (Webhook Only)
+
+1. In **"Events & Callbacks"** → **"Encryption Strategy"**
+2. Copy:
+ - **Verification Token**
+ - **Encrypt Key** — generate one if not yet created
+
+### Step 6: Add Required Permissions
+
+1. In the left sidebar, click **"Permissions & Scopes"**
+2. Add:
+ - \`im:message\` — send and receive messages
+ - \`im:message.group_at_msg:readonly\` — receive @bot mentions in groups (if needed)
+
+### Step 7: Publish the App
+
+1. In the left sidebar, click **"App Release"** or **"Version Management"**
+2. Create a new version with release notes
+3. Submit for review — workspace admin approves in **Admin → Workplace → App Review**
+4. Once approved, admin sets the availability range (all users or specific teams)
+5. The bot becomes available to users in the workspace
+
+### Step 8: Connect via CLI
+
+\`\`\`bash
+lh bot add -a <agentId> \\
+ --platform lark \\
+ --app-id <appId> \\
+ --app-secret <appSecret>
+
+# Optional: with webhook verification
+lh bot add -a <agentId> \\
+ --platform lark \\
+ --app-id <appId> \\
+ --app-secret <appSecret> \\
+ --verification-token <token> \\
+ --encrypt-key <key>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Differences from Feishu
+
+| Aspect | Feishu (Chinese) | Lark (International) |
+|--------|-----------------|----------------------|
+| Console URL | open.feishu.cn | open.larksuite.com |
+| Data center | China (Beijing) | International (Singapore) |
+| Language | Chinese UI | English UI |
+| API compatibility | Same spec | Same spec |
+| Publishing | Admin Console review | Admin → Workplace → App Review |
+
+## Notes
+
+- Lark and Feishu share the same API spec — the same event types, permission names, and bot capabilities apply
+- \`im.message.receive_v1\` is the critical event for receiving messages
+- Lark may send duplicate events — use \`message_id\` for deduplication, not \`event_id\`
+- Lark does not render Markdown natively — use plain text or Lark's card message format
+- Message deduplication: rate limit is 100 requests/minute per bot, 5 requests/second
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-qq.ts b/packages/builtin-skills/src/lobehub/references/bot-qq.ts
new file mode 100644
index 00000000000..7030ae7a9bb
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-qq.ts
@@ -0,0 +1,116 @@
+const content = `# QQ Bot Setup Guide
+
+Connect a QQ Official Bot to your agent.
+
+**Developer Portal:** https://q.qq.com/
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Application ID (App ID) | Yes | Your bot's numeric App ID |
+| App Secret | Yes | Bot authentication secret |
+
+## Connection Modes
+
+- **WebSocket** — bot maintains persistent gateway connection
+- **Webhook** — QQ POSTs events to your public HTTPS URL (ports 80, 443, 8080, 8443 only)
+
+## Prerequisites
+
+- QQ account with **real-name verification** completed (required before creating any bot)
+- Developer account registration on the QQ Open Platform (enterprise or individual)
+
+## Step-by-Step Setup
+
+### Step 1: Register as a Developer
+
+1. Go to https://q.qq.com/ and log in with QQ
+2. Scan the QR code with your phone QQ to authenticate
+3. Complete developer registration:
+ - **Enterprise**: provide business license and bank verification
+ - **Individual**: complete identity verification via manager binding
+4. Real-name verification must be done in QQ client settings first if not already done
+
+### Step 2: Create a Bot Application
+
+1. In the QQ Open Platform dashboard, click **"创建机器人"** (Create Bot)
+2. Fill in:
+ - Bot name
+ - Bot avatar/icon
+ - Scenario type (single chat, group chat, or guild/channel)
+3. Submit — the platform immediately creates a new bot account
+ > Note: maximum 5 bots per QQ account
+
+### Step 3: Get App ID and App Secret
+
+1. In the bot management page, go to **"开发"** (Development) → **"开发设置"** (Development Settings)
+2. Copy:
+ - **AppID** — your bot's numeric identifier
+ - **AppSecret** — click to reveal
+ > **Critical**: Save AppSecret immediately — if you navigate away, you must regenerate it (no recovery)
+
+### Step 4: Configure Permissions (Intents)
+
+QQ bots use intent flags to subscribe to event types:
+
+| Intent | Bit | Description |
+|--------|-----|-------------|
+| GUILD_MESSAGES | 1 << 9 | All messages in guild channels (private bots only) |
+| PUBLIC_GUILD_MESSAGES | 1 << 30 | @bot mentions in guilds (public bots) |
+| DIRECT_MESSAGE | 1 << 12 | Private/direct messages |
+| GROUP_AND_C2C_EVENT | 1 << 25 | Group chat and 1-on-1 messages |
+
+Base intents (GUILDS, GUILD_MEMBERS) are enabled by default and need no approval.
+Some specialized events require explicit approval from Tencent.
+
+### Step 5: Configure Webhook or WebSocket
+
+#### Webhook Mode
+
+1. In the bot settings, set **Callback URL** (must be HTTPS, ports: 80/443/8080/8443)
+2. Enable the event types you want to subscribe to
+3. QQ validates the endpoint by sending a challenge request
+
+#### WebSocket Mode
+
+- LobeHub's \`lh bot connect\` handles the WebSocket gateway automatically
+- No URL configuration needed — just provide AppID and AppSecret
+
+### Step 6: Configure IP Whitelist
+
+1. In development settings, add your server's IP address to the **IP whitelist**
+2. IP whitelist is required — without it, API calls and bot launch are blocked
+3. For LobeHub-hosted bots, contact support for the outbound IP range to whitelist
+
+### Step 7: Test in Sandbox, Then Submit for Review
+
+1. Configure sandbox environment for testing at: https://sandbox.api.sgroup.qq.com
+2. Add sandbox-specific QQ groups, channels, or users for testing
+3. Complete all self-testing
+4. Submit the bot for Tencent review in the portal
+5. After manual approval, the bot can be activated and added in QQ client
+
+### Step 8: Connect via CLI
+
+\`\`\`bash
+lh bot add -a <agentId> \\
+ --platform qq \\
+ --app-id <appId> \\
+ --app-secret <appSecret>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Notes
+
+- **Real-name verification is mandatory** — cannot create a bot without it
+- **AppSecret is not recoverable** — save it when first generated, or regenerate if lost
+- **All bots require Tencent manual review** before going live — allow several business days
+- **IP whitelist is required** for production — configure before deployment
+- QQ bots do not support Markdown or message editing
+- Each bot has an isolated OpenID namespace — you cannot use one bot's user OpenIDs with another bot's API
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-slack.ts b/packages/builtin-skills/src/lobehub/references/bot-slack.ts
new file mode 100644
index 00000000000..61e6737c2c4
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-slack.ts
@@ -0,0 +1,102 @@
+const content = `# Slack Bot Setup Guide
+
+Connect a Slack bot to your agent.
+
+**Developer Portal:** https://api.slack.com/apps
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Application ID | Yes | Your Slack App ID |
+| Bot Token | Yes | Starts with \`xoxb-\` |
+| Signing Secret | Yes | Verifies requests come from Slack |
+| App Token | No | Starts with \`xapp-\`; required for Socket Mode (WebSocket) |
+
+## Connection Modes
+
+- **WebSocket (Socket Mode)** — bot maintains persistent connection; no public URL needed; requires App Token
+- **Webhook** — Slack POSTs events to a public HTTPS URL you provide
+
+## Step-by-Step Setup
+
+### Step 1: Create a Slack App
+
+1. Go to https://api.slack.com/apps
+2. Click **"Create New App"** → choose **"From scratch"**
+3. Enter an app name and select your development workspace → **"Create App"**
+4. You land on the **Basic Information** page. Copy:
+ - **App ID** (under "App Credentials" section)
+ - **Signing Secret** (click "Show" under "App Credentials" → copy)
+
+### Step 2: Configure Bot Token Scopes
+
+1. In the left sidebar, click **"OAuth & Permissions"**
+2. Scroll to **"Bot Token Scopes"** → click **"Add an OAuth Scope"**
+3. Add these scopes:
+ - \`chat:write\` — send messages
+ - \`channels:read\` — list public channels
+ - \`channels:history\` — read messages in public channels
+ - \`groups:read\` / \`groups:history\` — private channels
+ - \`im:read\` / \`im:history\` — direct messages
+ - \`reactions:read\` / \`reactions:write\` — emoji reactions
+ - \`pins:read\` / \`pins:write\` — pin messages
+ - \`users:read\` — look up member info
+4. Scroll up and click **"Install to Workspace"** → **"Allow"**
+5. After installation, copy the **Bot User OAuth Token** (starts with \`xoxb-\`)
+
+### Step 3A: Set Up Event Subscriptions (Webhook Mode)
+
+1. In the left sidebar, click **"Event Subscriptions"**
+2. Toggle **"Enable Events"** ON
+3. Enter your public HTTPS webhook URL in **"Request URL"**
+ - Slack sends a challenge to verify — your server must respond
+4. Under **"Subscribe to bot events"**, add:
+ - \`message.channels\` — messages in public channels
+ - \`message.groups\` — messages in private channels
+ - \`message.im\` — direct messages
+ - \`app_mention\` — when bot is @mentioned
+5. Click **"Save Changes"**
+
+### Step 3B: Set Up Socket Mode (WebSocket — No Public URL Needed)
+
+1. In the left sidebar, click **"Socket Mode"**
+2. Toggle **"Enable Socket Mode"** ON
+3. Go to **"Basic Information"** → scroll to **"App-Level Tokens"**
+4. Click **"Generate Token and Scopes"**
+5. Give the token a name, add scope: **\`connections:write\`**
+6. Click **"Generate"** → copy the **App-Level Token** (starts with \`xapp-\`)
+7. Go to **"Event Subscriptions"** and subscribe to the same bot events as Step 3A
+ (No Request URL needed in Socket Mode)
+
+### Step 4: Connect via CLI
+
+\`\`\`bash
+# Webhook mode
+lh bot add -a <agentId> \\
+ --platform slack \\
+ --app-id <appId> \\
+ --bot-token <xoxbToken> \\
+ --signing-secret <signingSecret>
+
+# Socket Mode (WebSocket) — also pass App Token
+lh bot add -a <agentId> \\
+ --platform slack \\
+ --app-id <appId> \\
+ --bot-token <xoxbToken> \\
+ --signing-secret <signingSecret> \\
+ --app-token <xappToken>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Notes
+
+- **Bot Token vs User Token**: always use the \`xoxb-\` Bot Token — never use \`xoxp-\` User Tokens unless explicitly needed
+- **Socket Mode** is recommended for development (no public URL needed) and is required if your server is behind a firewall
+- Signing Secret validates that inbound webhook POST requests are genuinely from Slack
+- If you add new scopes, reinstall the app to the workspace (a banner will appear at the top of the OAuth page)
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-telegram.ts b/packages/builtin-skills/src/lobehub/references/bot-telegram.ts
new file mode 100644
index 00000000000..7ae601918ac
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-telegram.ts
@@ -0,0 +1,62 @@
+const content = `# Telegram Bot Setup Guide
+
+Connect a Telegram bot to your agent.
+
+**Bot Creation:** https://t.me/BotFather
+
+## Required Credentials
+
+| Field | Required | Description |
+|-------|----------|-------------|
+| Bot Token | Yes | Authentication token from BotFather |
+| Secret Token | No | Custom token for webhook request verification |
+
+## Step-by-Step Setup
+
+### Step 1: Create a Bot via BotFather
+
+1. Open Telegram and search for **@BotFather** (verified with blue checkmark)
+2. Send the command: \`/newbot\`
+3. BotFather will ask for:
+ - **Bot name** — display name (e.g., "My Assistant")
+ - **Bot username** — must end in \`bot\` (e.g., \`myassistant_bot\`)
+4. BotFather replies with the **Bot Token** in the format \`1234567890:ABCdef...\`
+ > Save this token — you can retrieve it later with \`/token\` in BotFather
+
+### Step 2: (Optional) Configure Bot Behavior
+
+Send commands to @BotFather to adjust settings:
+
+- \`/setprivacy\` → select your bot → **Disable** — allows bot to see all group messages (not just commands)
+- \`/setjoingroups\` → **Enable** — allows the bot to be added to groups
+- \`/setcommands\` → define command list shown in Telegram's menu UI
+- \`/setdescription\` → set the bot's description shown on the profile page
+- \`/setuserpic\` → set the bot's avatar
+
+### Step 3: Get the Bot's Numeric ID (for --app-id)
+
+The Bot Token has the format \`1234567890:ABCdef...\` — the numeric part before the colon is the bot's ID. Use it as \`--app-id\`.
+
+Alternatively, send \`/mybots\` to @BotFather → select your bot → **API Token** to see the full token again.
+
+### Step 4: Connect via CLI
+
+\`\`\`bash
+lh bot add -a <agentId> \\
+ --platform telegram \\
+ --app-id <numericBotId> \\
+ --bot-token <botToken>
+
+lh bot test <botId>
+lh bot connect <botId>
+\`\`\`
+
+## Notes
+
+- **App ID** is the numeric bot ID extracted from the token prefix (e.g. token \`987654321:XYZ...\` → app-id \`987654321\`)
+- **Secret Token** (optional): a custom string you define; LobeHub includes it in webhook requests so you can verify they genuinely come from LobeHub — leave blank unless you have a security requirement
+- Telegram does not have native message search; use \`lh bot message read\` with pagination instead
+- If you lose the token, retrieve it by sending \`/token\` (then select your bot) to @BotFather
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot-wechat.ts b/packages/builtin-skills/src/lobehub/references/bot-wechat.ts
new file mode 100644
index 00000000000..e1724ebacd9
--- /dev/null
+++ b/packages/builtin-skills/src/lobehub/references/bot-wechat.ts
@@ -0,0 +1,55 @@
+const content = `# WeChat Bot Setup Guide
+
+Connect a WeChat bot to your agent via iLink API.
+
+**Setup Guide:** https://lobehub.com/docs/usage/channels/wechat
+
+## Credentials
+
+WeChat credentials (bot token) are populated by the **Web UI QR scan flow** — they cannot be set up via CLI alone.
+
+## Connection Mode
+
+WeChat uses **polling** mode (long-polling) — no webhook URL or WebSocket setup needed.
+
+## Setup: Use the Web UI
+
+WeChat requires a QR code scan to link your account, which is only supported through the LobeHub Web UI:
+
+1. Open your agent in LobeHub
+2. In the left sidebar, click **消息频道** (Message Channel)
+3. Select **WeChat** from the platform list on the right
+4. A QR code is displayed — scan it with WeChat to authenticate
+5. Once scanned, credentials are saved automatically and the bot connects
+
+> WeChat cannot be set up via CLI. The \`lh bot connect\` command only starts an already-configured provider and does not perform the QR authentication flow.
+
+## After Web UI Setup: CLI Operations
+
+Once the bot is configured via Web UI, you can use CLI to manage and monitor it:
+
+\`\`\`bash
+# Check bot status
+lh bot list -a <agentId>
+
+# Reconnect if disconnected
+lh bot connect <botId>
+
+# Send a message
+lh bot message send <botId> --target <conversationId> --message "Hello"
+\`\`\`
+
+## Limitations
+
+- No message editing support (WeChat API restriction)
+- Character limit: 2048 characters per message
+- No native Markdown rendering — WeChat displays plain text
+
+## Notes
+
+- WeChat uses iLink Bot API — no developer portal setup is needed
+- The QR code session expires periodically; reconnect via Web UI when it does
+- Default debounce is 5 seconds (higher than other platforms) due to WeChat's polling architecture
+`;
+
+export default content;
diff --git a/packages/builtin-skills/src/lobehub/references/bot.ts b/packages/builtin-skills/src/lobehub/references/bot.ts
index 8b6935aac4e..de86b814618 100644
--- a/packages/builtin-skills/src/lobehub/references/bot.ts
+++ b/packages/builtin-skills/src/lobehub/references/bot.ts
@@ -42,6 +42,7 @@ Discord, Slack, Telegram, Lark, Feishu
- Each platform requires specific credentials (token, app ID, secrets)
- Use \`lh bot connect\` to start a long-running bot connection
- Use \`lh bot message read\` with \`--json\` for batch message retrieval — ideal for processing large volumes of messages
+- For step-by-step platform setup instructions, read the platform-specific reference under \`references/bot/\`: \`discord\`, \`telegram\`, \`slack\`, \`feishu\`, \`lark\`, \`qq\`, \`wechat\`
`;
export default content;