Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Default Data Loader

ai.document_default_loader · version 1 · AI sub-node

Turn item JSON or binary files (text, CSV, JSON, PDF) into documents.

Ports

PortKindLabelRequiredMax connections
input 0ai_textSplitterText Splitter1
output 0ai_document

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
dataTypeoptions"json"Type of Data. One of json, binary.
jsonModeoptions"allInputData"dataType = jsonMode. One of allInputData, expressionData.
jsonDatastringjsonMode = expressionDataData. Value to turn into a document, usually an expression.
binaryModeoptions"allInputData"dataType = binaryMode. One of allInputData, specificField.
binaryDataKeystring"data"binaryMode = specificFieldBinary Property.
loaderoptions"auto"dataType = binaryData Format. One of auto, csvLoader, jsonLoader, pdfLoader, textLoader.
textSplittingModeoptions"simple"Text Splitting. One of simple, custom.
optionscollection{}
options.metadatafixed_collectionExtra metadata fields to attach to every document.
options.splitPagesbooleantrueSplit Pages. For PDF files, create one document per page.
options.separatorstring","CSV Separator.
options.columnstringCSV Column. Only use the values of this CSV column.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.documentDefaultDataLoader1unverified