Actions12
消息 → 文件上传
AI-generatedOverview
This node integrates with the POPO OpenPlatform Robot API to perform various messaging and group management operations. Specifically, for the '消息' (message) resource and '文件上传' (file upload) operation, it uploads files to the platform by first obtaining an upload URL from the API, then uploading the file data as multipart/form-data. This node is useful for automating file sharing within messaging groups or individual chats on the POPO platform, such as sending images, documents, or audio files programmatically.
Use Case Examples
- Automate uploading and sending a file to a group chat.
- Upload a document to a user via the POPO messaging platform.
- Integrate file uploads into a workflow that processes and shares media files.
Properties
| Name | Meaning |
|---|---|
| Is At All | Whether to @ all members in a text message (only applicable for text message type). |
| Data Field Name | The name of the binary data field containing the file to upload. |
| Group Type | Type of group for group-related operations, with options '1' or '2'. |
Output
JSON
data- Response data from the file upload operation, including upload URL and file metadata.
Dependencies
- POPO OpenPlatform Robot API
Troubleshooting
- Ensure the binary data field name matches the actual input binary property name; otherwise, the file data will not be found.
- File upload requires a valid API key credential for authentication; missing or invalid credentials will cause errors.
- The file must be properly encoded in base64 in the input binary data to be converted to a buffer for upload.
- If the API returns an error code on upload, check the error message for details and verify the file size and type are supported.
Links
- POPO OpenPlatform Robot API Documentation - Official API documentation for the POPO OpenPlatform Robot API, including file upload endpoints and parameters.