Actions12
消息 → 消息卡片配置回调
AI-generatedOverview
This node interacts with the POPO OpenPlatform Robot API to manage message card callback configurations. It allows users to set up and update callback URLs for message cards, including security options like token and AES encryption key, and test the callback URL connectivity. This is useful for scenarios where automated handling of message card interactions is needed, such as updating card content dynamically or processing user actions on message cards.
Use Case Examples
- Setting a callback URL for a message card to receive user interaction events.
- Configuring encryption for secure callback data transmission.
- Testing the callback URL connectivity before saving the configuration.
Properties
| Name | Meaning |
|---|---|
| Config Key | Custom routing key used to specify the exact callback configuration when sending message cards, length less than 64. |
| Request Url | The URL to receive push notifications, length less than 256. |
| Token | Token for the requestUrl to authenticate push notifications, length less than 64. |
| Aes Key | Optional 32-length key for encrypting data for security. If set, pushed data is encrypted; otherwise, data is sent unencrypted. |
| Overwrite Update | Boolean flag to allow overwriting existing configuration. Default false to avoid accidental changes; must be true to modify configuration. |
| With Call Back Test | Boolean flag to test the callback URL by sending a GET request with a nonce parameter. Only saves configuration if the nonce is returned, ensuring network connectivity. |
| Push To Office | Boolean flag to push data from the office network environment when true. |
| Auth Type | Type of user authentication for callback operations. Options are CODE (valid for 15 minutes) or SIGN (default). |
Output
JSON
response- The API response from the callback configuration request, including success or error details.
Dependencies
- Requires an API key credential for the POPO OpenPlatform Robot API.
Troubleshooting
- Ensure the requestUrl is reachable and returns the expected nonce parameter during callback test, otherwise configuration will not save.
- Verify the token and AES key lengths meet the specified limits to avoid validation errors.
- Set 'Overwrite Update' to true explicitly to modify existing callback configurations; otherwise, changes will be ignored.
Links
- POPO OpenPlatform Message Card Callback Documentation - Official documentation for setting up and managing message card callback configurations.