ext-wecom-bot
Enterprise WeCom AI Bot channel extension example for AionUI.
What this example covers
- WeCom Bot-mode callback verification (
GET) - Encrypted webhook payload handling (
POST) - Stream-style polling response (
msgtype=stream) response_urlsingle-use fallback when stream context is unavailable- Bridging inbound message to AionUI unified channel pipeline
- Dist-first extension entrypoints (
dist/*) with source wrappers for development
How to run
- Start app with extension examples:
just dev-ext
- Open Settings -> Channels ->
企业微信 AI Bot (Example). - Fill:
token: WeCom AI Bot callback tokenencodingAesKey: 43-char EncodingAESKey
- Enable the channel.
- (Optional) Fill
Public Base URLwith your public HTTPS origin, e.g.https://bot.example.com.
Webhook URL
Use:
http://<your-host>:<webui-port>/ext-wecom-bot/webhook
For local desktop default:
http://127.0.0.1:25808/ext-wecom-bot/webhook
Notes
- This is an ecosystem example for extension channel capability validation.
- It intentionally stays framework-light (
CommonJS) to keep compatibility with current extension loader. - LAN remote access is useful for local testing, but WeCom callback usually requires a publicly reachable HTTPS URL.