Automation library · Documents and files

Process documents & build semantic search with OpenAI

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

LargeCalls a model: Gemini, OpenAIRetrieval

23 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 4Model 13Logic 3Service 3

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

  1. 1Embeddings OpenAIEmbeddings Open AiModel
  2. 2Embeddings OpenAI1Embeddings Open AiModel
  3. 3File Upload FormForm triggerStarts it
  4. 4Recursive Character Text Splitter 1Text Splitter Recursive Character Text SplitterModel
  5. 5Recursive Character Text Splitter 2Text Splitter Recursive Character Text SplitterModel
  6. 6New File In Google Drive FolderGoogle Drive triggerStarts it
  7. 7When chat message receivedChat triggerStarts it
  8. 8Embeddings OpenAI2Embeddings Open AiModel
  9. 9Google Gemini Chat ModelLm Chat Google GeminiModel
  10. 10Simple MemoryMemory Buffer WindowModel
  11. 11Manually Trigger WorkflowManual triggerStarts it
  12. 12Insert to QdrantVector Store QdrantModel
  13. 13Insert to Qdrant1Vector Store QdrantModel
  14. 14Split Form FilesCodeLogic
  15. 15Data Loader for Google Drive FilesDocument Default Data LoaderModel
  16. 16Data Loader for Form FilesDocument Default Data LoaderModel
  17. 17List Files in Google Drive FolderGoogle DriveService
  18. 18AI AgentAgentModel
  19. 19Qdrant Vector StoreVector Store QdrantModel
  20. 20MergeMergeLogic
  21. 21Split Form BatchesSplit In BatchesLogic
  22. 22Download FileGoogle DriveService
  23. 23Delete FileGoogle DriveService

How it's built

Starts on
Someone opening a chat with it
Steps
23, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Qdrant
Model
Gemini, 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 and Qdrant accounts, and a key for Gemini and 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 Gemini and 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 23 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 23 steps before you point it at anything that matters.