🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Gmail + OpenAI: approved drafts for faster replies

Lisa Granqvist Partner Workflow Automation Expert

Your inbox isn’t just “busy.” It’s chaotic. You read the same long email twice, rewrite the same reply three times, then still worry you missed the real question.

Support leads feel it first, because response time is a scoreboard. But client-facing account managers and founders get dragged in too. This Gmail OpenAI drafts automation gets you a ready-to-send reply you can approve, so you move fast without handing control to a bot.

Below, you’ll see how the workflow turns new emails into short summaries, produces an on-brand draft, and routes it through Gmail approval before anything goes out.

How This Automation Works

See how this solves the problem:

n8n Workflow Template: Gmail + OpenAI: approved drafts for faster replies

The Challenge: Replying Fast Without Saying Something Dumb

Most “email productivity” advice assumes your job is just writing emails. It’s not. You’re switching context, interpreting what the sender actually needs, hunting for details, and trying to respond like a competent human while your inbox keeps refilling. The worst part is the mental load: you can’t batch it cleanly, you can’t fully focus, and you keep second-guessing tone, promises, and next steps. One rushed reply can create a whole extra thread, a small fire, or an awkward customer call.

It adds up fast. Here’s where it breaks down in real teams.

  • Important emails get reread multiple times because there’s no quick, reliable summary to work from.
  • Drafting replies takes longer than it should, especially when you’re trying to keep them short, clear, and professional.
  • People delay responses because they want approval, which means the customer waits even when the content is basically obvious.
  • Manual copy-paste between Gmail, notes, and CRM trackers introduces small mistakes that look bigger than they are.

The Fix: AI Drafts You Approve in Gmail

This workflow watches an inbox for new messages, converts messy HTML emails into clean text, and then asks an AI summarization chain to condense the email into something you can process in seconds. Using that summary (not the raw wall of text), an AI agent writes a professional reply based on your guidelines, including a hard limit like “keep it under 100 words” and proper HTML formatting for sending. Instead of firing off an automatic response, it creates a draft and routes it through a Gmail approval step. If you approve, n8n sends the email back to the original sender; if not, it’s held for edits or manual handling. Fast, but not reckless.

The workflow starts with an IMAP email trigger. From there, it summarizes and drafts using OpenAI-style chat and agent nodes (plus your prompt rules). Finally, Gmail becomes the checkpoint where a human decides what actually goes out.

What Changes: Before vs. After

Real-World Impact

Say you handle 20 inbound emails a day that need thoughtful replies. Manually, it’s easy to spend about 10 minutes per email between rereading, summarizing in your head, drafting, and sanity-checking tone, which is roughly 3 hours of focused time. With this workflow, you skim a short AI summary, review a ready-to-send draft, and approve or tweak it in Gmail, which is often closer to 3 minutes each. That’s about 2 hours back most days, without sacrificing quality.

Requirements

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • IMAP email inbox access for detecting new incoming emails.
  • Gmail account to queue drafts for approval.
  • OpenAI API key (get it from your OpenAI platform dashboard).

Skill level: Intermediate. You’ll be connecting credentials and adjusting prompts/fields, but you won’t be writing code.

Need help implementing this? Talk to an automation expert (free 15-minute consultation).

The Workflow Flow

A new email hits your inbox. The IMAP trigger monitors a specific mailbox or folder, then pulls in the message content as soon as it arrives.

The email is cleaned up for AI. HTML gets converted to readable text so the summarizer doesn’t trip over signatures, formatting, or weird spacing.

AI summarizes, then drafts a reply. A summarization chain creates a concise brief, and an AI agent uses your rules (like “professional tone” and “under 100 words”) to write the response content.

Gmail becomes the approval checkpoint. The draft is sent to Gmail for review, and an approval gate decides what happens next: send the reply via email, or loop back for edits and manual handling.

You can easily modify the approval rules to route certain senders or keywords to different reviewers based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the IMAP Trigger

Set up the incoming email trigger so the workflow starts when new messages arrive in your inbox.

  1. Add and open IMAP Inbox Trigger.
  2. Credential Required: Connect your imap credentials.
  3. Keep default Options unless you need custom IMAP filters.

Step 2: Convert and Summarize the Incoming Email

Transform the email HTML to Markdown and generate a concise summary that will guide the AI response.

  1. Open HTML to Markdown and set HTML to ={{ $json.textHtml }}.
  2. Open Summarize Email Content and set Operation Mode to nodeInputBinary.
  3. In Summarize Email Content options, set Binary Data Key to ={{ $json.data }}.
  4. Set the summarization prompts to:
    Prompt =Write a concise summary of the following in max 100 words :  "{{ $json.data }}" Do not enter the total number of words used.
    Combine Map Prompt =Write a concise summary of the following in max 100 words: "{{ $json.data }}" Do not enter the total number of words used.
  5. Open DeepSeek Chat Model and set Model to deepseek/deepseek-r1:free.
  6. Credential Required: Connect your openAiApi credentials in DeepSeek Chat Model.

Make sure the email trigger includes HTML content; otherwise HTML to Markdown won’t have valid input.

Step 3: Configure Knowledge Retrieval and Draft Generation

