Answer internal policy questions from Google Drive with OpenAI and Qdrant
Needs changesWhat this workflow does
This AI workflow has 31 nodes and runs on Google Drive events (file created) (plus 3 other triggers). Along the way it connects Google Drive, Qdrant Vector Store, Embeddings OpenAI and OpenAI Chat Model and 1 more. It also calls 99330883-72b4-4e17-821a-b9b1a7f5b89f.us-west-2-0.aws.cloud.qdrant.io:6333 over HTTP.
How it runs
Trigger: On Google Drive events (file created) (plus 3 other triggers).
- Download Created File (Google Drive): download
- Download Updated File (Google Drive): download
- Filter: keeps only the items that match a condition
- Normalize Message Data (Edit Fields (Set)): sets 5 fields: userInput, sessionId, channel…
- Merge: merges the data from its input branches
- Merge: merges the data from its input branches
- Route by File Type (Switch): routes items into 4 branches
- Support AI Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4 Chat Model; 1 tool (Retrieve from Qdrant Vector Store); memory: Buffer Memory Storage
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Extract Text from Google Doc (Extract from File): extracts data from a file (text)
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: 99330883-72b4-4e17-821a-b9b1a7f5b89f.us-west-2-0.aws.cloud.qdrant.io:6333
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 Support AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Slack Trigger requires a signing secret on the Slack API credential.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Support AI Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (21)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Extract from File
n8n-nodes-base.extractFromFile - No Operation, do nothing
n8n-nodes-base.noOp - HTTP Request
n8n-nodes-base.httpRequest - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Edit Fields (Set)
n8n-nodes-base.set - Slack Trigger
n8n-nodes-base.slackTrigger - Filter
n8n-nodes-base.filter
From the author
Quick overview This workflow keeps a Qdrant knowledge base synced with Google Drive documents and lets users ask questions via n8n Chat or Slack, using OpenAI for embeddings and responses with source citations. How it works 1. Triggers every minute when a…