Automation library · Documents and files

My solution for the "Agentic Arena Community Contest" with RAG

Started by an event in a connected app, and works across Google Drive and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 34 steps, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 3Model 12Logic 9Service 10

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

  1. 1Eval SetEvaluation triggerStarts it
  2. 2LLM as a JudgeLm Chat Open AiModel
  3. 3When clicking ‘Execute workflow’Manual triggerStarts it
  4. 4Embeddings OpenAIEmbeddings Open AiModel
  5. 5When Executed by Another WorkflowExecute Workflow triggerStarts it
  6. 6Create collectionHttp RequestService
  7. 7Character Text SplitterText Splitter Character Text SplitterModel
  8. 8Simple MemoryMemory Buffer WindowModel
  9. 9Reranker CohereReranker CohereModel
  10. 10Embeddings OpenAI1Embeddings Open AiModel
  11. 11OpenAI Chat ModelLm Chat Open AiModel
  12. 12Eval InputSetLogic
  13. 13Run EvaluationEvaluationService
  14. 14Refresh collectionHttp RequestService
  15. 15Qdrant Vector StoreVector Store QdrantModel
  16. 16Get PDFGoogle DriveService
  17. 17Default Data LoaderDocument Default Data LoaderModel
  18. 18AI AgentAgentModel
  19. 19RAGVector Store QdrantModel
  20. 20Filter Empty RowsFilterLogic
  21. 21Save EvalEvaluationService
  22. 22Search PDFsGoogle DriveService
  23. 23WaitWaitLogic
  24. 24Mistral UploadHttp RequestService
  25. 25Only if we are evaluatingEvaluationService
  26. 26Loop Over Items1Split In BatchesLogic
  27. 27Loop Over ItemsSplit In BatchesLogic
  28. 28Mistral Signed URLHttp RequestService
  29. 29Respond to ChatChatModel
  30. 30Get File IDSetLogic
  31. 31Set pageSetLogic
  32. 32Mistral DOC OCRHttp RequestService
  33. 33Call 'Agent Arena'Execute WorkflowLogic
  34. 34CodeCodeLogic

How it's built

Starts on
An event in a connected app
Steps
34, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Qdrant
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 and Qdrant accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

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 34 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 34 steps before you point it at anything that matters.