Automation library · Data collection

Google Drive to Pinecone vector storage workflow with OpenAI

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

LargeCalls a model: OpenAIRetrieval

32 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
3Loops or waits
3Services it connects to

The flow

Starts it 5Model 10Logic 11Service 6

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Embeddings OpenAI1Embeddings Open AiModel
  3. 3File CreatedGoogle Drive triggerStarts it
  4. 4File UpdatedGoogle Drive triggerStarts it
  5. 5Embeddings OpenAIEmbeddings Open AiModel
  6. 6When chat message receivedChat triggerStarts it
  7. 7WebhookWebhookStarts it
  8. 8Character Text SplitterText Splitter Character Text SplitterModel
  9. 9CalculatorTool CalculatorModel
  10. 10Simple MemoryMemory Buffer WindowModel
  11. 11RAG AI AgentAgentModel
  12. 12Insert into Supabase VectorstoreVector Store SupabaseModel
  13. 13Set File ID1SetLogic
  14. 14Cars Data Vector StoreVector Store SupabaseModel
  15. 15Edit FieldsSetLogic
  16. 16Default Data LoaderDocument Default Data LoaderModel
  17. 17Respond to WebhookRespond To WebhookStarts it
  18. 18WaitWaitLogic
  19. 19Split Out1Split OutLogic
  20. 20Loop Over ItemsSplit In BatchesLogic
  21. 21Loop Over Items1Split In BatchesLogic
  22. 22FinishNodeSetLogic
  23. 23Delete Old Doc RowsSupabaseService
  24. 24FinishNode1SetLogic
  25. 25Download FileGoogle DriveService
  26. 26SwitchSwitchLogic
  27. 27Extract PDF TextExtract From FileService
  28. 28Extract from ExcelExtract From FileService
  29. 29Extract Document TextExtract From FileService
  30. 30Code1CodeLogic
  31. 31SummarizeSummarizeService
  32. 32Split OutSplit OutLogic

How it's built

Starts on
Someone opening a chat with it
Steps
32, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Supabase, Supabase vectors
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 Google Drive, Supabase and Supabase vectors 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 32 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 32 steps before you point it at anything that matters.