OpenAgent
ConnectorsPipes

WeChat

Connect a WeChat Official Account to an OpenAgent Store.

WeChat

The WeChat Pipe connects a WeChat Official Account to a Store through the WeChat message callback. Messages that followers send to the Official Account are answered by the agent.

This Pipe is for Official Accounts. To drive a personal WeChat account instead, use Weixin Claw.

Configuration

FieldValue
TypeWeChat
StoreThe Store whose agent should reply.
TokenYour Official Account token.
App SecretYour Official Account App Secret.
DomainYour public base URL.

Webhook

In the WeChat Official Account platform, set the server (message callback) configuration:

  • URL: https://<your-domain>/api/chat-webhook/wechat/<pipe-name>
  • Token: the Pipe's ID (its name), used for the signature verification handshake.

WeChat sends a GET challenge to validate the server URL; OpenAgent answers it automatically. Incoming messages arrive as XML, and OpenAgent replies to the platform so the follower receives the agent's answer.

On this page