Mindket

Chat with your company documents from Google Drive

Newversion 1 · updated

Overview

An n8n workflow that answers questions from your company documents. It watches a Google Drive folder, stores new files in Pinecone with Gemini, and an agent in n8n’s chat answers from the closest pieces.

Chat with your company documents from Google Drive is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • Another model: swap either Gemini chat node for any chat model node

Platform

Connects 3 apps

How it works

Trigger

Chat message

You ask a question in n8n’s chat, and a second flow fills the index whenever a file is added or changed in a Google Drive folder. It needs:

  • A question typed into the chat
  • A Google Drive folder that holds your documents

Actions

  1. A file added or changed in the watched Drive folder is downloaded, checked every minute
  2. The file is cut into pieces of about 1,000 characters that overlap by 100, turned into vectors by Gemini and stored in a Pinecone index
  3. Your question reaches an agent that remembers the last few turns of the chat
  4. The agent calls a document tool, which searches Pinecone for the closest pieces and has Gemini write an answer from them
  5. The agent replies in the chat, or says it cannot find the answer

Result

An answer in the chat that comes from your documents, or a reply that says the documents hold no answer

Integrations

What you need before you start.

Google Drive

Document source

Watches one folder and downloads the files that are added or changed.

NeedsGoogle account sign-in

Pinecone

Vector store

Keeps the pieces of your documents and finds the ones closest to a question.

NeedsPinecone API key and an index

Google Gemini

Vectors and answers

Turns text into vectors and writes the answers.

NeedsGoogle AI API key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
6 steps, starting on a Google Drive event or on a chat message
AI
2 steps call an AI model: Pinecone Vector Store and AI Agent
Sign-ins
Signs in to: Google Drive, Pinecone, Google Gemini and Google service account
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 5 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow lets you chat with the documents in a Google Drive folder. One flow watches the folder. When a file is added or changed, it cuts the file into pieces, turns each piece into a vector with Gemini and stores it in a Pinecone index. A second flow takes a question from n8n’s chat. An agent searches the index for the closest pieces, and Gemini writes the answer from them. When the pieces hold no answer, the agent says so. Fifteen nodes run it, and three sticky notes explain the setup.

Who it suits

Teams that keep policies and handbooks in Google Drive and answer the same questions again and again, such as HR or an office manager. Skip it if the documents are too private to send to Google and Pinecone, or if every answer must name its source file.

Who uses it, and how
IndustryWho uses itHow they use itExample
HRHR teamsAnswer staff questions from the handbookAn employee asks how many days of leave a new hire gets and reads the answer from the policy file.
OperationsOffice managersPoint newcomers to the house rulesA new hire asks about the expense rules and gets them from the finance policy.
SupportSupport leadsGive agents a quick lookup over the help filesAn agent asks for the refund steps and gets them from the process document.
EducationSchool administratorsAnswer parents’ questions from the school handbookAn administrator asks about uniforms and reads the rule from the handbook file.

You need a little n8n: import a file, add three credentials, make an index in Pinecone and pick a Drive folder.

Where to use it

Any n8n that can reach Google Drive, Google’s Gemini API and Pinecone will run it. The folder watch runs only while the workflow is published, and the chat opens from the Chat button in n8n.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • Another model: swap either Gemini chat node for any chat model node

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. You need a Google account with Drive, a Google AI key and a Pinecone account.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
Google DriveA sign-in and a folder for your documents
Google AIAn API key from Google AI Studio
PineconeAn account, an API key and an index named company-files with 3072 dimensions and the cosine metric
  1. In Pinecone, create an index named company-files with 3072 dimensions and the cosine metric, and copy an API key.
  2. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  3. Add a Google Drive, a Google Gemini (PaLM) and a Pinecone credential, and select them in the nodes that ask for them.
  4. In both Drive triggers, pick the folder that holds your documents.
  5. In both Pinecone nodes, pick the company-files index.
  6. Publish the workflow, add a document to the folder and give it a minute.
  7. Open the chat in n8n and ask a question.

