> For the complete documentation index, see [llms.txt](https://docs.ochats.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ochats.io/module-tutorial/connect-to-channels/wechat-business/integration.md).

# Integration

Sign in to the WeChat Official Accounts Platform

1. Using your sign-in credential, sign to the [WeChat Official Accounts Platform](https://mp.weixin.qq.com/?lang=en_US\&token=).
2. Navigate to the **Basic Configuration | 基本配置 page.**
3. Find the AppID and add it to the corresponding field on the ochats.io platform.
4. To generate the App Secret, you will have to pass two verification steps.
5. Scan a QR code on the webpage
6. Re-enter your account password
7. Once you've completed the security measures, a brand new App Secret will be generated. Add it to the corresponding field on the ochats.io platform.
8. Click **Submit**.
9. Copy the list of whitelisted IPs in your WeChat Business channel
10. Add Whitelisted IPs on the WeChat Official Accounts Platform
11. On the WeChat Official Accounts Platform, click the **Change Configuration** button to open the **Server Configurations** dialog.
12. Add the generated URL from the ochats.io platform to the URL field on the WeChat platform.
13. Add the generated Token from the ochats.io platform to the Token field on the WeChat platform.
14. On the WeChat platform, generate the encoding key and select Plain Text Mode for message encryption.
15. **Enable the configuration** Locate the green enable button and click it. The button will then change to red.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ochats.io/module-tutorial/connect-to-channels/wechat-business/integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
