Actions18
Overview
This node integrates with the WeChat Official Account API to send customer service messages, specifically allowing sending image messages to users. It is useful in scenarios where a business or service wants to interact with their WeChat followers by sending images directly through the official account’s customer service messaging interface. For example, a company can use this node to send product photos, promotional images, or visual support materials to individual users who have interacted with their WeChat account.
Properties
Name | Meaning |
---|---|
接收用户ID | The OpenID of the WeChat Official Account user who will receive the message. |
图片媒体ID | The media ID of the image to be sent to the user. This ID references an image already uploaded to WeChat's media server. |
Output
The node outputs JSON data representing the response from the WeChat API after attempting to send the image message. This typically includes status information such as success confirmation or error details. There is no binary output for this operation.
Dependencies
- Requires an API key credential for authenticating with the WeChat Official Account API.
- The node uses the base URL
https://api.weixin.qq.com/cgi-bin/
or a custom base URL if configured. - The image to be sent must already be uploaded to WeChat’s media server, and its media ID must be provided.
Troubleshooting
- Common issues:
- Invalid or expired media ID: The image media ID must be valid and not expired on WeChat’s server.
- Incorrect OpenID: The recipient user ID must be a valid follower of the official account.
- Authentication errors: Ensure the API key credential is correctly configured and has necessary permissions.
- Error messages:
- Errors returned from the WeChat API will be included in the node’s output. Common errors include invalid token, invalid media ID, or user not found.
- Resolution tips:
- Verify that the media ID corresponds to an image previously uploaded via WeChat’s media upload API.
- Confirm the recipient OpenID is correct and the user follows the official account.
- Refresh or reconfigure API credentials if authentication errors occur.