Automation library · Documents and files

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.

LargeCalls a model: OpenAIRetrieval

30 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
3Services it connects to

The flow

Starts it 4Model 15Logic 6Service 5

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

  1. 1Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  2. 2Google Drive File UpdatedGoogle Drive triggerStarts it
  3. 3Google Drive File CreatedGoogle Drive triggerStarts it
  4. 4Window Buffer MemoryMemory Buffer WindowModel
  5. 5When clicking ‘Execute workflow’Manual triggerStarts it
  6. 6When chat message receivedChat triggerStarts it
  7. 7OpenAI Chat ModelLm Chat Open AiModel
  8. 8OpenAI Chat Model1Lm Chat Open AiModel
  9. 9Embeddings OpenAIEmbeddings Open AiModel
  10. 10Embeddings OpenAI1Embeddings Open AiModel
  11. 11Embeddings OpenAI2Embeddings Open AiModel
  12. 12Recursive Character Text Splitter1Text Splitter Recursive Character Text SplitterModel
  13. 13Default Data LoaderDocument Default Data LoaderModel
  14. 14Filter PDF files1FilterLogic
  15. 15Filter PDF filesFilterLogic
  16. 16Documents finderAgentModel
  17. 17Pinecone – Delete All VectorsHttp RequestService
  18. 18Vector Store ToolTool Vector StoreModel
  19. 19Pinecone Vector Store (Retrieval)Vector Store PineconeModel
  20. 20Pinecone Vector StoreVector Store PineconeModel
  21. 21Pinecone Vector Store1Vector Store PineconeModel
  22. 22Default Data Loader1Document Default Data LoaderModel
  23. 23If length > 0_IfLogic
  24. 24If length > 0IfLogic
  25. 25Search files and foldersGoogle DriveService
  26. 26WaitWaitLogic
  27. 27Download File From Google Drive1Google DriveService
  28. 28Loop ItemsSplit In BatchesLogic
  29. 29Send a messageGmailService
  30. 30Download File From Google DriveGoogle DriveService

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.