Actions33
- Mini Program Actions
- WeChat Pay Actions
- Official Account Actions
- WeChat Work Actions
Overview
The node "WeChat Enhanced" integrates with various WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, for the Official Account resource and the Send Image Message operation, this node allows sending an image message to a user identified by their Open ID on a WeChat Official Account.
This is useful in scenarios where you want to automate communication with users via images, such as sending promotional pictures, product images, event photos, or any visual content directly through the Official Account messaging system.
Example use case:
A marketing automation workflow that sends personalized image messages to customers who have subscribed to your Official Account, enhancing engagement with rich media content.
Properties
| Name | Meaning |
|---|---|
| Open ID | The unique identifier of the user within the Official Account to whom the image is sent. |
| Media ID | The identifier of the media (image) previously uploaded to WeChat, used to send the image. |
Output
The output of this operation is a JSON object representing the response from the WeChat API after attempting to send the image message. This typically includes status information about the message delivery.
- The
jsonfield contains the API response data. - There is no binary data output for this operation.
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.
- The node internally uses a helper class (
WeChatApi) to interact with WeChat's Official Account API endpoints. - Proper configuration of credentials in n8n is necessary to authenticate requests.
- The
mediaIdmust correspond to a media file already uploaded to WeChat's servers.
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 configured and active.
- Media ID issues: Ensure the
mediaIdcorresponds to a valid image uploaded to WeChat; otherwise, the API will reject the request. - Open ID errors: Confirm that the
openIdis correct and belongs to a user who has interacted with the Official Account. - API rate limits: Be aware of WeChat API rate limits; excessive requests may cause temporary failures.
- Error messages from WeChat API: These are passed through in the response; check the exact error code/message for guidance.