Skip to main content
WeChat is China’s dominant super-app. profClaw integrates via the WeChat Official Account (OA) platform for business messaging and automated responses.

Capabilities

FeatureSupported
1:1 messagesYes
Passive responseYes
Text messagesYes
Rich mediaYes
Menu buttonsYes
Template messagesYes
WebhookYes

Requirements

  • WeChat Official Account (Subscription or Service Account)
  • Business verification for advanced features
  • Server with public HTTPS URL

Setup

1

Register a WeChat Official Account

Apply at mp.weixin.qq.com. Service Accounts have more API access than Subscription Accounts.
2

Enable developer mode

Go to Settings > Official Account Settings > Features > Developer and enable the developer mode.
3

Configure server settings

Set:
  • Server URL: https://your-domain.com/webhooks/wechat
  • Token: your custom token
  • EncodingAESKey: generate or use the random one provided
  • Message encryption: Recommended (EncodingAESKey required)
4

Get App credentials

Under Development > Basic Configuration, copy AppID and AppSecret.
5

Configure profClaw

WECHAT_APP_ID=wx1234567890abcdef
WECHAT_APP_SECRET=your-app-secret
WECHAT_TOKEN=your-verify-token
WECHAT_ENCODING_AES_KEY=your-encoding-aes-key

Environment Variables

WECHAT_APP_ID
string
required
WeChat Official Account AppID.
WECHAT_APP_SECRET
string
required
WeChat Official Account AppSecret.
WECHAT_TOKEN
string
required
Server token for webhook verification.
WECHAT_ENCODING_AES_KEY
string
43-character AES key for encrypted message mode.

Configuration Example

WECHAT_APP_ID=wx1234567890abcdef
WECHAT_APP_SECRET=abc123...
WECHAT_TOKEN=my-verify-token
WECHAT_ENCODING_AES_KEY=yourRandomAESKey43Chars...

Notes

  • Status: Beta
  • WeChat’s API operates in a passive response model - it sends you a message and you must reply within 5 seconds.
  • For asynchronous (slow) responses, use customer service messages (requires Service Account).
  • WeChat server IPs must be whitelisted in the developer settings.
  • Template messages for proactive outreach require prior user consent and WeChat approval.
  • Server must be accessible from WeChat’s IP ranges (China-based).