WorkflowGoogle DriveOpen

DeepSeek R1 n8n email auto-responder workflow

This n8n workflow is an email auto-responder that summarizes incoming mail with DeepSeek R1 and replies to general questions about your company. It is for small companies that want routine information requests answered automatically, with each reply drawn from their own stored documents.

What it does

It creates a Qdrant collection, vectorizes documents from Google Drive, and then reads mail over IMAP. Each email becomes markdown, is summarized, and passes through a classifier so only general company questions continue to a reply written from the vector store and sent by SMTP.

How to use it

Set QDRANTURL and COLLECTION in the setup steps, then add IMAP, SMTP, Google Drive, OpenAI embeddings and DeepSeek credentials.

Requirements and limits

The author notes any model can replace DeepSeek R1 for the summary.

More in Google Drive and the n8n workflow library.

Full text

Front matter
name: Email AI Auto-responder. Summerize and send email
description: Triggered manually or by an app event. Connects Email, 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 - Transform the email into Markdown format for optimal reading by the LLM model - Email Summarization through DeepSeek R1 (any model can be used) - I classify the email in such a way as to continue only with emails regarding general information about the company. In this way I can respond indepen
category: Automation
kind: Workflow
software: Email|Google Drive|HTTP request|Markdown

Email AI Auto-responder. Summerize and send email

Triggered manually or by an app event. Connects Email, 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
  • Transform the email into Markdown format for optimal reading by the LLM model
  • Email Summarization through DeepSeek R1 (any model can be used)
  • I classify the email in such a way as to continue only with emails regarding general information about the company. In this way I can respond indepen

Steps

  • Email Trigger (IMAP) (emailReadImap)
  • Markdown (markdown)
  • DeepSeek R1 (noOp)
  • Send Email (emailSend)
  • Qdrant Vector Store (noOp)
  • Embeddings OpenAI (noOp)
  • Email Classifier (noOp)
  • Email Summarization Chain (noOp)
  • Write email (noOp)
  • Review email (noOp)
  • 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)
  • Qdrant Vector Store1 (noOp)
  • Embeddings OpenAI1 (noOp)
  • Sticky Note5 (stickyNote)
  • Do nothing (noOp)
  • OpenAI (noOp)
  • DeepSeek (noOp)
  • Sticky Note (stickyNote)
  • OpenAI 4-o-mini (noOp)

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/1277_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.