消息 → 发送模板消息
AI-generatedOverview
This node interacts with the POPO OpenPlatform OA API to perform various messaging operations under the '消息' (message) resource. Specifically, for the '发送模板消息' (send-template-message) operation, it sends a template message to a specified user or group using a JSON body that defines the message content and recipient. This node is useful for automating message sending in workflows, such as sending notifications, alerts, or updates via template messages.
Use Case Examples
- Sending a welcome message to a new user using a predefined template.
- Automating alerts to a group chat when a specific event occurs.
Properties
| Name | Meaning |
|---|---|
| 文件ID | The file ID to download, required for file download operations. |
| 文件消息ID | The message ID to recall, used when recalling a sent message. |
| Body | The JSON body of the request to send, defining the recipient, message type, and content. Required for sending custom or template messages, recalling messages, and downloading message files. |
Output
JSON
touser- The recipient's identifier (e.g., OPENID) to whom the message is sent.msgtype- The type of message being sent, such as 'text'.textcontent- The content of the text message.
Dependencies
- Requires an API key credential for the POPO OpenPlatform OA API to authenticate requests.
Troubleshooting
- Ensure the 'Body' JSON is correctly formatted and includes all required fields for the message type.
- Verify that the 'fileId' and 'msgId' parameters are provided when performing file download or message recall operations respectively.
- Common errors may include authentication failures if the API key is missing or invalid, or request errors if required parameters are missing or malformed.