Real-time Email RAG Assistant with Gmail, OpenAI GPT, and PGVector
    100%
    Automation
    0(0 reviews)
    430 downloads

    Real-time Email RAG Assistant with Gmail, OpenAI GPT, and PGVector

    NM

    Curated by n8n Markets team

    Last updated: March 8, 2026

    # 🧠 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.

    What's Included

    • Complete n8n workflow template with 0 nodes. Ready to import and customize.

    Requirements

    n8n instance (self-hosted or cloud). credentials.

    How to Use

    1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v1.0++
    • Setup time: 15-30 min

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Mar 2026
    v1.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Dependencies & Requirements

    Gmail
    Communication
    OpenAI
    AI

    ⚠️ 2 services require credentials. Make sure you have accounts set up before importing.

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought