Actions33
- Mini Program Actions
- WeChat Pay Actions
- Official Account Actions
- WeChat Work Actions
Overview
The node "WeChat Enhanced" integrates with various WeChat services, including Official Accounts, Mini Programs, WeChat Pay, and WeChat Work. Specifically, for the Official Account resource and the Get User Info operation, this node retrieves detailed information about a user identified by their Open ID on a WeChat Official Account.
This operation is useful when you want to fetch profile details of a user who has interacted with your Official Account, such as their nickname, gender, location, subscription status, and other metadata provided by WeChat. Practical examples include personalizing messages based on user info, segmenting users for marketing campaigns, or verifying user identity before processing requests.
Properties
| Name | Meaning |
|---|---|
| Open ID | The unique identifier of the user in the Official Account context. Required to specify which user's information to retrieve. |
Output
The output is a JSON object containing the user's information as returned by the WeChat Official Account API. This typically includes fields such as:
openid: The user's Open ID.nickname: User's nickname.sex: Gender of the user.province,city,country: Location details.headimgurl: URL of the user's profile picture.subscribe: Subscription status to the Official Account.- Other metadata fields as provided by the WeChat API.
The exact structure depends on the WeChat API response but generally follows the standard user info schema from WeChat Official Accounts.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the WeChat Official Account API via the bundled helper class.
- Needs valid credentials configured in n8n for accessing the WeChat API (an API key credential or OAuth2 token).
- Optionally validates the subscription/API key against an external "N8N Tools API" service if credentials are present.
- The node uses HTTP requests internally to communicate with WeChat services.
Troubleshooting
- Invalid Credentials: If the API key or subscription is invalid, the node throws an error indicating invalid subscription or API key. Ensure that the credentials are correctly set up and have proper permissions.
- Missing Open ID: The Open ID parameter is required. Omitting it will cause the node to fail.
- API Rate Limits: Frequent calls to WeChat APIs may hit rate limits; handle errors accordingly.
- Network Issues: Connectivity problems can cause request failures; verify network access.
- Unexpected API Changes: If WeChat changes their API, the node might throw unsupported operation errors or unexpected responses.