Actions33
- Mini Program Actions
- WeChat Pay Actions
- Official Account Actions
- WeChat Work Actions
Overview
The "WeChat Enhanced" node provides comprehensive integration with various WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, for the Mini Program resource and the Get User Info operation, this node retrieves detailed user information based on a provided user Open ID.
This operation is useful in scenarios where you need to fetch user profile details from a WeChat Mini Program, such as personalizing user experiences, verifying user identity, or syncing user data with other systems.
Practical example:
You have a Mini Program that requires displaying personalized content after login. Using this node's Get User Info operation, you can retrieve the user's profile information by their Open ID and use it downstream in your workflow to customize messages or update your database.
Properties
| Name | Meaning |
|---|---|
| Open ID | The unique identifier of the user within the Mini Program. This is required to fetch the user's information. |
Output
The output is a JSON object containing the user's information retrieved from the WeChat Mini Program API. The exact structure depends on the WeChat API response but typically includes fields such as:
openid: The user's Open ID.nickname: The user's nickname.gender: The user's gender.province,city,country: Location information.avatarUrl: URL to the user's avatar image.- Other profile-related fields as provided by the WeChat API.
No binary data output is involved in this operation.
Dependencies
- Requires an active subscription and valid API key credential for the external N8N Tools API service used to validate requests.
- The node internally uses a helper class to interact with the WeChat API endpoints.
- Proper credentials for accessing the WeChat Mini Program API must be configured in n8n (e.g., API keys or OAuth tokens), though specific internal credential names are abstracted away.
Troubleshooting
Invalid subscription or API key error:
If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly set up and has the necessary permissions.Unsupported operation error:
If the operation name is incorrect or not supported, ensure you select "Get User Info" under the Mini Program resource.Missing or invalid Open ID:
The Open ID parameter is required. Ensure it is provided and valid; otherwise, the API call will fail.Network or API errors:
Temporary network issues or WeChat API downtime may cause failures. Retry or check the status of the WeChat services.