AI-powered RAG configuration assistant: From form to email recommendations
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form. Along the way it connects OpenRouter Chat Model and Gmail.
How it runs
Trigger: When someone submits an n8n form.
- Analyze Input (Code): runs custom JavaScript code
- Check File Upload (If): checks a condition and branches into true / false
- Extract File Content (Code): runs custom JavaScript code
- Manual Input Path (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Prepare for AI (Edit Fields (Set)): sets or maps fields
- Configuration Decision Engine (AI Agent): runs an AI agent, with model: OpenRouter LLM
- Generate n8n Workflow (Code): runs custom JavaScript code
- Create Workflow Attachment (Code): runs custom JavaScript code
- Format HTML Report (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
Services it uses
Other Gmail + OpenRouter templates (135)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Configuration Decision Engine (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Configuration Decision Engine (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Gmail
n8n-nodes-base.gmail
From the author
Description An intelligent RAG Configuration Assistant that analyzes your retrieval-augmented generation requirements and delivers AI-powered recommendations via email. Get expert guidance on embedding models, chunk sizes, vector stores, and cost…