WorkflowGmailOpen

AI email replies with Qdrant RAG and approval

This n8n workflow handles incoming email with AI: it summarizes each message, drafts a reply from your own documents and asks for approval or suggestions before sending. It suits businesses that get many routine questions by email and keep their reference documents in Google Drive.

What it does

Step one creates a Qdrant collection, step two vectorizes documents from Google Drive, and the main flow reads mail by IMAP, converts it to markdown, summarizes it, writes a response with OpenAI and the vector store, then sends it after review.

How to use it

Change QDRANTURL and COLLECTION in the first two steps, then connect IMAP, SMTP, Gmail, Google Drive and OpenAI.

Requirements and limits

Works with Gmail and Outlook through IMAP, according to the notes.

More in Gmail and the n8n workflow library.

Full text

Front matter
name: Effortless Email Management with AI
description: Triggered manually or by an app event. Connects Email, Gmail, Google Drive, HTTP request, Markdown. # STEP 1 ## Create Qdrant Collection Change: - QDRANTURL - COLLECTION # STEP 2 ## Documents vectorization with Qdrant and Google Drive Change: - QDRANTURL - COLLECTION # STEP 3 - MAIN FLOW ## How it works This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or suggestions before sending replies. You can quickly integrate Gmail and Outlook via
category: Automation
kind: Workflow
software: Email|Gmail|Google Drive|HTTP request|Markdown

Effortless Email Management with AI

Triggered manually or by an app event. Connects Email, Gmail, Google Drive, HTTP request, Markdown. # STEP 1

Create Qdrant Collection

Change:

  • QDRANTURL
  • COLLECTION # STEP 2

Documents vectorization with Qdrant and Google Drive

Change:

  • QDRANTURL
  • COLLECTION # STEP 3 - MAIN FLOW

How it works

This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or suggestions before sending replies.

You can quickly integrate Gmail and Outlook via

Steps

  • Email Trigger (IMAP) (emailReadImap)
  • Markdown (markdown)
  • Send Email (emailSend)
  • Qdrant Vector Store (noOp)
  • Embeddings OpenAI (noOp)
  • Email Summarization Chain (noOp)
  • Write email (noOp)
  • OpenAI (noOp)
  • Gmail (gmail)
  • Text Classifier (noOp)
  • Edit Fields (set)
  • When clicking ‘Test workflow’ (manualTrigger)
  • Create collection (httpRequest)
  • Refresh collection (httpRequest)
  • Get folder (googleDrive)
  • Download Files (googleDrive)
  • Default Data Loader (noOp)
  • Token Splitter (noOp)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Qdrant Vector Store1 (noOp)
  • Embeddings OpenAI1 (noOp)
  • Sticky Note (stickyNote)
  • DeepSeek Chat Model (noOp)
  • Sticky Note2 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note6 (stickyNote)
  • Sticky Note7 (stickyNote)
  • Email Reviewer (noOp)
  • Sticky Note8 (stickyNote)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Emailreadimap/1427_Emailreadimap_Manual_Send_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.