Skip to content
FlowHubFluxonLab
A
AI Automationfree

RAG Chatbot for Company Documents using Google Drive and Gemini

by Mihai Farcasadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentDDefault Data LoaderEmbeddings Google GeminiEmbeddings Google GeminiGoogle DriveGoogle DriveGoogle Gemini Chat ModelPinecone Vector StorePinecone Vector StoreRecursive Character Text SplitterRecursive Character Text SplitterSSimple MemoryVector Store Question Answer ToolVector Store Question Answer Tool
Share Post Share
VSPinecone Vector StorePinecone Vector…EGEmbeddings Google GeminiEmbeddings Goog…DDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…AgAI AgentTVVector Store ToolVector Store To…VSPinecone Vector Store (Retrieval)Pinecone Vector…EGEmbeddings Google Gemini (retrieval)Embeddings Goog…Download File From Google DriveDownload File F…GDGoogle Drive File UpdatedGoogle Drive Fi…GDGoogle Drive File CreatedGoogle Drive Fi…MBWindow Buffer MemoryWindow Buffer M…ChWhen chat message receivedWhen chat messa…Google Gemini Chat ModelGoogle Gemini C…Google Gemini Chat Model (retrieval)Google Gemini C…123456
1/5
FLOWS
STEPS · 6
Starts on a Google Drive event

This workflow implements a Retrieval Augmented Generation (RAG) chatbot that answers employee questions based on company documents stored in Google Drive. It automatically indexes new or updated documents in a Pinecone vector database, allowing the chatbot to provide accurate and up-to-date information. The workflow uses Google's Gemini AI for both embeddings and response generation. How it works The workflow uses two Google Drive Trigger nodes: one for detecting new files added to a specified Google Drive folder, and another for detecting file updates in that same folder. Automated Indexing: When a new or updated document is detected The Google Drive node downloads the file. The Default Data Loader node loads the document content. The Recursive Character Text Splitter node breaks the document into smaller text chunks. The Embeddings Google Gemini node generates embeddings for each text chunk using the text-embedding-004 model. The Pinecone Vector Store node indexes the text chunks and their embeddings in a specified Pinecone index. 7.The Chat Trigger node receives user questions through a chat interface. The user's question is passed to an AI Agent node.

Tags

n8nreference-onlyagentdocument-default-data-loaderembeddings-google-geminigoogle-drivelm-chat-google-geminimemory-buffer-windowtext-splitter-recursive-character-text-splittertool-vector-storevector-store-pinecone
Connects
AAI AgentDDefault Data LoaderembeddingsgooglegeminiEmbeddings Google GeminigoogledriveGoogle DriveGoogle Gemini Chat ModelpineconevectorstorePinecone Vector Store
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes15
AddedJan 20, 2025

Related workflows

See all AI Automation
ABCD
free

Run AI employee onboarding with Groq, Google Workspace, and Gemini

Quick overview This workflow ingests onboarding documents from Google Drive into an in-memory vector store with Google Gemini embeddings, then runs a multi-channel onboarding chatbot powered by Groq, sends role-based welcome emails via Gmail when a new hire appears in Google Sheets, and schedules day 1/7/30 check-in emails. How it works Manually runs an ingestion flow that lists files in a specified Google Drive folder, downloads them, extracts text, and indexes them into an in-memory vector store using Google Gemini embeddings. Receives employee questions via n8n Chat (and optionally Slack or Telegram), normalizes the message into a single format, and rejects empty or overly long inputs. Uses a Groq LLM agent with per-user session memory to retrieve relevant excerpts from the in-memory company_docs knowledge base and generate a grounded answer, or directs the user to HR when no relevant content is found. Routes the assistant’s response back to the originating channel (n8n Chat, and optionally Slack or Telegram). Triggers every minute on updates to a Google Sheets “Hires” sheet, validates rows marked as Hired, and skips hires already present in the “Tracking” sheet. Builds a depart

by Yash Kabra
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team