Mindket

Ask a Google Drive PDF questions in chat

Newversion 1 · updated

Overview

An n8n workflow that lets you chat with a PDF. One run loads the PDF from Google Drive into Pinecone, and then an OpenAI model answers your questions in n8n’s chat from the pieces of the PDF that match.

Ask a Google Drive PDF questions in chat 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, load the PDF once and open the chat
  • Your own n8n server: the same steps
  • Another file source: replace Google Drive with a node that fetches a PDF from elsewhere
  • Another vector store: replace the two Pinecone nodes with another store that n8n offers

Platform

Connects 3 apps

How it works

Trigger

Chat message

Two things start it. Pressing Execute workflow loads the PDF into Pinecone. A message in n8n’s chat asks a question, and the trigger reads:

  • Your question

Actions

  1. The workflow downloads the PDF from the Google Drive link you set
  2. It cuts the text into pieces of 3,000 characters, makes a vector for each and stores them in Pinecone, replacing what the namespace held
  3. A chat message is turned into a vector, and Pinecone returns the four closest pieces
  4. An OpenAI model answers the question from those pieces

Result

A chat reply that answers your question from the PDF

Integrations

What you need before you start.

Google Drive

File source

Holds the PDF the workflow downloads.

NeedsGoogle account linked through n8n’s Google sign-in, and the share link of the PDF

Pinecone

Vector store

Stores the pieces of the PDF and finds the closest ones to a question.

NeedsPinecone API key and an index with 1536 dimensions

OpenAI

Embeddings and answers

Turns text into vectors and writes the answer from the pieces.

NeedsOpenAI API key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
6 steps, starting by hand or on a chat message
AI
2 steps call an AI model: Insert into Pinecone vector store and Question and Answer Chain
Sign-ins
Signs in to: Google Drive, Pinecone and OpenAI
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 6 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 a PDF. One run downloads a PDF from Google Drive, cuts its text into pieces and stores them in Pinecone. Then you ask questions in n8n’s chat window. The workflow finds the pieces closest to your question, and an OpenAI model answers from them. Thirteen nodes do the work, plus three sticky notes.

Who it suits

Anyone who wants to question a long PDF, such as a report, a contract or a manual, without reading all of it. It is made for people who already use n8n, OpenAI and Pinecone. Skip it if you need to see where an answer came from, since this version gives plain answers.

Who uses it, and how
IndustryWho uses itHow they use itExample
ResearchAnalystsAsk a report what it says about one topicAn analyst loads a market report and asks which regions the author expects to grow.
LegalParalegalsFind a clause in a long contractA paralegal asks what the contract says about notice periods.
SupportSupport teamsAsk a product manual instead of searching itAn agent asks how to reset a device and gets the steps from the manual.
EducationStudentsCheck a paper for one detailA student asks which method a paper used.

You need some n8n: import a file, add three credentials and make a Pinecone index.

Where to use it

Any n8n that can reach Google, OpenAI and Pinecone will run it. The chat is n8n’s own, so it needs no other app.

  • n8n Cloud: import the file, load the PDF once and open the chat
  • Your own n8n server: the same steps
  • Another file source: replace Google Drive with a node that fetches a PDF from elsewhere
  • Another vector store: replace the two Pinecone nodes with another store that n8n offers

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is three credentials, a Drive link and one Pinecone index.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OpenAIAn API key
GoogleAn account that can open your PDF, linked through n8n’s Google sign-in
PineconeAn account, an API key and an index with 1536 dimensions
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add an OpenAI credential and select it in OpenAI Chat Model, Embeddings OpenAI and Embeddings OpenAI2.
  3. Add a Google Drive OAuth2 credential and select it in Google Drive.
  4. In Set Google Drive file URL, replace the whole value with the share link of your PDF.
  5. In Pinecone, make an index with 1536 dimensions. Add a Pinecone credential, then select it and the index in both Pinecone nodes.
  6. Press Execute workflow to load the PDF, then open the chat and ask a question.

