Create a knowledge base chatbot with Google Drive & GPT-4o using vector search
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL (plus 2 other triggers). Along the way it connects Embeddings OpenAI, OpenAI Chat Model, Vector Store Question Answer and Google Drive.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 2 other triggers).
- Edit Fields (Edit Fields (Set)): sets 2 fields: chatInput, sessionId
- Search Files in your Google Drive Folder (Google Drive): work with file folder
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Answer questions with a vector store); memory: Window Buffer Memory
- Download Files (Google Drive): download
- Is AI Agent output exist? (Code): runs custom JavaScript code
- Simple Vector Store: stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Token Authentication (HTTP Request): calls an HTTP API (POST)
- Send to Chat App (HTTP Request): calls an HTTP API (POST)
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Google Drive
n8n-nodes-base.googleDrive - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - HTTP Request
n8n-nodes-base.httpRequest - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
Template: Create an AI Knowledge Base Chatbot with Google Drive and OpenAI GPT (Venio/Salesbear) 📋 Template Overview This comprehensive n8n workflow template creates an intelligent AI chatbot that automatically transforms your Google Drive documents into a…