WeChat Official Account Channel Configuration
This guide covers the WeChat Official Account adapter in Memoh. It is different from the personal WeChat QR-login adapter: this one is for official-account webhook integration and is intended for inbound private-message scenarios.
Step 1: Prepare Official Account Credentials
From the WeChat Official Account platform, prepare:
- App ID
- App Secret
- Token
You may also need:
- Encoding AES Key if you use encrypted webhook delivery
- an outbound HTTP Proxy URL if your deployment must reach WeChat APIs through a proxy
Step 2: Add The Channel In Memoh
- Open your bot in the Memoh Web UI.
- Go to Platforms.
- Click Add Channel and choose WeChat Official Account.
- Fill in the required fields:
- App ID
- App Secret
- Token
- Choose the Encryption Mode.
- If you use
safeorcompatmode, also provide the Encoding AES Key. - Save the channel.
Memoh generates a Webhook Callback URL after the channel has been saved.
Step 3: Configure The WeChat Platform
- Copy the Webhook Callback URL from Memoh.
- Paste it into the WeChat Official Account platform callback configuration.
- Make sure the WeChat platform and Memoh use the same:
- Token
- Encryption Mode
- Encoding AES Key when encryption is enabled
WeChat will verify the callback before delivering real messages.
Step 4: Enable And Test
- Enable the channel in Memoh.
- Send a test private message from the official account side.
- Confirm that Memoh receives the message and the bot can reply.
Features Supported
- Private chats
- Replies
- Attachments and media
Current behavior notes:
- This adapter is intended for private-message conversations, not group-style chats.
- Outbound responses are non-streaming on this channel.