⚡ Real-time email RAG assistant with Gmail, OpenAI GPT, and PGVector

4,346 views · ⚡ Personal Productivity

Description

🧠 Email real time RAG Assistant with Gmail, OpenAI & PGVector

📌 Who’s it for

This workflow is ideal for:

It enables fast and intelligent search through your email inbox using natural language queries.


⚙️ How it works / What it does


🚀 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


🛠️ How to customize the workflow

🔗 Nodes Used

Gmail, Gmail Trigger, AI Agent, Embeddings OpenAI, OpenAI Chat Model, Recursive Character Text Splitter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup