Actions18
Overview
This node integrates with the WeChat Official Account API to send customer service messages. Specifically, for the "发送文本消息" (Send Text Message) operation under the "客服消息" (Customer Service Message) resource, it allows sending plain text messages directly to a specified WeChat user identified by their OpenID.
Common scenarios include:
- Responding to user inquiries automatically or manually via chatbots or customer support workflows.
- Sending notifications or updates to users who have interacted with the official account.
- Implementing interactive customer service features within an automated workflow.
Example: A business can use this node to send a welcome message or answer FAQs when a user contacts their WeChat Official Account.
Properties
Name | Meaning |
---|---|
接收用户ID | The OpenID of the WeChat Official Account user who will receive the message. |
文本消息内容 | The content of the text message to be sent to the user. |
Output
The node outputs JSON data representing the response from the WeChat API after attempting to send the message. This typically includes status information such as success confirmation or error details.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the WeChat Official Account API.
- The base URL defaults to
https://api.weixin.qq.com/cgi-bin/
but can be overridden via credentials configuration. - The node expects proper permissions on the WeChat Official Account to send customer service messages.
Troubleshooting
- Invalid OpenID: If the provided user ID is incorrect or does not correspond to a valid follower, the API will return an error. Verify the OpenID is correct and that the user has interacted with the official account.
- Authentication errors: Ensure the API key or authentication token is valid and has not expired.
- Message content issues: Empty or improperly formatted text content may cause failures. Confirm the text message content is non-empty and properly encoded.
- API limits: The WeChat API enforces rate limits; exceeding these may result in temporary blocking. Monitor usage accordingly.