Provide the AI with company knowledge and generate a draft reply based on the summarized email.

  1. Open Qdrant Knowledge Tool and set Mode to retrieve-as-tool.
  2. Set Tool Name to company_knowladge_base and Tool Description to Extracts information regarding the request made.
  3. Set Qdrant Collection to =COLLECTION and Include Document Metadata to false.
  4. Credential Required: Connect your qdrantApi credentials in Qdrant Knowledge Tool.
  5. Open OpenAI Embeddings and connect openAiApi credentials; this embedding model feeds Qdrant Knowledge Tool.
  6. Open Assign Email Draft and add assignment email with value ={{ $json.response.text }}.
  7. Open Compose Email Reply and set Text to =Write the text to reply to the following email: {{ $('Summarize Email Content').item.json.response.text }}.
  8. In Compose Email Reply, set Prompt Type to define and enable Has Output Parser.
  9. Set the System Message to You are an expert at answering emails. You need to answer them professionally based on the information you have. This is a business email. Be concise and never exceed 100 words. Only the body of the email, not create the subject. It must be in HTML format and you can insert (if you think it is appropriate) only HTML characters such as <br>, <b>, <i>, <p> where necessary.
  10. Open OpenAI Chat Model and set Model to gpt-4o-mini.
  11. Credential Required: Connect your openAiApi credentials in OpenAI Chat Model.

⚠️ Common Pitfall: If the Qdrant collection name is incorrect, Qdrant Knowledge Tool will return no results and the AI reply may be generic.

Step 4: Configure Approval Workflow Routing

Send the AI draft for approval and route approved emails to delivery.

  1. Open Send Draft for Review and set Send To to [YOUR_EMAIL].
  2. Set Operation to sendAndWait and Approval Type to double.
  3. Set Subject to =[Approval Required] {{ $('IMAP Inbox Trigger').item.json.subject }}.
  4. Set Message to =<h3>MESSAGE</h3> {{ $('IMAP Inbox Trigger').item.json.textHtml }} <h3>AI RESPONSE</h3> {{ $json.output }}.
  5. Credential Required: Connect your gmailOAuth2 credentials in Send Draft for Review.
  6. Open Approval Gate and confirm the condition uses ={{ $json.data.approved }} with a boolean true operator.
  7. Verify routing: Send Draft for ReviewApproval GateDispatch Reply Email when approved.

Step 5: Configure the Reply Delivery

Send the approved response back to the original sender using SMTP.

  1. Open Dispatch Reply Email and set HTML to ={{ $('Compose Email Reply').item.json.output }}.
  2. Set Subject to =Re: {{ $('IMAP Inbox Trigger').item.json.subject }}.
  3. Set To Email to ={{ $('IMAP Inbox Trigger').item.json.from }} and From Email to ={{ $('IMAP Inbox Trigger').item.json.to }}.
  4. Credential Required: Connect your smtp credentials in Dispatch Reply Email.

Use a test mailbox for both IMAP and SMTP during validation to avoid sending real emails while tuning prompts.

Step 6: Test and Activate Your Workflow

Validate the end-to-end approval flow before turning it on for production.

  1. Click Execute Workflow and send a test email into the monitored inbox.
  2. Confirm Send Draft for Review arrives with the original HTML and AI response.
  3. Approve the draft and verify Approval Gate routes to Dispatch Reply Email.
  4. Check that the recipient receives the reply with subject Re: … and HTML body.
  5. When satisfied, toggle the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Watch Out For

  • Gmail credentials can expire or need specific permissions. If things break, check the connected Google account status in n8n Credentials first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Common Questions

How quickly can I implement this Gmail OpenAI drafts automation?

About 30 minutes if your email and OpenAI credentials are ready.

Can non-technical teams implement this drafts automation?

Yes, but you’ll want someone comfortable connecting accounts in n8n. The only “fiddly” part is mapping the right email fields into the summary and draft prompts.

Is n8n free to use for this Gmail OpenAI drafts workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs, which are usually a few cents per email depending on length.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

How do I adapt this Gmail OpenAI drafts solution to my specific challenges?

Start with the prompts in “Summarize Email Content” and “Compose Email Reply,” because that’s where your tone, policies, and do/don’t rules live. Many teams add a rule like “ask one clarifying question if the request is ambiguous,” or they insert a short signature block and approved links. You can also change the “Approval Gate” logic so certain senders (VIPs, legal, billing) always require approval while low-risk emails skip it.

Why is my Gmail connection failing in this workflow?

Usually it’s expired OAuth access or the wrong Google account connected in n8n. Reconnect the Gmail credential, then confirm the Gmail node is pointing at the same inbox you’re reviewing in. If it works sometimes and fails in bursts, you may be hitting Google rate limits when multiple emails arrive at once.

What’s the capacity of this Gmail OpenAI drafts solution?

On self-hosted n8n, capacity mostly depends on your server and how many emails arrive at once. On n8n Cloud, Starter handles a typical small team’s volume, and you can scale up plans as approvals and drafts increase. In practice, this workflow is comfortable handling dozens of emails a day for most teams, and more if you tune concurrency and keep prompts efficient.

Is this Gmail OpenAI drafts automation better than using Zapier or Make?

Often, yes, because this kind of draft + approval flow needs branching logic and tighter control over the AI steps. n8n also gives you the option to self-host, which can matter when email volume climbs and execution costs start to sting. Zapier and Make can still work if your flow is simple, but approvals plus AI formatting gets clunky quickly. If you’re on the fence, map your “must-have” requirements first: approval location, audit trail, and how custom the prompts need to be. Talk to an automation expert if you’re not sure which fits.

This is the sweet spot: faster replies, fewer slip ups, and a human approval gate that keeps you in control. Set it up once, then let your inbox feel smaller for a change.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal