AI-powered email automation for business: Summarize & respond with RAG
Needs changesWhat this workflow does
This AI workflow has 23 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Qdrant Vector Store, Embeddings OpenAI and Google Drive. It also calls qdranturl over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Create collection (HTTP Request): calls qdranturl (POST)
- Refresh collection (HTTP Request): calls an HTTP API (POST)
- Markdown: converts between Markdown and HTML
- Get folder (Google Drive): work with file folder
- Email Summarization Chain (Summarization Chain): summarizes text with AI, with model: DeepSeek R
- Download Files (Google Drive): download
- Email Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI 4-o-mini
- Qdrant Vector Store: stores documents in the Qdrant vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Write email (AI Agent): runs an AI agent, with model: OpenAI; 1 tool (Qdrant Vector Store)
- Review email (Basic LLM Chain): sends a prompt to an LLM, with model: DeepSeek
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: qdranturl
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Write email (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Write email (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (16)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Markdown
n8n-nodes-base.markdown - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Send Email
n8n-nodes-base.emailSend - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization - AI Agent
@n8n/n8n-nodes-langchain.agent - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Token Splitter
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - No Operation, do nothing
n8n-nodes-base.noOp
From the author
This workflow is ideal for businesses looking to automate their email responses, especially for handling inquiries about company information. It leverages AI to ensure accurate and professional communication. How It Works 1. Email Trigger: - The workflow…