WeChat channels in Pragma
Pragma supports three different WeChat-related products. They are not interchangeable.
| Product | Chinese | API in Pragma | Use case |
|---|---|---|---|
| WeCom | 企业微信 | Yes — /webhooks/wecom | B2B sales teams on company WeCom |
| WeChat Official Account | 微信公众号 / 服务号 | Yes — /webhooks/wechat-oa | Fans message your verified 公众号 |
| Personal WeChat | 个人微信 | No | Private 1:1 chat — no open B2B API |
What is NOT possible
- Connecting a salesperson’s personal WeChat (个人微信) inbox via an official API.
- Unofficial automation of private friend-to-friend messages (violates WeChat ToS).
For China B2B on WeCom, see Configure the WeCom callback.
Connect WeChat Official Account (公众号)
- Register a verified Official Account on WeChat Open Platform.
- In Pragma: Integrations → WeChat (公众号) or workspace secrets for WeChat OA.
- Set
WECHAT_OA_APP_ID,WECHAT_OA_TOKEN,WECHAT_OA_ENCODING_AES_KEY(optionalWECHAT_OA_APP_SECRET). - In WeChat console → server config: URL
https://<your-host>/webhooks/wechat-oa, matching token/AES, safe mode. - Fan text messages appear in the inbox as WeChat 公众号.
Compare with WhatsApp
See WhatsApp channels.