Skip to content
synthreo.ai

File Loader - Synthreo Builder

File Loader node for Builder - load files from the Synthreo File Manager into your workflow for downstream processing, AI model input, or data transformation.


The File Loader node reads files or directories and makes their contents available to other nodes in your Builder workflow. It supports structured data files (CSV, Excel, JSON), documents (PDF), media (video, audio, image), and directory-level batch processing. Once loaded, file contents can be passed to LLM nodes, transformation nodes, or any downstream step that needs file data.


File TypeDescription
CSVDelimited text data. Rows become individual items; columns are mapped to named properties. A Key Column Name uniquely identifies each row.
JSONStructured JSON data loaded directly into the workflow context.
ExcelSpreadsheet data (.xlsx). Rows and columns behave similarly to CSV.
PDFDocument content loaded as raw binary or converted to base64 for AI processing or downstream extraction.
VideoVideo file processed for frame extraction and audio separation.
AudioAudio file made available for downstream speech or audio processing nodes.
ImageImage file loaded as raw binary or converted to base64 for vision model input.
DirectoryLoads all matching files from a folder, optionally including subdirectories. Enables batch file processing across many files in a single workflow run.

The node loads data from the file system path or directory path you configure. It does not require an upstream node connection, though it can be positioned anywhere in the workflow where file loading is needed.


OutputDescription
FilenameThe name of the file (without path). Available as a variable downstream.
Full pathThe complete file system path to the loaded file.
base64The Base64-encoded content of the file (only when Convert Files to base64 is enabled). Use this to send file content to LLM vision nodes or external APIs that accept Base64-encoded data.
Video FramesExtracted frame images from a video file, available under the property name set in Image Frames Property Name (only in video mode).
Audio pathThe file system path to the extracted audio track from a video file, available under the property name set in Audio File Path Property Name (only in video mode).

NameTypeRequiredDefaultDescription
File TypeDropdownYesNoneSelect the type of file to load: CSV, JSON, Excel, PDF, Video, Audio, Image, or Directory. The selection determines which other parameters appear.
File PathStringRequired for single-file modesEmptyThe full path to the target file on the DCS file system. Used when loading a single file. Leave empty if using Directory Source for batch processing.
Key Column NameStringNoidFor CSV and Excel files, this is the column that uniquely identifies each row. The value from this column is used as the row’s identifier when the data flows through the workflow. Change this to match the actual unique identifier column in your file (e.g., order_id, sku, customer_id).
Directory SourceStringRequired for Directory modeEmptyThe folder path to scan when loading multiple files. All files in the folder (matching the extension filter if set) are loaded as individual items.
Allowed File ExtensionsStringNoEmptyComma-separated list of file extensions to include when in Directory mode (e.g., .pdf,.docx or .csv,.xlsx). Files with other extensions are ignored. Leave empty to include all file types found in the directory.
Include Sub DirectoriesBooleanNofalseWhen enabled in Directory mode, the node recursively scans subdirectories and loads matching files from all nested folders.
Convert Files to base64BooleanNofalseConverts the file content to a Base64-encoded string. Enable this when sending file content to an LLM vision model, an OCR service, or any external API that requires Base64-encoded file data.
Frames per secondNumberNo4For video files, controls how frequently frames are extracted (in seconds between frames). A value of 4 extracts one frame every 4 seconds. Lower values produce more frames and more detail but increase processing time and data volume.
Image Frames Property NameStringNovideo_framesThe workflow variable name under which extracted video frames are stored. Reference this downstream as {{Out.video_frames}} (substituting your chosen name).
Audio File Path Property NameStringNoaudio_pathThe workflow variable name under which the extracted audio file path is stored. Reference downstream as {{Out.audio_path}}.
Columns ConfigData GridNoEmptyFor CSV and Excel files, define each column’s name and data type. Setting types explicitly (e.g., string, number, date) prevents type conversion errors when column values are used in downstream calculations or comparisons.
Disable CacheBooleanNofalseBy default, file contents may be cached between runs. Enable this when the source file is updated between workflow executions and the workflow must always read the latest version.

The Key Column Name parameter identifies which column in a CSV or Excel file serves as the unique row identifier. Setting this correctly ensures that downstream nodes can reference and distinguish individual rows.

ScenarioKey Column Name to use
Order data with an order_id columnorder_id
Customer list with a customer_id columncustomer_id
Product catalog with a sku columnsku
Employee records with an employee_number columnemployee_number
Generic data with no natural keyLeave as id and ensure the CSV includes an id column

  • Sales Reporting: Import a daily Excel file with sales transactions, set order_id as the Key Column Name, configure column types in Columns Config, and pass the structured data into an analytics or summarization node.
  • Contract Review: Set File Type to Directory, set Directory Source to a legal contracts folder, add .pdf to Allowed File Extensions, enable Include Sub Directories, enable Convert Files to base64, and forward each contract to an LLM for clause extraction.
  • Video Highlight Extraction: Load a training video, set Frames per second to 5, and send the extracted frames to an image classifier node to detect key scenes.
  • Inventory Management: Load a CSV inventory export, set sku as the Key Column Name, map column types in Columns Config, and use the data to trigger automated restocking alerts based on quantity thresholds.
  • Batch PDF Processing: Configure Directory mode with .pdf extension filter and Include Sub Directories enabled to process all PDFs in a folder hierarchy in a single workflow run.

  • Use consistent file names and folder structures so that File Path and Directory Source values remain stable across workflow runs.
  • Define Columns Config types explicitly for CSV and Excel files to prevent unexpected behavior when column values are used in numeric comparisons or date operations.
  • Enable Disable Cache for files that are updated frequently (e.g., daily exports, live inventory feeds). Leave cache enabled for static reference data that does not change between runs.
  • Use Allowed File Extensions in Directory mode to skip irrelevant files and reduce processing time.
  • Keep Frames per second settings reasonable for video processing. Extracting too many frames per second significantly increases processing time and memory usage.
  • When loading files for LLM vision input, enable Convert Files to base64 and reference {{Out.base64}} in the LLM prompt field that accepts image data.