Automated workflow
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.Trigger the workflow when a local file is received or a manual request is initiated by the user
- 2.Read and parse the document, then split it into manageable text segments using recursive character splitting
- 3.Convert text segments into vector embeddings using Mistral Cloud embeddings service
- 4.Store the vectors in Qdrant database for efficient retrieval and similarity matching
- 5.Process user queries through the chat interface and route them to the LLM chain
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (29)
Local File Trigger
Local File Trigger
When clicking "Test workflow"
Manual Trigger
Set Variables
Set
Sticky Note
Sticky Note
Sticky Note4
Sticky Note
Read File
Read Write File
Embeddings Mistral Cloud
Embeddings Mistral Cloud
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Prepare Embedding Document
Set
Chat Trigger
Chat Trigger
Question and Answer Chain
Chain Retrieval Qa
Mistral Cloud Chat Model
Lm Chat Mistral Cloud
Vector Store Retriever
Retriever Vector Store
Embeddings Mistral Cloud1
Embeddings Mistral Cloud
Remap for File_Added Flow
Set
Search For Existing Point
HTTP Request
Has Existing Point?
If
Delete Existing Point
HTTP Request
Search For Existing Point1
HTTP Request
Has Existing Point?1
If
Delete Existing Point1
HTTP Request
Handle File Event
Switch
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note5
Sticky Note
Qdrant Vector Store
Vector Store Qdrant
Qdrant Vector Store1
Vector Store Qdrant