Skip to main content

WeChat channels in Pragma

Pragma supports three different WeChat-related products. They are not interchangeable.

ProductChineseAPI in PragmaUse case
WeCom企业微信Yes — /webhooks/wecomB2B sales teams on company WeCom
WeChat Official Account微信公众号 / 服务号Yes — /webhooks/wechat-oaFans message your verified 公众号
Personal WeChat个人微信NoPrivate 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 (公众号)

  1. Register a verified Official Account on WeChat Open Platform.
  2. In Pragma: Integrations → WeChat (公众号) or workspace secrets for WeChat OA.
  3. Set WECHAT_OA_APP_ID, WECHAT_OA_TOKEN, WECHAT_OA_ENCODING_AES_KEY (optional WECHAT_OA_APP_SECRET).
  4. In WeChat console → server config: URL https://<your-host>/webhooks/wechat-oa, matching token/AES, safe mode.
  5. Fan text messages appear in the inbox as WeChat 公众号.

Compare with WhatsApp

See WhatsApp channels.