AI Email Processing Workflow with Approval via n8n Automation

This n8n workflow automates handling incoming emails by summarizing content, generating AI-driven responses, and sending replies only after explicit approval. It saves time and ensures professional, context-aware email replies using AI and vector databases.
emailReadImap
lmChatOpenAi
gmail
+7
Workflow Identifier: 1311
NODES in Use: emailReadImap, markdown, lmChatOpenAi, emailSend, vectorStoreQdrant, embeddingsOpenAi, chainSummarization, set, if, gmail

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow reads new emails from a company inbox using IMAP.

It turns the email content into markdown to make the text easier to handle.

Then it uses AI to write a short summary of the email.

The summary is used to find related information from a company knowledge database called Qdrant.

Based on the summary and knowledge retrieved, AI creates a draft reply email in HTML.

The draft is sent to a Gmail account for manual approval, where the manager can accept or reject it.

After approval, the final reply is sent automatically to the original sender’s email address.

This helps save time and keeps replies clear and approved.


Who should use this workflow

This workflow is for customer service managers or teams who get many email questions every day.

They need to reply quickly but also want answers checked before sending.

If users want to reduce manual work and avoid reply mistakes, this workflow fits.


Tools and services used


How the workflow works (Input → Process → Output)

Input

New emails arrive in the corporate inbox configured for IMAP access.

Processing steps

  • Convert email HTML body to markdown for easier AI reading.
  • Summarize the email into 100 words or less using an AI summarization chain.
  • Generate vector embeddings from summary for semantic search.
  • Query Qdrant knowledge base collection using embeddings to find related info.
  • Use AI to write an HTML email reply draft combining summary and retrieved knowledge.
  • Send draft email to a specified Gmail account with Yes/No approval buttons.
  • Wait for manual approval decision from the Gmail response.
  • If approved, send the final reply email to the original sender via SMTP.

Output

Professional, concise reply email sent to the original customer only after approval.


Beginner step-by-step: How to use this workflow in n8n

1. Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor.
  3. Click ‘Import from File’ and select the downloaded workflow file.

2. Configure credentials

  1. Add your corporate IMAP email credentials in the Email Trigger (IMAP) node.
  2. Enter your OpenAI API key in the nodes that require it (embedding and AI tasks).
  3. Add Qdrant API key and configure the knowledge base collection ID.
  4. Set the Gmail account credentials in the Send Draft node for draft approvals.
  5. Provide SMTP details for the Send Email node to send final replies.
  6. Update any email addresses, collection names, or IDs needed for your company.

3. Test and activate

  1. Trigger a test email to the corporate inbox.
  2. Watch the workflow run and verify each step’s output.
  3. Check that the draft email reaches the Gmail approval account with buttons.
  4. Approve or reject the draft from Gmail and see if the final email sends when approved.
  5. After testing, toggle the workflow to ‘Active’ to run continuously.

If using self-host n8n, refer to self-host n8n for setup options.


Common input problems and failures

  • No emails trigger: Check that IMAP credentials and server settings are correct.
  • AI fails to summarize: Confirm OpenAI API key is valid and input data matches expected fields.
  • No knowledge returned from Qdrant: Make sure collection exists and embeddings are properly generated.
  • Approval buttons missing in Gmail: The approval feature works only using the Gmail node with OAuth2.
  • Email not sent: Verify SMTP details and that the final recipient email is correct.

Customization options

  • Change the AI model used for summarizing and writing replies by editing model name in OpenAI nodes.
  • Modify summary length in the AI chain prompt for shorter or longer summaries.
  • Add more documents to Qdrant to cover more company info and improve reply accuracy.
  • Switch the draft approval step to a different Gmail or integrate other approval methods such as Slack.

Summary of workflow result

→ Emails are read and understood quickly without manual reading.

→ Replies are drafted professionally with AI and company data.

→ Approval step stops errors and unwanted replies before sending.

→ Saves hours of manual work daily.

→ Maintains consistent, clear, and approved communication.

Frequently Asked Questions

The Email Trigger (IMAP) node watches the corporate inbox and starts the workflow when a new email arrives.
Yes, but OpenAI nodes are configured here. Using other AI services requires changes to nodes and prompts.
Gmail’s OAuth2 node supports sending draft emails with Yes/No approval buttons, which other email services do not.
Add or update documents in the Qdrant vector database collection used by the workflow for better response accuracy.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free