Connecting a WeChat Official Account
Your followers write to your Official Account in WeChat, and the messages arrive in the same inbox as WhatsApp and Telegram, where you or your AI agent answer. The connection goes through WeChat's own interface for businesses, so it takes two pages open side by side: the WeChat console and DialogBrain.
- A verified Service Account. WeChat lets only verified Service Accounts answer followers from outside its own app. A Subscription Account, or one that has not passed verification, can be connected but its replies will be refused.
- Administrator access to the Official Account console at mp.weixin.qq.com. You will copy two values out of it and paste three values into it.
- Ten minutes with both pages open. WeChat checks the connection the moment you save it, so it is easier to finish in one sitting.
- Step 1
Copy the AppID and AppSecret from the WeChat console
In the Official Account console open Settings and Development (设置与开发), then Basic Configuration (基本配置). The AppID (开发者ID) is shown on the page. The AppSecret (开发者密码) is shown once when you press Reset or Enable; keep it somewhere safe, WeChat will not show it again.
On the same page there is an IP whitelist (IP白名单). Leave it for now: if WeChat needs an address there, DialogBrain will tell you exactly which one in the next step.
- Step 2
Paste them into DialogBrain
In the inbox, the gear above the channel filters opens Connections. On the Add New tab choose WeChat OA, paste the AppID and AppSecret and press Connect WeChat OA.
If you see "WeChat refused this server's IP address" followed by an address, copy that address into the IP whitelist from step one, save it there and press Connect again. If you see "Invalid AppSecret", the secret was reset since you copied it; copy the current one.

Connections → Add New → WeChat OA. - Step 3
Paste the URL, Token and EncodingAESKey into the WeChat console
DialogBrain now shows three values with a copy button next to each, and the line "Waiting for WeChat to check the URL". Go back to Basic Configuration in the WeChat console, find Server Configuration (服务器配置) and press Modify (修改配置). Paste the URL, the Token and the EncodingAESKey. Any message encryption mode works.
Press Submit (提交), then Enable (启用). WeChat checks the URL right away. Within a few seconds the line in DialogBrain turns green: "WeChat accepted the URL. Messages will arrive here." If the console reports a token error instead, copy the URL and Token again without a space before or after.
You can close the window and come back later. The account stays in Connections with a "Webhook not verified" mark, and Webhook details shows the same three values again.
- Step 4
Write to your account from your own phone
Follow your Official Account in WeChat if you have not already, and send it any message. It appears in the DialogBrain inbox within a second or two, under the WeChat OA filter. Answer it from the inbox and check that the reply arrives in WeChat.
This is the test worth doing before you tell customers anything: it proves both directions with the account you will really use.
What WeChat allows, and what it does not
You answer, you do not start. A conversation begins when a follower writes to you, and WeChat delivers your replies for 48 hours after their last message. After that the reply is refused until they write again. DialogBrain shows the refusal in plain words next to the message, so nothing is lost silently.
There is a limit on replies inside that window: up to five to each message a follower sends. One clear answer works better than six short ones, and an AI agent should be told the same in its instructions.
Text and images are delivered for every account. Voice and video replies depend on where the account is registered: WeChat may refuse them for accounts registered outside mainland China. Documents such as PDF cannot be sent through an Official Account at all; send a link instead.
Followers can send you text, photos, voice messages, video, a location or a link, and all of it arrives in the conversation.
Only messages that arrive after you connect are in DialogBrain. WeChat does not hand over earlier history.
Why a follower is called "WeChat user" and how to give them a name
WeChat does not share a follower's nickname or photo with an Official Account, so a new conversation is titled "WeChat user" and a short code.
To give someone a name, open User Management (用户管理) in the WeChat console and set a remark (备注) for that follower. DialogBrain uses the remark as the name of the conversation and the contact, and picks it up within an hour of the follower's next message. The other way is simply to ask: an agent that opens with "How should I address you?" has the name in the conversation from the first reply.
Putting an agent on the account
Connecting a channel does not put an agent on it. Until you assign one, the inbox is only an inbox and you answer yourself. When you do assign one, start in Draft mode: the agent writes, you approve. A day of reading its drafts tells you what to add to its instructions before it answers on its own.
Can I connect my personal WeChat instead of an Official Account?
This guide is about Official Accounts, the business accounts followers subscribe to. They connect through WeChat's official interface, which is the stable way to answer customers at scale.
Does a Subscription Account work, or do I need a Service Account?
You need a verified Service Account. WeChat only lets verified Service Accounts send replies from outside its own app. With a Subscription Account, messages may arrive but your answers will be refused.
My company is registered outside China. Can I get an Official Account?
Yes. WeChat registers Service Accounts for companies from most countries using the local business licence, and verifies them for a yearly fee. Choose the country your company is really registered in during sign-up; it cannot be changed afterwards.
Can I message a follower first, or send a broadcast?
Not through this connection. WeChat delivers a reply only within 48 hours of the follower's last message. Broadcasts to all followers are sent from the WeChat console itself.
Why did my reply fail?
Almost always for one of three reasons, and DialogBrain shows which: the follower last wrote more than 48 hours ago, the limit of replies to their last message is used up, or they have unfollowed the account. All three are lifted the moment they write again.
The account says "Webhook not verified". What do I do?
WeChat has not checked the URL yet, so no messages can arrive. Open the account in Connections, press Webhook details, and paste the three values into Server Configuration in the WeChat console as in step three. The mark disappears on its own once WeChat accepts them.
Is it safe to give DialogBrain the AppSecret?
The AppSecret is stored encrypted and is used only to send and receive messages for this account. You can reset it in the WeChat console at any time; after a reset, connect again with the new one and the URL and Token stay the same.
Can I connect several Official Accounts?
Yes. Run the steps once per account. Each gets its own URL and Token, they sit side by side in the same inbox, and each keeps its own agent.