AI Agents

Intelligent document processing with AI-powered question answering

42 nodes 296 138 Automatic trigger
Download

Workflow Description

Advanced workflow that ingests local files, splits them intelligently, generates embeddings, stores them in a vector database, and answers queries using Mistral's language model for document-based information retrieval.

How it works

  1. 1.Trigger on new local file and load document content automatically
  2. 2.Split long texts into chunks and convert to vector embeddings
  3. 3.Store embeddings in Qdrant vector store for fast retrieval
  4. 4.Process user queries through retrieval QA chain powered by Mistral

Use cases

  • Answer questions about company documents, policies, and internal knowledge bases
  • Analyze contracts and proposals to generate automated summaries
  • Build intelligent customer support systems based on company documentation

Requirements

  • Local files in text formats (PDF, TXT, DOCX)
  • Mistral Cloud account for embeddings and language model access
  • Qdrant vector database for storing and retrieving embeddings

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Local File Trigger Document Default Data Loader Text Splitter Embeddings Lm Chat Mistral Cloud Split In Batches Output Parser Vector Store LLM Chain Read Write File

Details

Trigger Automatic trigger
Nodes 42
Apps 10
Views 296
Downloads 138

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (42)

/

Local File Trigger

Local File Trigger

#1

Default Data Loader

Document Default Data Loader

#2

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#3

Embeddings Mistral Cloud

Embeddings Mistral Cloud

#4

Mistral Cloud Chat Model

Lm Chat Mistral Cloud

#5

Mistral Cloud Chat Model1

Lm Chat Mistral Cloud

#6

Prep Incoming Doc

Set

#7

Settings

Set

#8

Merge

Merge

#9

Get Doc Types

Set

#10

Split Out Doc Types

Split Out

#11

For Each Doc Type...

Split In Batches

#12

Item List Output Parser

Output Parser Item List

#13

Vector Store Retriever

Retriever Vector Store

#14

Embeddings Mistral Cloud1

Embeddings Mistral Cloud

#15

Qdrant Vector Store1

Vector Store Qdrant

#16

Mistral Cloud Chat Model2

Lm Chat Mistral Cloud

#17

Split Out

Split Out

#18

Aggregate

Aggregate

#19

Mistral Cloud Chat Model3

Lm Chat Mistral Cloud

#20

Discover

Chain Retrieval Qa

#21

2secs

Wait

#22

Get Generated Documents

Set

#23

Generate

LLM Chain

#24

Prep For AI

Set

#25

To Binary

Convert To File

#26

Export to Folder

Read Write File

#27

Get FileType

Switch

#28

Import File

Read Write File

#29

Extract from PDF

Extract From File

#30

Extract from DOCX

Extract From File

#31

Extract from TEXT

Extract From File

#32

Summarization Chain

Chain Summarization

#33

Sticky Note

Sticky Note

#34

Sticky Note1

Sticky Note

#35

Sticky Note2

Sticky Note

#36

Sticky Note3

Sticky Note

#37

Sticky Note4

Sticky Note

#38

Qdrant Vector Store

Vector Store Qdrant

#39

Sticky Note5

Sticky Note

#40

Interview

LLM Chain

#41

Sticky Note6

Sticky Note

#42