Email real time RAG Assistant with Gmail, OpenAI & PGVector ๐ Whoโs it for This workflow is ideal for: - Professionals - Project managers - Sales and support teams - Anyone managing high volumes of Gmail messages It enables fast and intelligent search through your email inbox using natural language queries. --- โ๏ธ How it works / What it does - Continuously monitors your Gmail inbox for new emails. - Extracts email content and metadata (subject, body, sender,
Real-time email RAG assistant with Gmail, OpenAI GPT, and PGVector is a ready-made n8n workflow you import as a workflow JSON file โ no build required. It connects Gmail, Slack, OpenAI, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Email real time RAG Assistant with Gmail, OpenAI & PGVector ๐ Whoโs it for This workflow is ideal for: - Professionals - Project managers - Sales and support teams - Anyone managing high volumes of Gmail messages It enables fast and intelligent search through your email inbox using natural language queries. --- โ๏ธ How it works / What it does - Continuously monitors your Gmail inbox for new emails. - Extracts email content and metadata (subject, body, sender, date). - Converts email content into vector embeddings using OpenAI. - Stores embeddings in a PostgreSQL database with PGVector. - A conversational AI agent performs semantic search on your stored email history. - Supports time-sensitive and context-aware responses via OpenAI Chat model. --- ๐ How to set up 1. Connect your Gmail account to the Gmail Trigger node (with API access enabled). 2. Configure OpenAI credentials for the Embedding and Chat nodes. 3. Set up a PostgreSQL database with the PGVector extension enabled. 4. Import the workflow into your n8n instance (Cloud or Self-hosted). 5. Customize parameters like polling frequency, embedding settings, or vector query depth. --- ๐ Requirements - โ n8n instance (Self-hosted or Cloud) - โ Gmail account with API access - โ OpenAI API Key - โ PostgreSQL database with PGVector extension installed --- ๐ ๏ธ How to customize the workflow - Email Filtering: Change filters in the Gmail Trigger to watch specific labels or senders. - Text Splitting Granularity: Adjust chunkSize and chunkOverlap in the text splitter node. - Query Depth: Modify topK in the vector search node to retrieve more or fewer similar results. - Prompt Tuning: Customize the system message or agent instructions in the RAG node. - Workflow Extensions: Add notifications, error logging, Slack/Telegram alerts, or data exports.
Download the workflow JSON file after purchase.
Open n8n โ click the menu โ Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
Discover business leads with Gemini, Brave Search and web scraping
Analyze Landing Page with OpenAI and Get Optimization Tips
Prevent duplicate webhook executions with AARI idempotency gate
Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT
Build a knowledge base chatbot with Jotform, RAG Supabase, Together AI & Gemini
Gmail smart auto-responder with GPT-4o and Google Drive context memory
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.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.