Skip to main content

Split File

Splits PDF files into multiple parts using AI-powered analysis.

Overview

The Split File node uses AI to analyze a PDF document and split it into multiple files based on natural language instructions. The AI identifies split points in the document content.

Use it to:

  • Separate combined invoice PDFs into individual invoices
  • Split multi-document PDFs by section or content
  • Break apart report packages into individual reports

Parameters

ParameterDescriptionRequired
FilePDF file to split (supports expressions)Yes
Split InstructionsNatural language description of how to splitYes
File DestinationFolder for the split output filesYes

File

The PDF file to split. Typically comes from a trigger or file operation:

{{$item.data.file}}

Split Instructions

Describe in plain language where to split the document. The AI analyzes the content and determines the appropriate split points:

ExampleDescription
"Split when a new invoice starts"Separate individual invoices
"Split on each cover page"Break apart by sections
"Split after every 5 pages"Fixed page count splits
"Separate each statement by account number"Content-based splitting

Settings

SettingDescription
Execution ModeOnce per item (default) or Once
Output ModeHow to output results when running once
Batch SizeItems to process concurrently (default 5)
Stop on ErrorStop workflow on failure

Output

One item per split file:

{
"file": {
"type": "fileData",
"name": "split-1.pdf",
"mimeType": "application/pdf",
"fileInfo": { "type": "..." }
},
"splitIndex": 1,
"totalSplits": 3
}

Access in expressions:

  • File object: {{$item.data.file}}
  • Split position: {{$item.data.splitIndex}}
  • Total parts: {{$item.data.totalSplits}}

Examples

Split Combined Invoice PDF

[Google Drive Trigger] → [Split File ("Split on each new invoice")] → [Data Extractor] → [Insert Rows]

Each invoice is extracted and processed individually.

Split and Archive

[OneDrive Trigger] → [Split File ("Separate each report")] → [Rename File] → [Copy File]

Split and Route

[Split File] → [Data Extractor] → [If (type = "invoice")] → True: [Insert Rows] / False: [Copy File]

Tips

  • Use clear, descriptive split instructions for best results
  • The AI analyzes document content to determine split points
  • Always returns at least one file, even if the document can't be split
  • Each split part becomes a separate workflow item for downstream processing
  • Use splitIndex and totalSplits to track position in the sequence
  • This is a long-running operation — processing time depends on document size