Automation library · AI assistants

Build a multi-agent system with Qdrant and Gmail

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

LargeCalls a model: OpenAI, OpenRouterRetrieval

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

The flow

Starts it 2Model 12Logic 2Service 7

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

  1. 1Summarize DocumentTool WorkflowModel
  2. 2Receive Summary RequestExecute Workflow triggerStarts it
  3. 3Generate SummaryLm Chat Open AiModel
  4. 4Generate EmbeddingsEmbeddings Open AiModel
  5. 5Get multiple messages in GmailGmail ToolService
  6. 6Read a message in GmailGmail ToolService
  7. 7Send a message in GmailGmail ToolService
  8. 8Create a draft in GmailGmail ToolService
  9. 9Generate Agent ResponseLm Chat Open AiModel
  10. 10Store Conversation with an AgentMemory Buffer WindowModel
  11. 11Generate RAG sub-agent ResponseLm Chat Open AiModel
  12. 12Check News or Recent DataHttp Request ToolService
  13. 13Generate Gmail sub-agent ResponseLm Chat Open RouterModel
  14. 14Chat with an AgentChat triggerStarts it
  15. 15RAG sub-agentAgent ToolModel
  16. 16Get DocumentGoogle DriveService
  17. 17Process RequestChain LlmModel
  18. 18Search DocumentsVector Store QdrantModel
  19. 19Gmail sub-agentAgent ToolModel
  20. 20Answer QuestionsAgentModel
  21. 21Extract ContentExtract From FileService
  22. 22Format Summary OutputSetLogic
  23. 23Convert to MarkdownMarkdownLogic

How it's built

Starts on
Someone opening a chat with it
Steps
23
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Qdrant
Model
OpenAI, OpenRouter
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 Qdrant accounts, and a key for OpenAI and OpenRouter. 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 and OpenRouter. 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.