AI Agents

Build an intelligent agent that answers document questions

22 nodes 266 137 Automatic trigger
Download

Workflow Description

An advanced automation template leveraging AI to analyze and segment documents, store content in a vector database, and automatically answer user queries based on indexed material using retrieval chains and language models.

How it works

  1. 1.Trigger the workflow via manual activation or HTTP request
  2. 2.Load documents and split them into manageable text chunks
  3. 3.Convert text segments into vector embeddings using OpenAI
  4. 4.Store vectors in Milvus for efficient semantic search
  5. 5.Respond to questions by retrieving relevant content and generating intelligent answers

Use cases

  • Create a smart search engine across internal company documentation
  • Build an automated customer support system answering frequently asked questions from a knowledge base
  • Extract information from lengthy reports and respond to specific inquiries instantly

Requirements

  • OpenAI API key for accessing language models and embedding services
  • Milvus vector database or compatible vector storage for indexing and retrieval
  • Supported document formats (PDF, DOCX, text) ready for processing and ingestion

Service Value

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

Apps Used

OpenAI Chat Trigger Vector Store Document Default Data Loader Text Splitter LLM Chain

Details

Trigger Automatic trigger
Nodes 22
Apps 6
Views 266
Downloads 137

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

/

OpenAI Chat Model

OpenAI

#1

When clicking "Execute Workflow"

Manual Trigger

#2

Fetch Essay List

HTTP Request

#3

Extract essay names

HTML Page

#4

Split out into items

Split Out

#5

Fetch essay texts

HTTP Request

#6

Limit to first 3

Limit

#7

Extract Text Only

HTML Page

#8

Sticky Note3

Sticky Note

#9

Sticky Note5

Sticky Note

#10

When chat message received

Chat Trigger

#11

Sticky Note

Sticky Note

#12

Milvus Vector Store

Vector Store Milvus

#13

Default Data Loader

Document Default Data Loader

#14

Embeddings OpenAI

OpenAI

#15

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#16

Sticky Note1

Sticky Note

#17

Embeddings OpenAI1

OpenAI

#18

Milvus Vector Store1

Vector Store Milvus

#19

Sticky Note2

Sticky Note

#20

Q&A Chain to Retrieve from Milvus and Answer Question

Chain Retrieval Qa

#21

Milvus Vector Store Retriever

Retriever Vector Store

#22