← All N8N workflows
AI & researchAggregateChain LLMChain Retrieval QaChain SummarizationConvert To File

receive local file events and default data loader and recursive character text splitter

Configured with Aggregate, Chain LLM, Chain Retrieval Qa, Chain Summarization, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerLocal File TriggerLocal File TriggerFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformRecursive CharacterText SplitterText Splitter Recursive …AI & modelsEmbeddings MistralCloudEmbeddings Mistral CloudAI & modelsMistral Cloud ChatModelLM Chat Mistral CloudAI & modelsMistral Cloud ChatModel1LM Chat Mistral CloudTransformPrep Incoming DocEdit FieldsTransformSettingsEdit FieldsTransformMergeMergeTransformGet Doc TypesEdit FieldsTransformSplit Out Doc TypesSplit OutRoutingFor Each Doc Type...Loop Over ItemsTransformItem List Output ParserOutput Parser Item ListAI & modelsVector Store RetrieverRetriever Vector StoreAI & modelsEmbeddings MistralCloud1Embeddings Mistral CloudData storeQdrant Vector Store1Vector Store QdrantAI & modelsMistral Cloud ChatModel2LM Chat Mistral CloudTransformSplit OutSplit OutTransformAggregateAggregateAI & modelsMistral Cloud ChatModel3LM Chat Mistral CloudAI & modelsDiscoverChain Retrieval QaWait2secsWaitTransformGet Generated DocumentsEdit FieldsAI & modelsGenerateChain LLMTransformPrep For AIEdit FieldsTransformTo BinaryConvert To FileFiles / mediaExport to FolderRead Write FileRoutingGet FileTypeSwitchFiles / mediaImport FileRead Write FileTransformExtract from PDFExtract From FileTransformExtract from DOCXExtract From FileTransformExtract from TEXTExtract From FileAI & modelsSummarization ChainChain SummarizationData storeQdrant Vector StoreVector Store QdrantAI & modelsInterviewChain LLM

Node categories in this workflow

  • Trigger
  • Files / media
  • Transform
  • AI & models
  • Routing
  • Data store
  • Wait

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Local File TriggerTriggerLocal File TriggerSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
Embeddings Mistral CloudAI & modelsEmbeddings Mistral CloudSee node parameters
Mistral Cloud Chat ModelAI & modelsLM Chat Mistral CloudSee node parameters
Mistral Cloud Chat Model1AI & modelsLM Chat Mistral CloudSee node parameters
Prep Incoming DocTransformEdit FieldsSee node parameters
SettingsTransformEdit FieldsSee node parameters
MergeTransformMergeSee node parameters
Get Doc TypesTransformEdit FieldsSee node parameters
Split Out Doc TypesTransformSplit OutSee node parameters
For Each Doc Type...RoutingLoop Over ItemsSee node parameters
Item List Output ParserTransformOutput Parser Item ListSee node parameters
Vector Store RetrieverAI & modelsRetriever Vector StoreSee node parameters
Embeddings Mistral Cloud1AI & modelsEmbeddings Mistral CloudSee node parameters
Qdrant Vector Store1Data storeVector Store QdrantSee node parameters
Mistral Cloud Chat Model2AI & modelsLM Chat Mistral CloudSee node parameters
Split OutTransformSplit OutSee node parameters
AggregateTransformAggregateSee node parameters
Mistral Cloud Chat Model3AI & modelsLM Chat Mistral CloudSee node parameters
DiscoverAI & modelsChain Retrieval QaSee node parameters
2secsWaitWaitSee node parameters
Get Generated DocumentsTransformEdit FieldsSee node parameters
GenerateAI & modelsChain LLMSee node parameters
Prep For AITransformEdit FieldsSee node parameters
To BinaryTransformConvert To FiletoText
Export to FolderFiles / mediaRead Write Filewrite
Get FileTypeRoutingSwitchSee node parameters
Import FileFiles / mediaRead Write FileSee node parameters
Extract from PDFTransformExtract From Filepdf
Extract from DOCXTransformExtract From Fileods
Extract from TEXTTransformExtract From Filetext
Summarization ChainAI & modelsChain SummarizationSee node parameters
Qdrant Vector StoreData storeVector Store QdrantSee node parameters
InterviewAI & modelsChain LLMSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • mistralCloudApi
  • qdrantApi

Workflow notes

Step 1. Watch Folder and Import New Documents

Step 1. Watch Folder and Import New Documents

Read more about Local File Trigger

With n8n's local file trigger, we're able to trigger the workflow when files are created in our target folder. We still have to import them however as the trigger will only give the file's path. The "Extract From" node is used to get at the file's contents.

Step 2. Summarise and Vectorise Document Contents

Step 2. Summarise and Vectorise Document Contents

Learn more about using the Qdrant VectorStore

Capturing the document into our vector store is intended for a technique we'll use later known as Retrieval Augumented Generation or "RAG" for short. For our scenario, this allows our LLM to retrieve context more efficiently which produces better respsonses.

Step 3. Loop through Templates

Step 3. Loop through Templates

We'll ask the LLM to help us generate 3 types of notes from the imported source document. These notes are intended to breakdown the content for faster study. Our templates for this demo are: (1) Study guide (2) Briefing document (3) Timeline

Step 4. Use AI Agents to Query and Generate Template Documents

Step 4. Use AI Agents to Query and Generate Template Documents

Read more about using the Question & Answer Retrieval Chain

n8n allows us to easily use a chain of LLMs as agents which can work together to handle any task! Here the agents generate questions to explore the content of the source document and use the answers to generate the template.

Step 5. Export Generated Templates To Folder

Step 5. Export Generated Templates To Folder

Learn more about writing to the local filesystem

Finally, the AI generated documents can now be exported to disk. This workflow makes it easy to generate any kind of document from various source material and can be used for training and sales.

Try It Out!

Try It Out!

This workflow automates generating notes from a source document.

  • It watches a target folder to pick up new files.
  • When a new file is detected, it saves the contents of the file in a vectorstore.
  • multiple AI agents guided by a templates list, generate the predetermined notes.
  • These notes are then export alongside the original source file for the user.

Need Help?

Join the Discord or ask in the Forum!

Happy Hacking!

receive local file events and default data loader and recursive character text splitter

receive local file events and default data loader and recursive character text splitter

Purpose and structure

This folder contains the receive local file events and default data loader and recursive character text splitter workflow. Its executable nodes use aggregate, chainLlm, chainRetrievalQa, chainSummarization, convertToFile, documentDefaultDataLoader, embeddingsMistralCloud, extractFromFile, lmChatMistralCloud, localFileTrigger, merge, outputParserItemList, readWriteFile, retrieverVectorStore, set, splitInBatches, splitOut, switch, textSplitterRecursiveCharacterTextSplitter, vectorStoreQdrant, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Local File Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Localfile/0537_Localfile_Wait_Create_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • 💡Add your own templates here!

More in AI & research