Actions18
Overview
This node integrates with the WeChat Official Account API to send customer service messages, specifically focusing on sending rich media news articles with external links. It allows users to deliver engaging graphical content combined with text and hyperlinks directly to WeChat users identified by their OpenID.
Common scenarios include:
- Customer support teams sending promotional or informational news articles to users.
- Marketing campaigns delivering clickable image-text messages linking to external websites.
- Providing updates or announcements with rich media content in a conversational context.
For example, a business can use this node to send a set of news articles about new product launches, each with a title, description, image, and a link to the product page.
Properties
Name | Meaning |
---|---|
接收用户ID | The OpenID of the WeChat Official Account user who will receive the message. |
图文消息列表 | A list of news articles to send. Each article includes: |
- 标题 (Title): The headline of the news article. | |
- 描述 (Description): A brief summary or description of the article. | |
- 跳转链接 (URL): The external link users are directed to when clicking the article. | |
- 图片链接 (Image URL): The URL of the image displayed with the article. |
Output
The node outputs JSON data representing the response from the WeChat API after attempting to send the news message. This typically includes status information such as success confirmation or error details.
If the operation is successful, the output confirms that the message was sent to the specified user(s). There is no binary data output for this operation.
Dependencies
- Requires an active WeChat Official Account with appropriate permissions to send customer service messages.
- Needs an API authentication token or key configured in n8n credentials to authorize requests to the WeChat API.
- The base URL defaults to
https://api.weixin.qq.com/cgi-bin/
but can be overridden via credentials.
Troubleshooting
- Invalid OpenID: If the provided user ID is incorrect or does not belong to a follower of the official account, the API will return an error. Verify the OpenID before sending.
- Message format errors: Missing required fields like title, URL, or image URL in any article will cause the request to fail. Ensure all required properties are filled.
- API quota limits: Exceeding the allowed number of messages per day or per minute may result in rate limiting errors.
- Authentication failures: Incorrect or expired API tokens will prevent message delivery. Refresh or update credentials as needed.