Build a multi-agent system with n8n, Qdrant, Gmail & OpenAI
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Qdrant Vector Store, Google Drive, OpenAI Chat Model and Embeddings OpenAI and 3 more. It also calls newsapi.org over HTTP.
How it runs
Trigger: When a chat message arrives (plus 1 other trigger).
- Answer Questions (AI Agent): runs an AI agent, with model: Generate Agent Response; 3 tools (RAG sub-agent, Gmail sub-agent, Check News or Recent Data); memory: Store Conversation with an Agent
- Get Document (Google Drive): download
- Extract Content (Extract from File): extracts data from a file (text)
- Convert to Markdown (Markdown): converts between Markdown and HTML
- Process Request (Basic LLM Chain): sends a prompt to an LLM, with model: Generate Summary
- Format Summary Output (Edit Fields (Set)): sets 1 field: summary
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Google Drive templates (628) · Other Gmail + Google Drive templates (465)
HTTP calls to: newsapi.org
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (17)
- Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Markdown
n8n-nodes-base.markdown - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Gmail Tool
n8n-nodes-base.gmailTool - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Http Request Tool
n8n-nodes-base.httpRequestTool - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger
From the author
This template presents a multi-agent system in which a coordinating agent manages specialized sub-agents: an AI agent for RAG and document summarization, and an email agent. Each agent effectively operates in its own domain, working collaboratively under the…