Actions33
- Mini Program Actions
- Official Account Actions
- WeChat Pay 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 Send Image Message operation, this node allows sending an image message to a user identified by their Open ID using a specified media asset.
This operation is beneficial in scenarios where you want to programmatically send images to users subscribed to your WeChat Official Account, such as promotional images, product photos, event invitations, or any visual content that enhances communication.
Example use case:
A marketing automation workflow sends personalized image messages to customers after they sign up or make a purchase, improving engagement through rich media content.
Properties
| Name | Meaning |
|---|---|
| Open ID | The unique identifier of the target user within the Official Account's followers. |
| Media ID | The identifier of the media (image) previously uploaded to WeChat, used as the message content. |
Output
- The output JSON contains the response from the WeChat API after attempting to send the image message.
- Typically, this includes status information about the message delivery, such as success confirmation or error details.
- The node does not output binary data for this operation; it only returns JSON metadata about the request result.
Dependencies
- Requires valid credentials for accessing the WeChat Official Account API via the integrated service.
- Needs an API key credential for the external N8N Tools API service which validates subscription and access rights.
- The media referenced by
Media IDmust be already uploaded and available on the WeChat platform. - Proper configuration of the node’s credentials and permissions to send messages on behalf of the Official Account is necessary.
Troubleshooting
Invalid API Key or Subscription Errors:
If the node throws errors related to invalid subscription or API key, verify that the API key credential is correctly configured and active.Invalid Open ID:
Sending a message to a non-existent or incorrect Open ID will fail. Ensure the Open ID corresponds to a valid follower of the Official Account.Invalid Media ID:
The Media ID must correspond to an existing image uploaded to WeChat. Upload the media first if needed.Permission Issues:
The Official Account must have permission to send messages to users. Check account settings and message quotas.Error Messages:
Errors returned from the WeChat API are passed through. Common issues include rate limits, invalid parameters, or expired tokens. Review the error message for guidance.
Links and References
- WeChat Official Account Messaging API Documentation
- WeChat Media Management
- n8n Documentation on Credentials and API Keys
If you need further details on other operations or resources, feel free to ask!