Website chatbot with Google Drive knowledge base using GPT-4 and Mistral AI
Needs changesWhat this workflow does
This AI workflow has 23 nodes and runs when a chat message arrives (plus 2 other triggers). Along the way it connects OpenAI Chat Model, Qdrant Vector Store, Embeddings Mistral Cloud and Google Drive. It also calls api.mistral.ai over HTTP.
How it runs
Trigger: When a chat message arrives (plus 2 other triggers).
- website chat agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Qdrant Vector Store); memory: Simple Memory
- Google Drive: work with file folder
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Set metadata (Edit Fields (Set)): sets 5 fields: file_id, file_type, file_title…
- Google Drive: download
- Mistral Upload (HTTP Request): calls api.mistral.ai (POST)
- Mistral Signed URL (HTTP Request): calls an HTTP API
- Mistral DOC OCR (HTTP Request): calls api.mistral.ai (POST)
- If: checks a condition and branches into true / false
- Wait: pauses before continuing
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.mistral.ai
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in website chat agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) website chat agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (17)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter - If
n8n-nodes-base.if - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings Mistral Cloud
@n8n/n8n-nodes-langchain.embeddingsMistralCloud - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
AI-Powered Website Chatbot with Google Drive Knowledge Base Overview This workflow combines website chatbot intelligence with automated document ingestion and vectorization — enabling live Q&A from both chat input and processed Google Drive files. It uses…