Messaging Channels
Yunque Agent supports 16+ messaging channels out of the box. Users can interact with the Agent through any preferred messaging platform.
Supported Channels
| Channel | Config Variables | Features |
|---|---|---|
| Telegram | TELEGRAM_BOT_TOKEN | Rich text, inline keyboards, stickers, callbacks |
| Feishu (Lark) | FEISHU_APP_ID, FEISHU_APP_SECRET | Message cards, approval cards, sticker set learning |
| Discord | DISCORD_BOT_TOKEN | Embeds, buttons, slash commands |
| Slack | SLACK_BOT_TOKEN | Block Kit |
WHATSAPP_TOKEN | Message templates | |
| Signal | SIGNAL_CLI_PATH | End-to-end encryption |
EMAIL_IMAP_*, EMAIL_SMTP_* | IMAP polling + SMTP sending | |
| WeCom | WECOM_CORPID, WECOM_AGENT_ID | Application messages |
| DingTalk | DINGTALK_CLIENT_ID | Work notifications |
| WeChat Official | WECHAT_OA_APPID | Follow/message events |
| LINE | LINE_CHANNEL_SECRET | Flex Message |
| Kook | KOOK_TOKEN | Card messages |
QQ_APP_ID | QQ Official Bot | |
| Satori | SATORI_ENDPOINT | Unified chat protocol |
| WebChat | Built-in | Frontend web chat |
| WebSocket | Built-in | Real-time bidirectional |
Channel Resilience
Every channel is auto-wrapped with ResilientChannel:
- Circuit Breaker: Trips on consecutive failures, auto-recovery after cooldown
- Rate Limiting: Sliding window throttle per channel
- Offline Queue: Messages cached during disconnection, delivered on reconnect
- Health Monitoring: Independent health status + lifecycle management per channel
Rich Message Components
12 message component types supported: Text, Image, Audio, Video, File, @Mention, Button, Link, Card, Location, Quote Reply, Carousel.
Unsupported components auto-degrade (e.g., buttons degrade to numbered text options).
Sticker System
- Emotion → Sticker: Auto emotion analysis after reply, probabilistic sticker attachment
- Sticker Learning:
/add,/add-allcommands for learning user stickers - Sticker Set Fetch: Batch import Telegram sticker sets, Feishu sticker packs
- Per-Platform: Each channel manages stickers independently
Slash Commands
Universal commands across all IM channels:
| Command | Function |
|---|---|
/think [none|auto|deep] | Switch thinking mode |
/status | View Agent status |
/mission <description> | Create scheduled task via natural language |
/help | Command help |
Progress Tracking
Channels with ProgressSender support (Telegram, Feishu) show real-time execution progress by editing a "thinking..." message during multi-step execution.