# Connect WeChat Official Account

Prepare your WeChat Service Account, connect it in three steps and answer your followers from the shared inbox.

Source: https://support.rework.com/article/prospect-wechat

Connecting a WeChat Official Account brings every chat with its followers into the shared inbox, so your team answers WeChat next to every other channel. Setup happens in two places: you prepare the account on the WeChat side, connect it in Prospect, then paste the server address Prospect gives you back into WeChat's message push settings.

## Before you start

- A **verified Service Account** (服务号 that has completed 微信认证). Only a verified Service Account can reply from the inbox and send template messages. An unverified account or a Subscription Account can receive messages but cannot answer them from here.
  
- Admin access to the account on the [WeChat Developer Platform](https://developers.weixin.qq.com/platform).
  
- Permission to connect a channel into at least one inbox. See [Roles and permissions](https://support.rework.com/article/prospect-roles-and-permissions#service-level).
  
- Fifteen minutes, plus however long your account takes to approve an IP whitelist change.
  

## Connect the channel

1. Go to **Settings** › **Channels** and click **Connect Channel** (see [Connect a channel](https://support.rework.com/article/prospect-how-to-connect#open-the-marketplace)). Filter by **Messaging** **(1)** and click **Connect** on the **WeChat Official Account** card **(2)**.
   
   ![Connect Channel marketplace with the Messaging filter (1) and the Connect button on the WeChat Official Account card (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/YCHKyQg9iLGWpZ11WwyFIFFwmzfYa3lTkr1O7tgXQD52qqX6HzT3Rd2Q9B5gCSFT/img.12uYaPpyRIguWFPX4OyHh3q75UKFsarYsX5D7jLPtvEkJGy9yncCodyZ60pHRI7G.png)
   
2. Choose the inbox under **Connect to service** **(1)**, then click **Connect** **(2)**. A three-step guide opens: **Prepare**, **Account** and **Server URL**.
   
   ![WeChat Official Account dialog with the Connect to service dropdown (1) and the Connect button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/HVsCSzwZr0UPQ64XSTuuA9cybSdi300Q9WDAZekJEV9K5EmC4v6pCzGXs2LGiJlS/img.qxB16VfzyJ7gfVIZGbMguZfMFzUQyYFV0TFRgEVpgpXaVkZFh5mfUBGnOdRqdcCM.png)
   

### Step 1: Prepare

1. Sign in to the [WeChat Developer Platform](https://developers.weixin.qq.com/platform), open **My Business (我的业务)** › **Service Account (服务号)** and select your account.
   
2. Make sure the **AppSecret (开发者密码)** is enabled. You copy it in the next step.
   
3. Add every IP listed under **Server IPs to whitelist** to the account's **API IP whitelist (API IP白名单)**. **Copy** takes them all at once **(1)**. WeChat refuses every call from an IP that isn't on the list, including the one that checks your credentials, so do this before you go on. Then click **Next** **(2)**.
   
   ![Prepare step with the Server IPs to whitelist list and its Copy button (1) and the Next button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/VvU8TeMsv5dLvkQttZE5BoiCRnjsqjtM4otWLKLGTS7gZkuoqAM8m5F0f0ooYKfT/img.zeuPKKKzr0ycHZkvjhnGOOZ2F8VdvRfB4punpHd4X7S9VdQILabPtENpIeAZTrAO.png)
   

### Step 2: Account

1. Paste the **AppID** and **AppSecret** from the account page **(1)**. Optionally give the channel a **Display name**.
   
2. Enter a **Token** **(2)**: 3 to 32 letters or digits of your choice. WeChat signs every message with it. Click **Generate** for a strong one.
   
3. Enter an **EncodingAESKey** **(3)**: 43 letters or digits that encrypt messages between WeChat and Prospect. It's optional, but without it WeChat sends messages in plaintext (明文模式), which WeChat does not recommend. For a live account, click **Generate** and use Safe mode in the next step.
   
4. Click **Connect** **(4)**. Prospect checks the AppID and AppSecret with WeChat before it creates anything.
   
   ![Account step with the AppID and AppSecret fields (1), the Token field and its Generate button (2), the EncodingAESKey field and its Generate button (3) and the Connect button (4) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/tZnwBZFFSuqORIG0vGRlgTzVpUezR24TqRQsfgErsjn9h1nHqgxkKHZ3FrkeNhDT/img.EAqBP3ByhnSv1Mz1kosr5juikCC6WOjgZeOwTyspnbfsgGmkT2hBuOK4pNpjIBG6.png)
   

### Step 3: Server URL

1. The last screen shows the **Server URL**, the **Token** and the **EncodingAESKey**, each with a **Copy** button **(1)**.
   
2. On the WeChat Developer Platform, open **Message & Event Push (消息与事件推送)** for the account. Paste the **Server URL (服务器地址)**, and enter the same **Token (令牌)** and **EncodingAESKey (消息加解密密钥)**.
   
3. Choose **Safe mode (安全模式)** as the message encryption method, then submit and enable it.
   
4. Back in Prospect, click **Done** **(2)**.
   
   ![Server URL step with the Server URL, Token and EncodingAESKey fields and their Copy buttons (1) and the Done button (2) highlighted](https://storage.googleapis.com/reworkv3-public/success/261016/D7Q5iht6vxGIpkcfpjAX3kHXvSUkNKECOU3aldRmXwSwYt71owBCx0WGuBe0tyzS/img.KtknNCuoBAH8Nfyr7pzZ9sNLSqirIXaiXj83aVBDPGtYCS6OSBQi7cmgsV74Cyhs.png)
   

**Warning:** Copy the Token and EncodingAESKey before you click **Done**. They are not shown again. If you lose them, connect the channel again with new values.

**Note:** Enabling message push turns off the auto-replies (自动回复) and the custom menu (自定义菜单) set up in the Official Account admin. From then on every message goes to your inbox, and replies come from your team or your automation in Prospect.

## After connecting

The channel appears under **Settings** › **Channels**.

When someone follows your account, a waiting thread opens for them with a "followed" event in it. It doesn't count as a new conversation yet: no SLA starts, no router assigns it and nobody is notified. The follower's first message turns it into a real conversation. When a follower unfollows, the thread notes it and the contact is removed, but the history stays. If they follow again, the same contact and thread come back.

Follower names are anonymous. WeChat no longer returns nicknames or profile pictures, so a follower shows as **User** followed by the last six characters of their WeChat ID. If you set a remark (备注) on the follower in the Official Account admin before they first contact you, that remark is used as the name instead. You can also rename the prospect yourself.

## Template messages

Template messages are written and approved on the WeChat side, not in Prospect. In **Settings** › **Message Templates**, click **Sync from WeChat** to bring in your approved templates. They are read-only here; **Manage on WeChat** takes you to the WeChat console to change them. See [Message templates](https://support.rework.com/article/prospect-message-templates) for how templates work in general.

An agent sends a template from the composer by picking it and filling its fields. WeChat allows no line breaks or emoji in a template field, and each field has a length limit. Template messages are not bound to the 48-hour reply window. The template picker lists up to 200 templates per channel.

## What this channel can and cannot do

| 
Capability

 | 

WeChat

 |
| --- | --- |
| 

Receive text, images, voice notes, videos, links

 | 

Yes

 |
| 

Receive a shared location

 | 

Yes, shown on a map

 |
| 

Receive a file a follower sends

 | 

No. The thread shows a note asking you to request it another way

 |
| 

Send text and images

 | 

Yes. Images up to 10 MB; over 2 MB they are scaled down before sending

 |
| 

Send voice

 | 

Yes, converted to MP3 if needed, up to 60 seconds

 |
| 

Send documents and videos

 | 

As a link in a text message, up to 25 MB

 |
| 

Files per message

 | 

Up to 5, sent one after another

 |
| 

Template messages

 | 

Yes, synced read-only from WeChat

 |
| 

Quote a message when replying

 | 

Not supported

 |
| 

Group chats

 | 

Not supported, followers only

 |
| 

Broadcasts

 | 

Not supported

 |

Voice notes play straight in the inbox. The AI agent can't listen to them, so a voice note gets no automatic answer.

You can reply freely for 48 hours after the follower last wrote or followed you. After that the composer shows that the window has closed and suggests a template message instead. Nothing stops you from sending, but WeChat refuses late replies and the failed message says why. WeChat may also cap how many replies you send in a row before the follower answers. Once a follower has unfollowed, the composer says so, and neither replies nor templates can reach them. More on this in [When the messaging window has closed](https://support.rework.com/article/prospect-reply-and-composer#when-the-messaging-window-has-closed).

## Troubleshooting

| 
Symptom

 | 

Cause

 | 

Fix

 |
| --- | --- | --- |
| 

**Invalid AppID or AppSecret.**

 | 

The pair doesn't match, or the secret was reset

 | 

Copy both again from the WeChat Developer Platform and reconnect

 |
| 

Connect fails naming the IP whitelist

 | 

The server IPs aren't on the account's API IP whitelist, or the change isn't approved yet

 | 

Add every IP from the **Prepare** step, wait for the approval, then try again

 |
| 

**This AppSecret is frozen**

 | 

The secret was frozen on the WeChat side

 | 

Unfreeze or reset it, then connect again

 |
| 

WeChat refuses the Server URL

 | 

The Token or EncodingAESKey doesn't match what you entered in Prospect, or the encryption mode doesn't fit

 | 

Re-enter both exactly as shown on the last screen. Choose Safe mode if you entered an EncodingAESKey

 |
| 

The account still sends its own auto-replies and nothing reaches the inbox

 | 

Message push was submitted but not enabled

 | 

Enable the server configuration in Message & Event Push

 |
| 

A reply fails with **The 48-hour reply window has closed or the customer unfollowed.**

 | 

More than 48 hours since the follower last wrote, or they unfollowed

 | 

Wait for them to write again, or send a template message

 |
| 

Replies fail naming permission

 | 

The account isn't verified, or lacks the API permission

 | 

Complete 微信认证 for the Service Account

 |
| 

A voice note, image or video can't be downloaded from WeChat

 | 

WeChat keeps media for three days, or the download failed

 | 

Ask the follower to send it again

 |
| 

Followers show as **User** and a code

 | 

WeChat no longer shares follower names

 | 

Expected. Set a remark on the WeChat side, or rename the prospect

 |

If the channel stops receiving messages later, see [Messages are not arriving](https://support.rework.com/article/prospect-messages-not-arriving) and [Reconnect a channel](https://support.rework.com/article/prospect-channel-health-and-reconnect#reconnect-a-channel).
