Overview
This node integrates with the WeChatPadPro API to send messages via WeChat. Specifically, for the Message resource and the 发送图片消息 (sendImageMessage) operation, it allows sending an image message to a specified recipient on WeChat, which can be either an individual user or a group chat.
Typical use cases include:
- Automating the sending of images to contacts or groups in WeChat as part of workflows.
- Sharing visual content such as product photos, charts, or screenshots automatically.
- Integrating WeChat messaging into broader automation pipelines where image communication is required.
For example, a marketing automation workflow could send promotional images to customers or groups based on triggers from other systems.
Properties
| Name | Meaning |
|---|---|
| 消息接收方 ID | The recipient's ID, which can be a WeChat user ID or a group chat ID. |
| 图片内容 (Base64) | The image content encoded as a Base64 string. This represents the actual image data to send. |
Output
The node outputs a JSON object representing the response from the WeChatPadPro API after attempting to send the image message. The structure typically includes status codes and messages indicating success or failure of the send operation.
No binary data output is produced by this node; the image is sent as Base64 encoded content within the request.
Example output JSON structure (simplified):
{
"Code": 200,
"Msg": "Success",
"Data": { ... }
}
Where Code indicates the HTTP-like status code, and Msg provides a descriptive message.
Dependencies
- Requires an active connection to the WeChatPadPro API service.
- Needs credentials containing the base URL of the API and an authentication key.
- The node uses HTTP requests to communicate with the API endpoints.
- Proper configuration of the API credential in n8n is necessary before use.
Troubleshooting
- Missing Credentials: If no credentials are provided or they are invalid, the node will throw an error stating that no credentials were returned. Ensure the API key and base URL are correctly configured.
- Empty Recipient ID: The recipient ID (
toUserName) must not be empty; otherwise, the API call will fail. - Invalid Base64 Image Content: The image content must be valid Base64-encoded data. Invalid encoding may cause the API to reject the message.
- API Errors: The API might return errors if the recipient ID does not exist or the user/group is unreachable. Check the response message for details.
- Network Issues: Connectivity problems to the API endpoint will result in request failures. Verify network access and API availability.
Links and References
- WeChatPadPro API Documentation (Not provided in source; replace with actual link if available)
- n8n HTTP Request Node Documentation
- Base64 Encoding Reference