Actions27
- App Actions
- Account Actions
- Channel Actions
- Message Actions
- Template Actions
- Contact Actions
- Chat Actions
- Tag Actions
- User Actions
- Team Actions
- Webhook Actions
Message → Send Media By Contact UUID
AI-generatedOverview
This node operation sends media files (such as images, documents, videos, or audio) to a contact identified by their UUID through a specified account channel. It supports multiple methods for providing the media file, including binary data from a previous node, a file path on the server, or base64 encoded data. This operation is useful for automating the sending of media messages in workflows, such as sending promotional images, documents, or audio messages to specific contacts.
Use Case Examples
- Sending an image file stored as binary data from a previous node to a contact by their UUID.
- Sending a video file located on the server to a contact by specifying the file path and MIME type.
- Sending a document by providing base64 encoded data along with the file name and MIME type.
Properties
| Name | Meaning |
|---|---|
| Contact UUID | The UUID of the contact to send media to, used to identify the recipient. |
| Account Channel UUID | The UUID of the account channel through which the media will be sent. |
| Media Type | The type of media being sent, such as Image, Document, Video, or Audio. |
| Caption | An optional caption to accompany the media message. |
| File Input Method | The method used to provide the media file: binary data from a previous node, file path on the server, or base64 encoded data. |
| Binary Property Name | The name of the binary data property containing the file to send, usually 'data'. |
| File Path | The path to the file on the server, required if using the file path input method. |
| File Name | The name of the file including extension, used when sending via file path or base64 data. |
| Base64 Data | Base64 encoded file data without the data URI prefix, required if using base64 input method. |
| MIME Type | The MIME type of the file, such as image/jpeg or application/pdf, required for file path or base64 input methods. |
Output
JSON
messageId- The unique identifier of the sent media message.status- The status of the media message sending operation, e.g., success or failure.contactId- The UUID of the contact to whom the media was sent.mediaType- The type of media sent, such as IMAGE, DOCUMENT, VIDEO, or AUDIO.
Dependencies
- An API key credential for authenticating with the Poli API
Troubleshooting
- Ensure the Contact UUID and Account Channel UUID are correctly specified and valid.
- Verify that the media file is accessible and correctly provided according to the selected file input method.
- Check that the MIME type matches the actual media file type when using file path or base64 input methods.
- Common errors may include invalid UUIDs, missing required parameters, or file access issues. Review error messages for specific details and verify input data accordingly.