AI Agents

Automated workflow

29 nodes 220 124 Automatic trigger
Download

Workflow Description

An intelligent workflow that processes local files and integrates advanced language models with vector-based retrieval to automate document analysis and information extraction, enabling organizations to answer queries with precision while maintaining efficient data management.

How it works

  1. 1.Trigger the workflow when a local file is received or a manual request is initiated by the user
  2. 2.Read and parse the document, then split it into manageable text segments using recursive character splitting
  3. 3.Convert text segments into vector embeddings using Mistral Cloud embeddings service
  4. 4.Store the vectors in Qdrant database for efficient retrieval and similarity matching
  5. 5.Process user queries through the chat interface and route them to the LLM chain
  6. 6.Retrieve relevant documents from the vector store and generate accurate responses using LM Chat Mistral

Use cases

  • Question-answering system for internal documents, policies, and knowledge bases
  • Automated processing of invoices, contracts, and reports with key information extraction
  • Context-aware search engine for organizational files and documentation

Requirements

  • Mistral Cloud credentials for embeddings and chat model access
  • Qdrant vector database server running and configured
  • Local file system read-write permissions and access to file storage

Service Value

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

Apps Used

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

Details

Trigger Automatic trigger
Nodes 29
Apps 9
Views 220
Downloads 124

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 (29)

/

Local File Trigger

Local File Trigger

#1

When clicking "Test workflow"

Manual Trigger

#2

Set Variables

Set

#3

Sticky Note

Sticky Note

#4

Sticky Note4

Sticky Note

#5

Read File

Read Write File

#6

Embeddings Mistral Cloud

Embeddings Mistral Cloud

#7

Default Data Loader

Document Default Data Loader

#8

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#9

Prepare Embedding Document

Set

#10

Chat Trigger

Chat Trigger

#11

Question and Answer Chain

Chain Retrieval Qa

#12

Mistral Cloud Chat Model

Lm Chat Mistral Cloud

#13

Vector Store Retriever

Retriever Vector Store

#14

Embeddings Mistral Cloud1

Embeddings Mistral Cloud

#15

Remap for File_Added Flow

Set

#16

Search For Existing Point

HTTP Request

#17

Has Existing Point?

If

#18

Delete Existing Point

HTTP Request

#19

Search For Existing Point1

HTTP Request

#20

Has Existing Point?1

If

#21

Delete Existing Point1

HTTP Request

#22

Handle File Event

Switch

#23

Sticky Note1

Sticky Note

#24

Sticky Note2

Sticky Note

#25

Sticky Note3

Sticky Note

#26

Sticky Note5

Sticky Note

#27

Qdrant Vector Store

Vector Store Qdrant

#28

Qdrant Vector Store1

Vector Store Qdrant

#29