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 with the Send Text Message operation, this node sends a plain text message to a specified user identified by their Open ID.
This functionality is useful in scenarios where you want to automate communication with users subscribed to your WeChat Official Account. For example, you can send notifications, alerts, or personalized messages triggered by workflows in n8n.
Practical examples:
- Sending order status updates to customers.
- Delivering event reminders or promotional messages.
- Responding automatically to user interactions with predefined text.
Properties
| Name | Meaning |
|---|---|
| Open ID | The unique identifier of the user within the Official Account to whom the message will be sent. |
| Content | The text content of the message to be sent to the user. |
Output
The output of the node is a JSON object representing the response from the WeChat Official Account API after attempting to send the text message. This typically includes confirmation details such as message ID, status, or error information if the sending failed.
No binary data output is produced by this operation.
Example output structure (conceptual):
{
"errcode": 0,
"errmsg": "ok",
"msgid": 1234567890
}
Dependencies
- Requires an active subscription and valid API key credentials for the external "N8N Tools API" service that acts as a proxy or validation layer for WeChat API calls.
- The node uses these credentials to validate access before making requests to WeChat APIs.
- Proper configuration of these credentials in n8n is necessary for the node to function correctly.
- The node depends on the
wechat-apimodule internally to handle WeChat API interactions.
Troubleshooting
Invalid subscription or API key error:
If you receive errors indicating invalid subscription or API key, verify that your API credentials are correctly set up in n8n and have not expired or been revoked.Unsupported operation error:
This node supports specific operations per resource. Ensure you select "Send Text Message" under the "Official Account" resource. Using unsupported operations will throw errors.User Open ID issues:
Make sure the Open ID provided corresponds to a valid user who has interacted with your Official Account; otherwise, the message may fail to deliver.API rate limits or quota exceeded:
If messages fail intermittently, check if your WeChat Official Account or the intermediary API service has any rate limits or quotas that might be exceeded.
Links and References
- WeChat Official Account Messaging API Documentation
- n8n Documentation - Creating Custom Nodes
- N8N Tools API (generic reference) (replace with actual URL if available)