Automate Document Q&A with Multi-Agent RAG Orchestration using Contextual AI & Gemini
PROBLEM Managing multiple RAG AI agents can be complex when each has its own purpose and vector database. - Manually tracking agents and deciding which one to query wastes time. - LLMs often struggle to determine which agent best fits a user’s request. This workflow enables automated multi-agent orchestration, dynamically selecting and querying the correct agent using Contextual AI Query Tool and Gemini 2.5 Flash. How it works - A form trigger allows users to create n
At a glance
Automate Document Q&A with Multi-Agent RAG Orchestration using Contextual AI & Gemini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gemini. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Gemini
- Modules
- 14
- Price
- Free
- Version
- v1.0

About this workflow
PROBLEM Managing multiple RAG AI agents can be complex when each has its own purpose and vector database. - Manually tracking agents and deciding which one to query wastes time. - LLMs often struggle to determine which agent best fits a user’s request. This workflow enables automated multi-agent orchestration, dynamically selecting and querying the correct agent using Contextual AI Query Tool and Gemini 2.5 Flash. How it works - A form trigger allows users to create new agents by specifying a name, description, datastore, and uploading files. - A new agent is created with the provided information and files are ingested in the datastore - We get the status of file ingestion every 30 seconds until the ingestion process is complete - When users send queries, the Agent Orchestrator identifies the most relevant agent to generate grounded, context-aware responses. Note: The document ingestion process is asynchronous and may take a few minutes before your agent has the document fully available in the datastore for querying. How to set up - Create a free Contextual AI account and obtain your CONTEXTUALAIAPIKEY. - Add CONTEXTUALAIAPIKEY as an environment variable in n8n. - For the baseline model, we have used Gemini 2.5 Flash Model, you can find your Gemini API key here How to customize the workflow - Replace the Form Trigger with a Webhook Trigger or manual input to integrate with custom systems. - Swap Gemini 2.5 Flash with another LLM provider - Update the wait time as per user requirement - Modify the system prompt to fine-tune how the orchestration logic selects and queries agents. - You can check out this Contextual AI API reference for more details on agent creation and usage. - If you have feedback or need support, please email feedback@contextual.ai.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Fast-track CV screening with AI analysis from Gmail to Slack and Google Sheets
Create and schedule LinkedIn posts from Google Sheets with Gemini and DALL·E
Summarize Gmail emails with Gemini and send an HTML action digest
Monitor AI research papers with Gemini-powered filtering and email summaries
Auto-generate and post tweet threads based on Google Trends using Gemini AI
Generate MemeCoin Art with Gemini Flash & NanoBanana and Post to Twitter
Tailor your CV and cover letter to each job with easybits and Gemini
AI resume processing and GitHub analysis with VLM run
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you