Build an intelligent agent that retrieves documents and answers with OpenAI
Workflow Description
An automation that collects Google Drive documents, segments them, and stores them in a Qdrant vector store, then uses an AI agent powered by OpenAI to answer questions based on retrieved content while maintaining conversation history.
How it works
- 1.Receive questions via webhook and trigger the agent
- 2.Load documents from Google Drive and split them for processing
- 3.Convert text to embeddings and store them in Qdrant
- 4.Search vectors and retrieve relevant documents
- 5.Generate answers using OpenAI model while preserving conversation context
- 6.Respond to the original request with the final answer
Use cases
- Enterprise assistant that answers employee questions based on company documentation
- Customer support system that retrieves answers from an automatically updated knowledge base
Requirements
- Active OpenAI account with valid API key
- Google Drive account containing documents to process
- Running Qdrant instance or Qdrant Cloud account
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 (23)
AI Agent
Agent
Vector Store Tool
Tool Vector Store
Qdrant Vector Store
Vector Store Qdrant
Embeddings OpenAI
OpenAI
Sticky Note4
Sticky Note
Sticky Note
Sticky Note
When clicking ‘Test workflow’
Manual Trigger
Create collection
HTTP Request
Refresh collection
HTTP Request
Get folder
Google Drive
Download Files
Google Drive
Default Data Loader
Document Default Data Loader
Token Splitter
Text Splitter Token Splitter
Sticky Note3
Sticky Note
Qdrant Vector Store1
Vector Store Qdrant
Embeddings OpenAI1
OpenAI
Sticky Note5
Sticky Note
Respond to ElevenLabs
Webhook
OpenAI
OpenAI
Listen
Webhook
Window Buffer Memory
Memory Buffer Window
OpenAI Chat Model
OpenAI
Sticky Note6
Sticky Note