AI Agents

Build an intelligent agent that processes documents and answers queries

21 nodes 304 149 Automatic trigger
Download

Workflow Description

Comprehensive automation that combines document processing with an AI agent powered by OpenAI models. Splits documents into chunks, stores them in a vector database, then answers user questions directly from the indexed content with high accuracy.

How it works

  1. 1.Load documents and segment them into logical text chunks
  2. 2.Convert chunks to vector embeddings and store in Milvus
  3. 3.Receive user queries through a chat interface
  4. 4.Search stored documents for relevant information
  5. 5.Generate precise answers using OpenAI's language model

Use cases

  • Create an intelligent assistant that answers questions based on company documents
  • Automate employee inquiries about company policies and procedures

Requirements

  • Valid OpenAI API key with appropriate permissions
  • Documents in text or PDF format ready for processing

Service Value

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

Apps Used

Text Splitter Vector Store AI Agent Chat Trigger Document Default Data Loader OpenAI

Details

Trigger Automatic trigger
Nodes 21
Apps 6
Views 304
Downloads 149

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

/

When clicking "Execute Workflow"

Manual Trigger

#1

Fetch Essay List

HTTP Request

#2

Extract essay names

HTML Page

#3

Split out into items

Split Out

#4

Fetch essay texts

HTTP Request

#5

Limit to first 3

Limit

#6

Extract Text Only

HTML Page

#7

Sticky Note3

Sticky Note

#8

Sticky Note5

Sticky Note

#9

Recursive Character Text Splitter1

Text Splitter Recursive Character Text Splitter

#10

Milvus Vector Store

Vector Store Milvus

#11

AI Agent

Agent

#12

When chat message received

Chat Trigger

#13

Sticky Note

Sticky Note

#14

Default Data Loader

Document Default Data Loader

#15

Milvus Vector Store as tool

Vector Store Milvus

#16

Sticky Note1

Sticky Note

#17

Embeddings OpenAI

OpenAI

#18

OpenAI Chat Model

OpenAI

#19

Embeddings OpenAI1

OpenAI

#20

Sticky Note2

Sticky Note

#21