docs/usage/channels/wechat.mdx
By connecting a WeChat channel to your LobeHub agent, users can interact with the AI assistant through WeChat private chats and group conversations.
In LobeHub, navigate to your agent's settings, then select the Channels tab. Click WeChat from the platform list.
On the WeChat channel page, click the Scan QR Code to Connect button. A modal dialog will appear displaying a QR code.
Open WeChat on your phone, go to Scan (via the + button in the top right), and scan the QR code displayed in LobeHub.
After scanning, a confirmation prompt will appear in WeChat. Tap Confirm to authorize the connection.
Once confirmed, LobeHub will automatically save your credentials and connect the bot. You should see a success message in the channel settings. </Steps>
Open WeChat, find your bot contact, and send a message. The bot should respond through your LobeHub agent.
To use the bot in WeChat groups:
| Setting | Default | Description |
|---|---|---|
| Character Limit | 2000 | Maximum characters per message (range: 100–2000) |
| Message Merge Window | 2000 ms | How long to wait for additional messages before replying |
| Show Usage Stats | Off | Display token/cost stats in replies |
Unlike webhook-based platforms (Telegram, Slack), WeChat uses a long-polling mechanism via the iLink Bot API:
This polling is managed by a background cron job, so the connection is maintained automatically.