How to use it

Press Execute workflow once to load a PDF. Then open the chat at the bottom of the canvas and ask in plain words. Each load empties the default namespace of the index first, so use an index that holds nothing else.

What to change for a different result
To changeWhere
Which PDF it loadsThe link in Set Google Drive file URL
How big a piece isThe chunk size and the overlap in Recursive Character Text Splitter
How many pieces the model seesThe Limit field of Vector Store Retriever
The modelOpenAI Chat Model

Example

You load a product manual and ask how to reset the device.

The chat replies with the reset steps the model found in the manual. Check anything that matters against the PDF, since a model wrote the answer.

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 that stand for meaning, so it can find the pieces closest to a question. A model then writes the answer from those pieces.

For experts. Loading runs Set Google Drive file URL, Google Drive and Insert into Pinecone vector store. The insert node reads the file through Default Data Loader, which uses Recursive Character Text Splitter and Embeddings OpenAI. Asking sends the chat message into Question and Answer Chain, which takes its pieces from Vector Store Retriever. That retriever reads Pinecone through Read Pinecone Vector Store and Embeddings OpenAI2.

Where to look closer
NodeWhat it doesWhat to know
Google DriveDownloads the file from the linkThe original copy ignored the link, and Mindket’s copy reads it
Recursive Character Text SplitterCuts text into pieces of 3,000 characters with an overlap of 200The overlap keeps a sentence close to its context
Insert into Pinecone vector storeStores the pieces and their vectorsClear Namespace is on, so each load empties the namespace
Vector Store RetrieverReturns the pieces closest to the questionIt returns four, which is n8n’s default
Question and Answer ChainAnswers from those piecesIt has no memory, so each question stands alone
OpenAI Chat ModelWrites the answerMindket’s copy sets gpt-5.6-terra

Good to know

Every load wipes the namespace it writes to, and Mindket’s copy changes the models the original left to defaults.

  • Clear Namespace: it is on and no namespace is set, so each load empties the default namespace of the index before it writes. Use an index that holds nothing else
  • Drive link: the original copy ignored the link in Set Google Drive file URL. Mindket’s copy reads it
  • Models: OpenAI’s deprecations page, read on 12 November 2026, lists gpt-5-mini, the chat node’s default, for shutdown on 11 December 2026 with gpt-5.6-terra as the replacement. The chain has no tools, so Mindket’s copy uses it. The embeddings nodes used text-embedding-ada-002 by default. They now use text-embedding-3-small, which has the same size, 1536. Load again if your index holds vectors from the old model
  • Your data: the text of the PDF goes to OpenAI and Pinecone, and each question goes to OpenAI
  • Not run: nothing here was run against Google, OpenAI or Pinecone. The notes come from n8n’s source and the vendors’ pages
  • Credentials: the JSON holds none

README and files

README

Ask a Google Drive PDF questions in chat

An n8n workflow that lets you chat with a PDF. One run reads a PDF from Google Drive and stores it in Pinecone. After that, you ask
questions in n8n's chat window and an OpenAI model answers from the pieces of the PDF that match.

What is inside

  • workflow.json: the workflow as n8n exports it, 16 nodes, three of them sticky notes. It holds no credential. Two notes are
    coloured frames that group the nodes, and one holds short try-it steps.
  • README.md: these notes.

What we changed from the original copy

  • The Google Drive, OpenAI and Pinecone nodes were linked to credentials in their author's n8n. The links are gone, so select your
    own.
  • Google Drive ignored the link in Set Google Drive file URL and always downloaded one file picked by hand. It now reads the
    link from that node, and the link is a placeholder, <GOOGLE_DRIVE_FILE_ID>, that you replace with your own.
  • OpenAI Chat Model had no model set, so it used n8n's default, gpt-5-mini. It is now set to gpt-5.6-terra.
  • Both embeddings nodes had no model set, so they used text-embedding-ada-002. They are now set to text-embedding-3-small. It
    makes vectors of the same size, 1536, so the index setup does not change.
  • The try-it note now has a step for the Drive link.
  • The Chat Trigger's webhook id is gone, and n8n makes a new one when you import the file.
  • Nothing else.

