Email AI Auto-responder. Summerize and send email n8n Workflow Template

n8n workflow template · 22 nodes · Email (IMAP)

Email AI Auto-responder. Summerize and send email is a free n8n workflow template that starts when a new email arrives over IMAP and works with Email (IMAP), OpenAI, Email (SMTP), Qdrant and Google Drive. It has 22 nodes, 14 of them AI nodes (OpenAI Chat Model, Qdrant Vector Store, OpenAI Embeddings and Text Classifier). To run it, you add your own credentials for Google Drive OAuth2, HTTP Header Auth, IMAP, OpenAI API and Qdrant API and others.

At a glance

Trigger
Email Trigger (IMAP) (Email Trigger (IMAP))
Nodes
22
Apps
Email (IMAP), OpenAI, Email (SMTP), Qdrant and Google Drive
AI nodes
14
Credentials
6 types
Category
RAG, documents and vector search

Apps and integrations

  • Email (IMAP)
  • OpenAI
  • Email (SMTP)
  • Qdrant
  • Google Drive

Node types used

  • Email Trigger (IMAP)
  • Markdown
  • OpenAI Chat Model
  • Send Email
  • Qdrant Vector Store
  • OpenAI Embeddings
  • Text Classifier
  • Summarization Chain
  • AI Agent
  • Basic LLM Chain
  • Manual Trigger
  • HTTP Request
  • Google Drive
  • Default Data Loader
  • Token Splitter

How it works

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

STEP 2

Documents vectorization with Qdrant and Google Drive

STEP 1

Create Qdrant Collection

Setup notes

The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.

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 independently through the information obtained from the vector database
  • I create a chain where I entrust the review of the email to a high-performance model designed for this purpose
  • I send the response email

Nodes in this workflow

The 22 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:

  1. Email Trigger (IMAP) (Email Trigger (IMAP))
  2. Markdown (Markdown)
  3. DeepSeek R1 (OpenAI Chat Model)
  4. Send Email (Send Email)
  5. Qdrant Vector Store (Qdrant Vector Store)
  6. Embeddings OpenAI (OpenAI Embeddings)
  7. Email Classifier (Text Classifier)
  8. Email Summarization Chain (Summarization Chain)
  9. Write email (AI Agent)
  10. Review email (Basic LLM Chain)
  11. When clicking ‘Test workflow’ (Manual Trigger)
  12. Create collection (HTTP Request)
  13. Refresh collection (HTTP Request)
  14. Get folder (Google Drive)
  15. Download Files (Google Drive)
  16. Default Data Loader (Default Data Loader)
  17. Token Splitter (Token Splitter)
  18. Qdrant Vector Store1 (Qdrant Vector Store)
  19. Embeddings OpenAI1 (OpenAI Embeddings)
  20. OpenAI (OpenAI Chat Model)
  21. DeepSeek (OpenAI Chat Model)
  22. OpenAI 4-o-mini (OpenAI Chat Model)

Credentials you need

  • Google Drive OAuth2 – used by Download Files and Get folder
  • HTTP Header Auth – used by Create collection and Refresh collection
  • IMAP – used by Email Trigger (IMAP)
  • OpenAI API – used by DeepSeek, DeepSeek R1, Embeddings OpenAI and Embeddings OpenAI1 and others
  • Qdrant API – used by Qdrant Vector Store and Qdrant Vector Store1
  • SMTP – used by Send Email

Configure your own credentials after importing. Create each credential in n8n, then select it in the node.

How to import into n8n

  1. Download the JSON file with the button above.
  2. In n8n, open a new workflow, select the ... menu and choose Import from File. You can also paste the JSON straight into the editor canvas.
  3. Open each node that shows a warning and select or create its credential.
  4. Read the notes on the canvas, test the workflow with sample data, then activate it.

Do you need somewhere to run it? Read our guide to self-hosted n8n.

Need this customised?

We can adapt this workflow to your apps, data and process, then deploy and support it.

Contact Us