How to use it

Add documents to the folder and ask questions in the chat. The agent remembers the last few turns. A file you change is added again, so its old pieces stay in the index beside the new ones.

What to change for a different result
To changeWhere
The assistant’s role and rulesThe system message in AI Agent
How the document tool is describedVector Store Tool
The size of a pieceRecursive Character Text Splitter, 1,000 characters with an overlap of 100
The folderBoth Drive triggers
The modelsThe two Gemini chat nodes and the two embeddings nodes

Example

An HR manager adds “Leave policy.pdf” to the folder. At the next check the file goes into the index. An employee types “How many days of paid leave do new hires get?”. The agent calls the document tool, which finds the pieces about leave, and Gemini answers from them in a few sentences.

Asked about something the files do not cover, the agent says it found no answer in the documents.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A vector store keeps text as lists of numbers, called vectors, so a question can find pieces with a similar meaning. An agent is a node that decides when to call a tool.

For experts. Pinecone Vector Store runs in insert mode, and Default Data Loader reads the binary field data. Pinecone Vector Store (Retrieval) feeds Vector Store Tool, which has its own chat model, Google Gemini Chat Model (retrieval). Window Buffer Memory keeps the last five interactions inside the n8n process.

Where to look closer
NodeWhat it doesWhat to know
Google Drive File Created and Google Drive File UpdatedWatch one folderCheck every minute
Download File From Google DriveDownloads the fileA Google Doc arrives as a Word file
Pinecone Vector StoreStores the piecesAdds them again on each update
Vector Store ToolSearches the index for the agentReturns the 4 closest pieces
AI AgentWrites the replyFollows its system message

Good to know

Two model names needed a swap, and the Pinecone index must match the new vector size.

  • Vectors: Google’s page, read on 12 November 2026, shut text-embedding-004 down on 14 January 2026 and names gemini-embedding-2. That model returns one combined vector when a request holds several inputs, which Mindket did not want to rely on without a run. The copy uses gemini-embedding-001, a text-only model that is also the node’s default
  • Index size: gemini-embedding-001 returns 3072 values by default, so make the index with 3072 dimensions. An index made for another size will not take the vectors
  • Chat model: gemini-2.0-flash-exp is not on Google’s page any more, and the gemini-2.0-flash family shut down on 1 June 2026. Mindket’s copy uses gemini-3.8-flash, which Google’s models page lists as stable
  • Changed files: the old pieces of a changed file stay in the index, because the Pinecone node’s Clear Namespace option is off
  • File types: the loader reads PDF, Word, text, CSV, JSON and EPub. Google Sheets and Slides arrive as Excel and PowerPoint files, which it cannot read
  • Memory: the last five turns live in n8n’s memory, and a restart clears them
  • Not run: Mindket read this copy against n8n’s source and Google’s pages and did not run it on a live n8n
  • Your data: the text of your files and your questions go to Google and Pinecone, and anyone who can open the chat can read answers drawn from every file in the folder
  • Credentials: the JSON holds none

README and files

README

Chat with your company documents from Google Drive

An n8n workflow that answers questions from your company documents. One flow watches a Google Drive folder and stores each new or changed file in a Pinecone index, using Gemini to make the vectors. A second flow takes a question from n8n's chat, and an agent answers from the closest pieces.

