WeCom Rollout
Use this playbook when WeCom is the enterprise chat surface that should own the shipped long-lived runtime. This page is specifically about the current public contract:- WeCom is documented as the official AIBot long-connection lane
- it is not documented as a webhook callback integration
gateway runcomes afterwecom-serve, not instead of the basic runtime validation
When This Is The Right Playbook
- the deployment is already standardized on WeCom
- one hosted provider should back the runtime clearly
- proactive sends and reply-loop behavior should share the same account identity
- you want stable work versus alerts accounts before gateway selectors enter the story
Use A Different Playbook If
| If you actually need… | Go here instead |
|---|---|
| Feishu or Lark as the primary team-chat runtime | Volcengine Plus Feishu Or Lark |
| BytePlus Coding plus Telegram | BytePlus Coding Plus Telegram |
| one host supervising several already-healthy runtime-backed channels | Gateway Rollout |
Step 1: Bring Up The Provider First
Step 2: Start With A Single WeCom Account
- the official websocket URL is used by default
- override
websocket_urlonly for controlled environments or bridge setups ping_interval_sandreconnect_interval_sare the right knobs when the network path needs tuning
Step 3: Move To Stable Named Accounts
Use named accounts before you introduce selectors or longer-lived gateway ownership.default_accountmakes the normal lane explicitaccounts.<id>creates stable selector targets such asworkandalerts- gateway ownership stays legible instead of depending on whichever secret was most recently pasted into the top level
Step 4: Choose Serve Or Gateway Ownership
Foreground single-account validation:wecom-serve first during rollout. Use gateway run after the account and
conversation boundary are already trusted.
Step 5: Keep The Public Contract Truthful
Rules that should stay explicit:- WeCom is the shipped AIBot long-connection lane
- it should not be described as if a webhook callback mode were the same supported path
- outbound-only surfaces still do not join this reply-loop ownership model
Troubleshooting
| Symptom | What to check |
|---|---|
wecom-send works but wecom-serve is unstable | tune ping_interval_s and reconnect_interval_s, then confirm the account and conversation ids are still the intended trust boundary |
gateway run --channel-account wecom=work fails | make sure wecom.accounts.work exists before using the selector |
| replies arrive in the wrong conversation | review allowed_conversation_ids before changing ownership mode |
| the team describes this as a webhook integration | fix the docs or runbook language; the shipped public contract is the AIBot long connection |
Continue Reading
- Continue to Common Setups for other end-to-end rollout shapes.
- Continue to Gateway And Supervision for the owner contract and selectors without the WeCom-specific rollout path.
- Continue to Channel Guides for the full shipped channel matrix.
- Continue to Channel Recipes for the broader channel recipe set.