Build a multi-agent system with n8n, Qdrant, Gmail & OpenAI
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 ...
Template notes
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 management of the primary agent.
In addition to the two sub-agents, the coordinator agent queries the latest news by calling the [HTTPS Request Tool]( https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolhttprequest/).
💡 This template is an extended version of the initial workflow on how to [Build a RAG Agent with n8n, Qdrant & OpenAI]( https://creators.n8n.io/workflows/11468).
The RAG sub-agent can use the [same Qdrant collection](https://drive.google.com/drive/u/2/folders/1BevhU5qdgNDFbK4D9oAYGeK0Dt5sEaxQ). You can import this example collection (n8n-rag-2437367325990310-2025-11-04-10-41-54.snapshot) of 3 documents into the free Qdrant cloud or self-hosted account, rather than creating it from scratch.
🔗Example files for RAG
The template uses the following example files in the Google Docs format: 1. German Data Protection law: Bundesdatenschutzgesetz (BDSG) 2. Computer Security Incident Handling Guide (NIST.SP.800-61r2) 3. Berkshire Hathaway letter to shareholders from 2024
🚀How to Get Started
1. Copy or import the template to your n8n instance. 2. Create your Google Drive credentials via the Google Cloud Console and add them to the "Get Document" node. A detailed walk-through can be found in the n8n [docs](https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/). 3. Create your Gmail credentials via the Google Cloud Console and add them to the Gmail nodes. 4. Create a [Qdrant API](https://qdrant.tech/) key and add it to the "Search Documents" node credentials. The API key will be displayed after you have logged into Qdrant and created a Cluster. 5. Create or activate your [OpenAI API]( https://platform.openai.com/api-keys) key. 6. Create or activate your [OpenRouter API]( https://openrouter.ai/docs/api/reference/authentication) key. 7. Create or activate your [News API]( https://newsapi.org/) key.