AI Agents

Extract documents and answer questions with AI

29 nodes 223 124 Automatic trigger
Download

Workflow Description

An automated workflow that monitors local documents, splits them into searchable vectors, and intelligently answers user questions using Mistral's language model with semantic search across a Vector Store database.

How it works

  1. 1.Monitor local files for new documents and capture user questions through the chat interface
  2. 2.Read the document, split it into chunks, and convert them into embeddings for semantic search
  3. 3.Retrieve relevant content from Vector Store and generate intelligent answers using Mistral language model

Use cases

  • Answer employee questions about company policies and internal documentation instantly
  • Analyze contracts and invoices automatically, responding to customer inquiries based on document content

Requirements

  • Mistral Cloud API access and compatible n8n version
  • Vector Store database (Qdrant) configured for embedding storage
  • File system access permissions and chat trigger activation enabled

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 223
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