# Chat with Google Drive and Pinecone: n8n workflow template

> Started by someone opening a chat with it, and works across Gmail, Google Drive and Pinecone.

Source: https://millionrounds.com/workflow/chat-with-google-drive-and-pinecone (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Chat with Google Drive and Pinecone

Started by someone opening a chat with it, and works across Gmail, Google Drive and Pinecone. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fchat-with-google-drive-and-pinecone)

**30 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**2** Loops or waits

**3** Services it connects to

## The flow

Starts it 4 Model 15 Logic 6 Service 5

The steps in the order they run, from what starts it.

- 1 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 2 **Google Drive File Updated** Google Drive trigger *Starts it*
- 3 **Google Drive File Created** Google Drive trigger *Starts it*
- 4 **Window Buffer Memory** Memory Buffer Window *Model*
- 5 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 6 **When chat message received** Chat trigger *Starts it*
- 7 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 8 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 9 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 10 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 11 **Embeddings OpenAI2** Embeddings Open Ai *Model*
- 12 **Recursive Character Text Splitter1** Text Splitter Recursive Character Text Splitter *Model*
- 13 **Default Data Loader** Document Default Data Loader *Model*
- 14 **Filter PDF files1** Filter *Logic*
- 15 **Filter PDF files** Filter *Logic*
- 16 **Documents finder** Agent *Model*
- 17 **Pinecone – Delete All Vectors** Http Request *Service*
- 18 **Vector Store Tool** Tool Vector Store *Model*
- 19 **Pinecone Vector Store (Retrieval)** Vector Store Pinecone *Model*
- 20 **Pinecone Vector Store** Vector Store Pinecone *Model*
- 21 **Pinecone Vector Store1** Vector Store Pinecone *Model*
- 22 **Default Data Loader1** Document Default Data Loader *Model*
- 23 **If length > 0_** If *Logic*
- 24 **If length > 0** If *Logic*
- 25 **Search files and folders** Google Drive *Service*
- 26 **Wait** Wait *Logic*
- 27 **Download File From Google Drive1** Google Drive *Service*
- 28 **Loop Items** Split In Batches *Logic*
- 29 **Send a message** Gmail *Service*
- 30 **Download File From Google Drive** Google Drive *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 30, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, Pinecone
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Pinecone accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 30 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fchat-with-google-drive-and-pinecone)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Pinecone](https://millionrounds.com/workflows?service=Pinecone#library)

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Create custom PDF documents from templates with Gemini** 30 steps · calls a model · Google Drive](https://millionrounds.com/workflow/create-custom-pdf-documents-from-templates-with-gemini)
- [**Build a PDF Document RAG System with Mistral and Qdrant** 29 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/build-a-pdf-document-rag-system-with-mistral-and-qdrant)
- [**Automate commercial insurance submissions with Google Suite** 29 steps · Email, Google Docs](https://millionrounds.com/workflow/automate-commercial-insurance-submissions-with-google-suite)
- [**AI knowledge assistant with Gemini and OpenAI** 32 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/ai-knowledge-assistant-with-gemini-and-openai)
- [**Document-based RAG chat assistant with Google Drive** 32 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/document-based-rag-chat-assistant-with-google-drive)
- [**Generate business requirement documents with Google Workspace** 28 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-business-requirement-documents-with-google-workspac)
