AI Agents

Build an AI agent that answers user questions from documents

33 nodes 286 141 Automatic trigger
Download

Workflow Description

Advanced workflow that integrates a language model with a vector database to process natural language queries. Loads documents, splits them, creates embeddings, stores them in Qdrant, then routes questions to an agent that retrieves relevant answers with context.

How it works

  1. 1.Load documents and split them into processable text chunks using recursive character splitting
  2. 2.Convert text segments into numerical vectors using Mistral embeddings
  3. 3.Store vectors in Qdrant vector database for efficient semantic search
  4. 4.Receive user inquiries through chat interface and pass them to the intelligent agent
  5. 5.Extract relevant context from vectors and deliver accurate answers to the user

Use cases

  • Customer support system that answers questions from internal knowledge bases
  • Intelligent search engine that understands user intent and provides accurate responses
  • Specialized virtual assistant handling multi-domain queries efficiently

Requirements

  • Valid API key for Mistral Cloud embeddings and language model
  • Configured Qdrant vector database instance with active connection
  • Text documents prepared for upload (PDF, Word, plain text formats)
  • Chat Trigger configured for user communication interface

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Embeddings Document Default Data Loader Text Splitter Chat Trigger Tool Twitter/X Lm Chat Mistral Cloud AI Agent Vector Store

Details

Trigger Automatic trigger
Nodes 33
Apps 9
Views 286
Downloads 141

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

/

When clicking "Test workflow"

Manual Trigger

#1

Get This Week's Menu

HTTP Request

#2

Extract Available Courses

Code

#3

Extract Server Data

HTML Page

#4

Get Course Metadata

Set

#5

Get Recipe

HTTP Request

#6

Embeddings Mistral Cloud

Embeddings Mistral Cloud

#7

Default Data Loader

Document Default Data Loader

#8

Merge Course & Recipe

Merge

#9

Prepare Documents

Set

#10

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#11

Chat Trigger

Chat Trigger

#12

Extract Recipe Details

HTML Page

#13

Qdrant Recommend API

Tool Workflow

#14

Execute Workflow Trigger

Execute Workflow Trigger

#15

Mistral Cloud Chat Model

Lm Chat Mistral Cloud

#16

Get Tool Response

Set

#17

Wait for Rate Limits

Wait

#18

Get Mistral Embeddings

HTTP Request

#19

Use Qdrant Recommend API

HTTP Request

#20

Get Recipes From DB

Code

#21

Save Recipes to DB

Code

#22

Sticky Note

Sticky Note

#23

Sticky Note1

Sticky Note

#24

Sticky Note2

Sticky Note

#25

Sticky Note3

Sticky Note

#26

Sticky Note4

Sticky Note

#27

AI Agent

Agent

#28

Sticky Note5

Sticky Note

#29

Sticky Note6

Sticky Note

#30

Qdrant Vector Store

Vector Store Qdrant

#31

Sticky Note7

Sticky Note

#32

Sticky Note8

Sticky Note

#33