WeCom
This is a shipped runtime-backed surface: direct sends are implemented, the serve loop is implemented, and the channel can joinmulti-channel-serve or gateway run.
At A Glance
| Field | Value |
|---|---|
| Catalog id | wecom |
| Config key | wecom |
| Implementation status | runtime_backed |
| Transport | wecom_aibot_long_connection |
| Aliases | wechat-work, qywx |
| Default send target kind | conversation |
Minimal Config
Smoke Test
Command Surface
| Operation | Command | Usage or status |
|---|---|---|
| proactive send | wecom-send | Usage: loong wecom-send [OPTIONS] —target <TARGET> —text <TEXT> |
| long connection reply loop | wecom-serve | Usage: loong wecom-serve [OPTIONS] |
Required Fields For Send
| Requirement | Config paths | Env pointer paths | Default env |
|---|---|---|---|
| channel enabled | wecom.enabledwecom.accounts.<account>.enabled | none | none |
| aibot bot id | wecom.bot_idwecom.accounts.<account>.bot_id | wecom.bot_id_envwecom.accounts.<account>.bot_id_env | WECOM_BOT_ID |
| aibot secret | wecom.secretwecom.accounts.<account>.secret | wecom.secret_envwecom.accounts.<account>.secret_env | WECOM_SECRET |
Required Fields For Serve
| Requirement | Config paths | Env pointer paths | Default env |
|---|---|---|---|
| channel enabled | wecom.enabledwecom.accounts.<account>.enabled | none | none |
| aibot bot id | wecom.bot_idwecom.accounts.<account>.bot_id | wecom.bot_id_envwecom.accounts.<account>.bot_id_env | WECOM_BOT_ID |
| aibot secret | wecom.secretwecom.accounts.<account>.secret | wecom.secret_envwecom.accounts.<account>.secret_env | WECOM_SECRET |
| allowed conversation ids | wecom.allowed_conversation_idswecom.accounts.<account>.allowed_conversation_ids | none | none |
Optional Transport Tuning
| Tuning field | Config paths | Why it exists |
|---|---|---|
| websocket url override | wecom.websocket_urlwecom.accounts.<account>.websocket_url | controlled environments, bridge setups, or diagnostics |
| ping interval seconds | wecom.ping_interval_swecom.accounts.<account>.ping_interval_s | tune keepalive cadence for the network path |
| reconnect interval seconds | wecom.reconnect_interval_swecom.accounts.<account>.reconnect_interval_s | tune retry behavior after disconnects |
Gateway And Ownership
This surface can run directly through its own*-serve command, or under Gateway And Supervision through multi-channel-serve and gateway run.
Operator Notes
- Loong documents WeCom as the official AIBot long-connection lane. Do not describe a webhook callback mode as if it were the same shipped contract.
websocket_url,ping_interval_s, andreconnect_interval_sare tuning knobs, not day-zero requirements for a basic rollout.
Related Docs
- Continue to Channel Guides for the full shipped channel matrix.
- Continue to Channels for the conceptual surface model.
- Continue to Channel Setup for the shared public setup contract.
- Continue to Gateway And Supervision when this surface needs longer-lived runtime ownership.