Actions33
- Mini Program Actions
- Official Account Actions
- WeChat Pay Actions
- WeChat Work Actions
Overview
This node operation creates a QR code for a WeChat Mini Program. It allows users to generate either a standard or unlimited QR code that encodes specific scene parameters and optionally points to a particular page within the Mini Program. This is useful for scenarios such as marketing campaigns, user onboarding, or quick access links where scanning the QR code directs users to a targeted part of the Mini Program.
Practical examples include:
- Generating a QR code that encodes a promotional campaign identifier (
scene) so that when scanned, the Mini Program can display campaign-specific content. - Creating a QR code that opens a specific page inside the Mini Program, such as a product detail or registration page.
- Producing an unlimited QR code for long-term use without expiration constraints.
Properties
| Name | Meaning |
|---|---|
| Scene | The scene parameter encoded in the QR code; typically used to carry custom data or IDs. |
| Page | (Optional) The path to a specific Mini Program page that the QR code will open. |
| Width | The width of the generated QR code image in pixels (default is 430). |
Output
The output JSON contains the result returned by the underlying API call to create the QR code. Typically, this includes the QR code image data or a URL to the QR code image. The exact structure depends on the WeChat API response but generally provides the QR code in a format ready for display or further processing.
If the node supports binary data output for the QR code image, it would represent the QR code image file itself, suitable for saving or sending directly.
Dependencies
- Requires an active subscription and valid API key credential for the external "N8N Tools API" service, which acts as a proxy or middleware for WeChat API calls.
- Requires credentials for WeChat Mini Program API access (such as app ID and secret), configured in n8n.
- The node internally uses a helper library to interact with WeChat APIs via the N8N Tools API.
Troubleshooting
- Invalid subscription or API key error: If you receive errors indicating invalid subscription or API key, verify that your API key credential is correct and active.
- Unsupported operation error: Ensure that the selected operation is supported for the Mini Program resource; only listed operations are valid.
- Missing required parameters: The
sceneproperty is mandatory; omitting it will cause errors. - API rate limits or quota exceeded: The external API may enforce usage limits; monitor your usage and upgrade your plan if necessary.
- Incorrect page path: If the
pageparameter is set incorrectly, the QR code may not direct users properly; verify the Mini Program page paths.
Links and References
- WeChat Mini Program QR Code Documentation
- WeChat Official API Reference
- n8n Documentation on Custom Nodes
This summary focuses exclusively on the "Mini Program" resource and the "Create QR Code" operation as requested.