File Block
Upload and use file data in your workflow
Overview
The File Block allows you to upload and use file data in your workflow. It supports various file types including PDF, Microsoft Word documents (.doc, .docx), and CSV files. This block is particularly useful when you need to work with external data or documents within your flow.


Inputs
This block does not have any inputs.
Outputs
The uploaded file data that can be used by other blocks in the workflow.
Editor Settings
Upload a file from your local system. Supported file types include:
- PDF files (.pdf)
- Microsoft Word documents (.doc, .docx)
- CSV files (.csv)
The width of the block in pixels.
Whether the block is hidden in the block menu.
Example: Using a File Block with PDF Analysis
- Add a File Block to your flow.
- In the block’s settings, click “Upload File” and select a PDF document from your local file system.
- Connect the
data
output of the File Block to an AI block capable of analyzing PDF content, such as a custom PDF Analysis block. - Run your flow. The PDF content will be processed by the AI block for further analysis or extraction.
Error Handling
The File Block will throw an error if:
- No file data is provided
- The file provider is not available
- The file upload fails or cannot be accessed
Ensure that you have the necessary permissions to use and process the files you upload, especially when working with sensitive or copyrighted material.