Capabilities
| Feature | Supported |
|---|---|
| 1:1 messages | Yes |
| Passive response | Yes |
| Text messages | Yes |
| Rich media | Yes |
| Menu buttons | Yes |
| Template messages | Yes |
| Webhook | Yes |
Requirements
- WeChat Official Account (Subscription or Service Account)
- Business verification for advanced features
- Server with public HTTPS URL
Setup
Register a WeChat Official Account
Apply at mp.weixin.qq.com. Service Accounts have more API access than Subscription Accounts.
Enable developer mode
Go to Settings > Official Account Settings > Features > Developer and enable the developer mode.
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)
Environment Variables
WeChat Official Account AppID.
WeChat Official Account AppSecret.
Server token for webhook verification.
43-character AES key for encrypted message mode.
Configuration Example
- .env
- settings.yml
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).
Related
- Chat Providers Overview - Compare all 27 supported channels
- Zalo - Leading messaging platform in Vietnam
- LINE - Dominant messaging platform in Japan and Taiwan
- profclaw channels - Enable and test the WeChat connection from the CLI