AI Agents

Automated workflow

42 nodes 214 113 Automatic trigger
Download

Workflow Description

An automated workflow that listens for local files, segments text intelligently, generates semantic embeddings, stores them in a vector database, and answers queries using Mistral LLM through an advanced retrieval chain.

How it works

  1. 1.Trigger the workflow when a new file is detected in the local directory
  2. 2.Load and preprocess documents by splitting text into meaningful chunks
  3. 3.Generate embeddings using Mistral Cloud and store them in Qdrant vector store
  4. 4.Retrieve relevant text segments from the vector database based on query similarity
  5. 5.Generate responses using Mistral Chat model with formatted output

Use cases

  • Automate analysis of large documents and answer questions about their content
  • Build an intelligent information retrieval system for local file-based knowledge bases

Requirements

  • Access to Mistral Cloud API for embeddings and language model inference
  • Configured Qdrant vector database instance for semantic search

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 214
Downloads 113

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