PopoOpenPlatformRobot Api icon

PopoOpenPlatformRobot Api

POPO OpenPlatform Robot API

消息 → 机器人发送消息

AI-generated

Overview

This node allows sending messages through the POPO OpenPlatform Robot API. It supports sending various types of messages such as text, rich text, images, audio, files, and cards to specified receivers. It is useful for automating communication in chat applications or platforms that integrate with POPO OpenPlatform, enabling bots to send customized messages to users or groups.

Use Case Examples

  1. Sending a plain text message to a user by specifying the receiver's email and message content.
  2. Sending a rich text message with multiple styled tags to a user.
  3. Sending an image or file message by providing the file key.
  4. Sending a card message using a template UUID and instance UUID with optional callback configuration and variable maps.

Properties

Name Meaning
Receiver The recipient of the message, typically specified by their email address.
Msg Type The type of message to send, such as text, rich text, image, audio, file, or card.
Content The content of the message to send. For text messages, this is a string. For rich text messages, this is a collection of tags with text and styles.
File Key The key of the file to send, used for image, file, or audio message types.
Content1 Additional content for rich text messages, typically a JSON string representing tags.
At Uids List of user emails to mention (@) in a text message.
Is At All Boolean flag indicating whether to mention all members in a text message.
Template Uuid The template UUID used for sending card messages.
Instance Uuid The instance UUID for the card message, uniquely identifying the card instance.
Call Back Config Key The callback configuration key for card message operations.
Public Variable Map Public data variables for card messages, used when private data is not available for the receiver.
Batch Private Variable Map Private card data variables keyed by user email, which override public data for card messages.
Options Card configuration options in JSON format, such as enabling forwarding or setting last message text.
Group Type Type of group, with possible values '1' or '2'.

Output

JSON

  • data - The response data from the API call, containing details about the sent message or operation result.

Dependencies

  • Requires an API key credential for the POPO OpenPlatform Robot API to authenticate requests.

Troubleshooting

  • Ensure the receiver email is correctly specified and exists in the platform to avoid delivery failures.
  • For file, image, or audio messages, verify that the file key is valid and the file is accessible.
  • When sending card messages, ensure the template UUID and instance UUID are correctly set and that the JSON strings for variable maps are properly formatted to avoid parsing errors.
  • If the API returns errors, check the error code and message for details, and verify that the API credentials are valid and have sufficient permissions.

Links

Discussion