WeChatPadPro icon

WeChatPadPro

调用 WeChatPadPro 功能

Overview

This node integrates with the WeChatPadPro API to send messages via WeChat. Specifically, for the Message resource and the 发送文本消息 (sendTextMessage) operation, it allows sending text messages to a specified recipient, which can be an individual user or a group chat.

Common scenarios where this node is useful include:

  • Automating notifications or alerts to specific WeChat users or groups.
  • Sending updates or reminders to team chats.
  • Integrating WeChat messaging into workflows that require communication triggered by external events.

For example, you could use this node to automatically send a daily report summary as a text message to a project group chat on WeChat.

Properties

Name Meaning
消息接收方 ID (toUserName) The recipient's ID, which can be a WeChat user ID or a group chat ID. Required to specify who will receive the message.
消息内容 (textContent) The text content of the message to be sent. This is the actual message body. Required.
At WxId 列表 (atWxIdList) A comma-separated list of WeChat IDs to "At" (mention) in the message. Only applicable when sending messages to group chats. Optional.

Output

The node outputs a JSON object representing the response from the WeChatPadPro API after attempting to send the text message. The structure typically includes status codes and messages indicating success or failure of the send operation.

Example output JSON structure:

{
  "Code": 200,
  "Msg": "Success",
  "Data": {
    // Additional data returned by the API about the sent message
  }
}

If the operation fails, the output JSON will contain error information describing the issue.

The node does not output binary data for this operation.

Dependencies

  • Requires an active connection to the WeChatPadPro API.
  • 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 credentials within n8n is necessary before using this node.

Troubleshooting

  • No credentials got returned!
    This error indicates that the required API credentials are missing or not properly configured. Ensure that the API key credential is set up correctly in n8n.

  • Recipient ID is empty or invalid
    Make sure the toUserName property is provided and corresponds to a valid WeChat user or group chat ID.

  • Empty recipient list for group mass messages
    When sending group mass text messages (not the current operation but related), ensure the recipient list is not empty.

  • API errors returned in response
    The API may return error codes and messages if the request is malformed or unauthorized. Check the API key validity and the correctness of parameters.

  • Mentioning users in non-group chats
    The atWxIdList property only works in group chats. Using it in direct messages may have no effect or cause errors.

Links and References

Discussion