What is inside

  • workflow.json: the workflow as n8n exports it, 18 nodes. Fifteen run, and three are sticky notes. The fifteen are two Drive triggers and a download step, the Pinecone store with its loader, text splitter and embeddings, and the chat trigger. The rest are the agent with its memory and chat model, and the document tool with its own Pinecone search, embeddings and chat model. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

  • The two Embeddings Google Gemini nodes used models/text-embedding-004. Google's deprecation page, read on 12 November 2026, shut that model down on 14 January 2026 and names gemini-embedding-2. That model returns one combined vector when a request holds several inputs, and Mindket did not want to rely on that without a run. Both nodes now use models/gemini-embedding-001, a text-only model that is also this node's own default. It returns 3072 values by default.
  • The two Google Gemini Chat Model nodes used models/gemini-2.0-flash-exp. Google's page does not list that name any more, and the gemini-2.0-flash family shut down on 1 June 2026. Both nodes now use models/gemini-3.8-flash, which Google's models page lists as stable.
  • The credential links are gone. Both Drive triggers have an empty folder to pick, because the original pointed at the author's own folder.
  • The three sticky notes are written again, and the set-up note now gives the index size.
  • The file's name is ours.
  • Nothing else. The agent's rules, the document tool, the splitter and the loader are as the file had them.

Mindket read this copy against n8n's source and Google's pages. It was not run on a live n8n.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • A Google account with Drive, and a folder for your documents.
  • A Google AI Studio API key for the Gemini credential.
  • A Pinecone account and an API key.

Set it up

  1. In Pinecone, create an index named company-files with 3072 dimensions and the cosine metric, and copy an API key.
  2. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  3. Add a Google Drive credential, a Google Gemini (PaLM) credential with your AI Studio key and a Pinecone credential. Select them in the nodes that ask for them.
  4. In Google Drive File Created and Google Drive File Updated, pick the folder that holds your documents.
  5. In both Pinecone nodes, pick the company-files index.
  6. Publish the workflow, add a document to the folder and give it a minute.
  7. Open the chat in n8n and ask a question.

What happens in a run

Filling the index:

  1. Google Drive File Created and Google Drive File Updated check the folder every minute. Both pass the file on to Download File From Google Drive, which downloads it under its own name.
  2. Pinecone Vector Store stores the file in insert mode. Default Data Loader reads the downloaded file, Recursive Character Text Splitter cuts it into pieces of about 1,000 characters that overlap by 100, and Embeddings Google Gemini turns each piece into a vector.

Answering a question:

  1. When chat message received passes your question to AI Agent, which has Window Buffer Memory and Google Gemini Chat Model.
  2. The agent's system message makes it a helpful HR assistant for questions about company policies. It must use the company_documents_tool for anything that comes from the documents. When the documents hold no answer, it must say so in a fixed line.
  3. Vector Store Tool searches through Pinecone Vector Store (Retrieval) and Embeddings Google Gemini (retrieval), returns the closest pieces and has Google Gemini Chat Model (retrieval) write the answer from them.

What to change

  • The assistant's role and rules: the system message in AI Agent.
  • How the document tool is described to the agent: Vector Store Tool.
  • The size of a piece: Recursive Character Text Splitter.
  • The folder: both Drive triggers.
  • The models: the two Gemini chat nodes and the two embeddings nodes. If you change an embeddings model, make a new index of its size and fill it again.

Good to know

  • An index made for another vector size than the one in step 1 will not take the vectors.
  • A changed file is added again. The Pinecone node's Clear Namespace option is off, so the old pieces of that file stay beside the new ones.
  • The loader reads PDF, Word, text, CSV, JSON and EPub. A Google Doc is downloaded as a Word file. Google Sheets and Slides arrive as Excel and PowerPoint files, which the loader cannot read.
  • The triggers react to files created or changed after you publish the workflow, so add your documents then.
  • The chat memory holds the last five interactions inside the n8n process, and a restart clears it.
  • Both embeddings nodes must use the same model, or the search finds nothing useful. They do in this copy.
  • Data: the text of your files and your questions go to Google and Pinecone. Anyone who can open the chat can read answers drawn from every file in the folder.
  • Cost: Google bills the Gemini calls and Pinecone bills the index, each under your plan.
Files
NOTICE.md  671 B
README.md  5 KB
workflow.json  11 KB

3 files, 17 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Productivity

See all in Productivity

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k