Build an intelligent agent with memory and document analysis
Workflow Description
Comprehensive automation that combines document processing, text embeddings, and vector storage to create a smart agent with context awareness, interacting across multiple platforms including Twitter and chat interfaces.
How it works
- 1.Load documents and split them into processed text chunks
- 2.Convert texts to numerical embeddings and store in vector database
- 3.Run intelligent agent managing memory and responding to queries
- 4.Distribute responses across Twitter and chat interface
Use cases
- Smart customer support agent that understands your company knowledge base
- Distributed document analysis system answering user questions across multiple channels
Requirements
- OpenAI API key for language model functionality
- Qdrant account or local server for vector storage
- Twitter/X credentials for automated posting
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 (38)
When clicking ‘Test workflow’
Manual Trigger
Embeddings Mistral Cloud
Embeddings Mistral Cloud
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Get Tax Code Zip File
HTTP Request
Extract Zip Files
Compression
Files as Items
Split Out
Extract PDF Contents
Extract From File
Extract From Chapter
Set
Map To Sections
Set
Execute Workflow Trigger
Execute Workflow Trigger
Get Mistral Embeddings
HTTP Request
Content Chunking @ 50k Chars
Set
Split Out Chunks
Split Out
For Each Section...
Split In Batches
Sections To List
Split Out
Only Valid Sections
Filter
Use Qdrant Search API1
HTTP Request
Use Qdrant Scroll API
HTTP Request
Get Search Response
Set
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Qdrant Vector Store
Vector Store Qdrant
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
AI Agent
Agent
Window Buffer Memory
Memory Buffer Window
When chat message received
Chat Trigger
Window Buffer Memory1
Memory Buffer Window
OpenAI Chat Model
OpenAI
1sec
Wait
Ask Tool
Tool Workflow
Search Tool
Tool Workflow
Switch
Switch
Get Ask Response
Set
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note