Build an intelligent agent that processes documents and answers queries
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.Load documents and segment them into logical text chunks
- 2.Convert chunks to vector embeddings and store in Milvus
- 3.Receive user queries through a chat interface
- 4.Search stored documents for relevant information
- 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
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 (21)
When clicking "Execute Workflow"
Manual Trigger
Fetch Essay List
HTTP Request
Extract essay names
HTML Page
Split out into items
Split Out
Fetch essay texts
HTTP Request
Limit to first 3
Limit
Extract Text Only
HTML Page
Sticky Note3
Sticky Note
Sticky Note5
Sticky Note
Recursive Character Text Splitter1
Text Splitter Recursive Character Text Splitter
Milvus Vector Store
Vector Store Milvus
AI Agent
Agent
When chat message received
Chat Trigger
Sticky Note
Sticky Note
Default Data Loader
Document Default Data Loader
Milvus Vector Store as tool
Vector Store Milvus
Sticky Note1
Sticky Note
Embeddings OpenAI
OpenAI
OpenAI Chat Model
OpenAI
Embeddings OpenAI1
OpenAI
Sticky Note2
Sticky Note