File Message
The File Message component lets you attach files to a message that can be sent to other parts of your workflow. It’s useful when you need to send documents, images, or any other file along with a text note.
How it Works
When you drop this component into your dashboard, you can type a short text note and then attach one or more files. The component bundles the text and the files into a single Message object. That object can then be passed to other components, such as a messaging service or a storage system, without any extra steps.
Inputs
- Text: The plain text you want to include in the message.
- Message with files: A set of files that you want to attach.
- Audio Video Encoder: An optional encoder that can process audio or video files before they are attached.
Outputs
- Message: A single object that contains the text and all attached files. This output can be used by downstream components that expect a message payload.
Usage Example
- Drag the File Message component onto your canvas.
- In the Text field, type “Here are the reports for Q3.”
- Click the Message with files input and select the PDF and Excel files you want to send.
- (Optional) Connect an Audio Video Encoder if you need to compress or transcode any media files.
- Connect the Message output to the next component in your workflow, such as an email sender or a cloud storage uploader.
- Run the workflow – the message, complete with attachments, will be delivered to the next step.
Related Components
- Text Message – Sends plain text without attachments.
- File Upload – Allows users to upload files from their device.
- Audio Video Encoder – Processes media files before they are attached.
Tips and Best Practices
- Keep the text short and clear; long messages can be hard to read in some interfaces.
- Verify file sizes before attaching; large files may cause timeouts or exceed storage limits.
- Use the Audio Video Encoder when sending media to reduce bandwidth usage.
- Test the component with a small set of files first to ensure the output format matches what downstream components expect.
Security Considerations
- Only attach files from trusted sources to avoid malware.
- If the workflow sends messages to external services, ensure that file permissions are set correctly to prevent unauthorized access.
- Consider encrypting sensitive files before attaching them, especially if they contain personal or confidential data.