Skip to content
For LLMsView as Markdown·

WeChat

Manage official accounts, send messages, and interact with WeChat users.

DetailValue
CategorySocial Media
Base URLhttps://api.weixin.qq.com/cgi-bin
AuthenticationAPI Key (Query)
Endpoints5
Connector keywechat

Using WeChat in a workflow

  1. Go to Connections and click New Connection.
  2. Pick WeChat from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown — the full list is below.

Available endpoints

EndpointSummary
GET /tokenGet access token
POST /message/custom/sendSend a customer service message
POST /message/template/sendSend a template message
GET /user/infoGet user info
GET /user/getGet follower list

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /token

Get access token

DetailValue
Operation IDsocial.getAccessToken
MethodGET
Path/token

Parameters

NameLocationTypeRequired
grant_typequerystringYes
appidquerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your WeChat connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getAccessToken.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.

POST /message/custom/send

Send a customer service message

DetailValue
Operation IDsocial.sendMessage
MethodPOST
Path/message/custom/send

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your WeChat connection from the Connection dropdown.
  3. In the Operation dropdown, select social.sendMessage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.

POST /message/template/send

Send a template message

DetailValue
Operation IDsocial.sendTemplate
MethodPOST
Path/message/template/send

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your WeChat connection from the Connection dropdown.
  3. In the Operation dropdown, select social.sendTemplate.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.

GET /user/info

Get user info

DetailValue
Operation IDsocial.getUserInfo
MethodGET
Path/user/info

Parameters

NameLocationTypeRequired
openidquerystringYes

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your WeChat connection from the Connection dropdown.
  3. In the Operation dropdown, select social.getUserInfo.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked — fill them or the call will fail at runtime.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.

GET /user/get

Get follower list

DetailValue
Operation IDsocial.listFollowers
MethodGET
Path/user/get

Parameters

No parameters.

Using this endpoint in a workflow

  1. Add an API Call node to your workflow.
  2. Pick your WeChat connection from the Connection dropdown.
  3. In the Operation dropdown, select social.listFollowers.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.