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
Automate email approval with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

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.

Automate email approval with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.