Before you start

  • An n8n instance, on n8n Cloud or on your own server.
  • An OpenAI API key.
  • A Google account that can open your PDF, linked to n8n through its Google sign-in.
  • A Pinecone account, an API key, and an index with 1536 dimensions.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add an OpenAI credential. Select it in OpenAI Chat Model, Embeddings OpenAI and Embeddings OpenAI2.
  3. Add a Google Drive OAuth2 credential and select it in Google Drive.
  4. In Set Google Drive file URL, replace the whole value with the share link of your PDF. In Drive, open the PDF, choose Share and
    copy the link.
  5. Make an index with 1536 dimensions in Pinecone. Add a Pinecone credential in n8n, then select the credential and the index in
    Insert into Pinecone vector store and in Read Pinecone Vector Store. The two nodes must use the same index.
  6. Press Execute workflow to load the PDF into the index. Check in Pinecone that the index now holds records.
  7. Open the chat from the button at the bottom of the canvas and ask a question about the PDF.

How a run goes

Loading, started by hand:

  1. When clicking 'Test Workflow' button starts the run and Set Google Drive file URL holds the link in a field named file_url.
  2. Google Drive downloads the file named by that link.
  3. Insert into Pinecone vector store takes the file through Default Data Loader as binary data. `Recursive Character Text
    Splitter cuts the text into pieces of 3,000 characters that overlap by 200. Embeddings OpenAI` turns each piece into a vector.
  4. The insert node has Clear Namespace on, so every load first empties the namespace and then writes the new pieces.

Asking, started from the chat:

  1. When clicking 'Chat' button below passes your message to Question and Answer Chain.
  2. Vector Store Retriever asks Read Pinecone Vector Store for the closest pieces. Embeddings OpenAI2 turns your question into
    a vector first. The retriever returns four pieces, which is n8n's default.
  3. Question and Answer Chain gives those pieces and your question to OpenAI Chat Model and returns its answer in the chat.

Change the look

  • Which PDF it loads: the link in Set Google Drive file URL.
  • How big a piece is: the chunk size and the overlap in Recursive Character Text Splitter. Load again after a change.
  • How many pieces the model sees: the Limit field of Vector Store Retriever.
  • The model: the model field of OpenAI Chat Model.
  • The instructions the model gets: the options of Question and Answer Chain.

Good to know

  • Clear Namespace: it is on, and no namespace is set. Each load empties the default namespace of the index before it writes. Use an
    index that holds nothing else, or set a namespace in both Pinecone nodes.
  • Models: OpenAI's deprecations page, read on 12 November 2026, lists gpt-5-mini for shutdown on 11 December 2026 with
    gpt-5.6-terra as the replacement. The chain has no tools, so Mindket's copy uses gpt-5.6-terra. The page does not list
    text-embedding-ada-002. The new embeddings model gives vectors that do not mix with the old one's, so load the PDF again if
    your index already holds vectors from the old model.
  • One PDF at a time: a load replaces the earlier one. To keep several PDFs, use a namespace for each.
  • Answers: the model answers from the pieces it is given, so a question about something outside them may get a weak answer.
    Check anything that matters against the PDF.
  • Your data: the text of the PDF goes to OpenAI and to Pinecone, and each question goes to OpenAI.
  • Not run: nothing here was run against Google, OpenAI or Pinecone. These notes come from n8n's source and the vendors' pages, read
    on 12 November 2026.
Files
NOTICE.md  610 B
README.md  5 KB
workflow.json  9 KB

3 files, 15 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

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Productivity

See all in Productivity

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

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