# AI Email Replies Without Auto-Sending: Gmail Drafts

> An AI email responder for Gmail that saves every reply as a draft in the same thread, never sends it. Built in n8n with your real prices and rules.

Source: https://learn.ynteractive.com/content/blog/ai-email-replies-gmail-drafts · Updated 2026-10-01 · Free from Stepthrough (https://learn.ynteractive.com)

By [Robert Breen](https://learn.ynteractive.com/content/about) · Published October 1, 2026 · Updated October 1, 2026 · 7 min read

n8n · Email · Gmail

You can have AI write email replies without ever letting it send one: build an n8n agent that reads each new Gmail message and saves its reply as a [Gmail draft](https://learn.ynteractive.com/content/glossary/gmail-draft) in the same thread. This is for small businesses that answer the same customer questions all day. The free [AI Email Responder](https://learn.ynteractive.com/content/ai-email-responder-gmail-drafts-n8n) lesson walks you through the whole build in a practice copy of n8n and Gmail.

Nobody wants a robot sending a made-up price to a customer at 11 p.m., so this setup only writes drafts. In the lesson you're the office at a made-up company, Greenline Pest Control.

## What does the n8n email responder do?

The n8n email responder checks Gmail every minute, writes a reply to each new email using your real facts, and saves that reply as a draft under the customer's message. A person reads the draft and clicks Send.

In the lesson, a customer named Dana writes in: ants in the kitchen, does Greenline cover Maple Grove, and roughly what does it cost? The workflow that answers her has five parts:

- **Gmail Trigger:** checks the inbox every minute for new messages.
- **AI Agent:** reads each email and decides what to write.
- **OpenAI Chat Model:** the model the [AI Agent](https://learn.ynteractive.com/content/glossary/ai-agent) thinks with.
- **Gmail Tool**, set to **Draft:** saves the reply in the same thread.
- **Simple Memory:** lets the agent remember what it already told a customer who writes back.

## How do I make n8n watch my Gmail inbox?

Add a [Gmail Trigger](https://learn.ynteractive.com/content/glossary/gmail-trigger) set to **On message received**, connect your Google account, and leave it on **Every Minute**.

1. Click **Create workflow**, then **Add first step**, search for Gmail and choose **On message received** under Triggers.
2. Open **Credential**, click **Create new credential**, then **Sign in with Google** and pick the inbox customers write to (office@greenlinepest.com in the lesson).
3. Leave **Every Minute** and **Message Received** as they are and click **Fetch Test Event**.

The Gmail Trigger's test event shows Dana's email as data: From, Subject, a snippet of the message and a threadId. Those fields feed every later step.

## How do I get the AI Agent to read an email instead of a chat?

Open the AI Agent's **Source for Prompt** and choose **Define below**, then paste a prompt that pulls in the email's fields. By default the n8n AI Agent expects a chat message, and an email is not a chat.

```text
Write a reply to this email, then save it as a draft in the same thread.
<email>
From: {{ $json.From }}
Subject: {{ $json.Subject }}
Message: {{ $json.snippet }}
</email>
```

The double curly brackets are n8n expressions that fill in fields from the email. Under **Chat Model**, add an **OpenAI Chat Model** and pick your OpenAI credential. The lesson reuses the key from the [AI Social Media Idea Agent](https://learn.ynteractive.com/content/n8n-ai-agent-tutorial-google-sheets) module and keeps the default model, since writing a short email is an easy job.

## How do I stop the AI from sending email on its own?

Set the Gmail Tool's **Resource** to **Draft**, so the operation becomes **Create** instead of Send. With Draft selected, the worst the agent can do is write a draft you never send.

1. Under **Tool**, add a **Gmail Tool** on the same Gmail account.
2. Open **Resource** (it starts on Message, with the operation Send) and choose **Draft**.
3. In **Subject**, paste `Re: {{ $json.Subject }}` so Gmail keeps the reply in the same conversation.
4. Next to **Message**, click the ✦ button so the model writes the body. Leave the email type on text.
5. Click **Add option**, choose **Thread ID** and paste `{{ $json.threadId }}`. Without the Thread ID option, the draft lands as a brand new email instead of a reply.
6. Click **Add option** again, choose **To Email** and paste `{{ $json.From }}` so the draft is addressed to the sender.

Then, under **Memory**, add **Simple Memory** and leave the defaults for now.

## What goes in the system message?

The system message has four parts: who the agent is, what it knows, the rules, and how to write. Without business facts, the agent guesses prices. Open the AI Agent, click **Add Option** and choose **System Message**.

- **Who you are:** it writes email replies for Greenline Pest Control, a family-run pest control company.
- **What you know:** Greenline services Maple Grove, Cedar Falls and Brookside; general pest treatment is $149 for the first visit and $89 for a follow-up; booking is Monday to Saturday, 8am to 5pm; to book, the customer replies with an address and two times that work.
- **Rules:** "You cannot send email. You can only create drafts." If it doesn't know something, it says someone from the team will follow up, and it never makes up prices, dates or services.
- **How to write:** friendly, plain and short, plain text, signed "The Greenline team".

To use it for your business, swap in your own towns, prices and hours and keep the rules section as it is.

## Try it free, step by step

**AI Email Responder: Draft Gmail Replies Automatically with n8n**. Build an n8n agent that watches your Gmail, reads each new customer email, and writes a reply as a draft in the same thread, ready for you to check and send. You do every step yourself in a practice copy of n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

[Start the free lesson](https://learn.ynteractive.com/modules/email-responder)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/ai-email-responder-gmail-drafts-n8n)

## Why does the first test fail with "No session ID found"?

The first test fails because Simple Memory looks for a chat session ID, and an email has none. Click **Execute workflow** and the Simple Memory node turns red with **No session ID found**. The fix is to open Simple Memory, set **Session ID** to **Define below** and use `{{ $json.threadId }}` as the key, so memory keeps one conversation per email thread. That beats deleting the memory node, the quick fix you'll often see. More in [Fix "No session ID found" in n8n Simple Memory](https://learn.ynteractive.com/content/blog/n8n-no-session-id-found).

Run **Execute workflow** again and everything goes green. In Gmail, the draft sits under Dana's email: yes to Maple Grove, $149 for the first visit, and a request for her address and two times. The draft has not been sent.

## How do I make it run on its own?

Click **Publish**, keep the default version name, and click **Publish** again. A published n8n workflow checks the inbox every minute without anyone pressing Execute workflow, and every new email gets a draft waiting for you.

Keep the "What you know" list current, and read each draft before you send it. For what to look for, see [Check AI Email Drafts for Promises Before You Send](https://learn.ynteractive.com/content/blog/check-ai-drafts-for-promises).

## What does it cost to run?

The lesson is free and connects no real accounts, but the real build uses paid services. The OpenAI API is pay-as-you-go and billed separately from any ChatGPT plan, and you add credit at platform.openai.com before the key works. n8n Cloud is a paid service after its free trial, and n8n can also be self-hosted. Gmail works with a regular Google account.

## Is there a simpler option without automation?

Yes: copy the thread into ChatGPT, get a draft, and paste the reply into Gmail yourself. The [Reply Faster](https://learn.ynteractive.com/content/chatgpt-reply-to-customer-emails) lesson teaches that routine, including a numbered facts list and a check of every promise in the draft. It works with any ChatGPT plan and nothing runs in the background.

Both lessons are part of the [Email on Autopilot](https://learn.ynteractive.com/content/path/email-on-autopilot) path, and there are more builds in the [n8n tutorials](https://learn.ynteractive.com/content/tool/n8n).

## Key takeaways

- An n8n agent can write email replies as Gmail drafts, so no AI-written email goes out until a person clicks Send.
- Setting the Gmail Tool's Resource to Draft, with the Thread ID option set to the trigger's threadId, puts each reply in the customer's thread.
- A four-part system message (who it is, what it knows, rules, how to write) keeps the agent from inventing prices, dates or services.
- The "No session ID found" error in Simple Memory is fixed by using the Gmail threadId as the session key.
- The OpenAI API is billed separately from ChatGPT, and n8n Cloud is paid after its free trial unless you self-host n8n.

## Frequently asked questions

**Will the AI send emails without my approval?**

No. The Gmail Tool is set to Draft, so the agent can only create drafts, and the system message also says it cannot send email.

**How does the draft end up in the same Gmail thread?**

The Gmail Tool's Thread ID option is set to the threadId from the Gmail Trigger, and the subject is "Re:" plus the original subject.

**How often does it check for new email?**

Every minute. The Gmail Trigger is left on Every Minute, and the workflow runs on its own once it is published.

**What if a customer asks something the agent doesn't know?**

The system message tells the agent to say someone from the team will follow up and never to make up prices, dates or services.

## Free lessons in this post

- [AI Email Responder: Draft Gmail Replies Automatically with n8n](https://learn.ynteractive.com/content/ai-email-responder-gmail-drafts-n8n): Build an n8n agent that watches your Gmail, reads each new customer email, and writes a reply as a draft in the same thread, ready for you to check and send.
- [Reply Faster: Turn a Messy Customer Email Thread into a Clear, Friendly Reply](https://learn.ynteractive.com/content/chatgpt-reply-to-customer-emails): Turn a messy customer email thread into a clear, friendly reply: give ChatGPT the thread and your facts, check every promise, fix the tone, and send it from Gmail.

## Related terms

Plain-English definitions, each with an example from a free lesson.

[Gmail draft](https://learn.ynteractive.com/content/glossary/gmail-draft) · [AI agent](https://learn.ynteractive.com/content/glossary/ai-agent) · [Gmail Trigger](https://learn.ynteractive.com/content/glossary/gmail-trigger) · [Action](https://learn.ynteractive.com/content/glossary/action) · [Agent memory](https://learn.ynteractive.com/content/glossary/agent-memory) · [AI Agent node](https://learn.ynteractive.com/content/glossary/ai-agent-node) · [Artificial intelligence (AI)](https://learn.ynteractive.com/content/glossary/artificial-intelligence) · [Delimiters](https://learn.ynteractive.com/content/glossary/delimiters)

[The full AI glossary](https://learn.ynteractive.com/content/glossary)

## Related prompts

- [AI agent system message prompt](https://learn.ynteractive.com/content/prompts/agent-system-message-draft-prompt): Draft the system message for an n8n AI Agent: who it is, what it knows, its rules and how it writes, including a rule never to…
- [Billing question reply prompt](https://learn.ynteractive.com/content/prompts/billing-question-reply-prompt): A ChatGPT prompt for "why was I charged this?" emails: the charge, the correct amount, the reason, the fix as simple math, and…
- [Check reply promises prompt](https://learn.ynteractive.com/content/prompts/check-reply-promises-prompt): A ChatGPT prompt that checks a draft before you send it: a table of every promise, the fact behind each, and safer wording for…
- [Daily priorities plan prompt](https://learn.ynteractive.com/content/prompts/daily-priorities-plan-prompt): Paste your to-do list and fixed times and get a realistic plan for today: top three, time blocks, a buffer, and what to move to…

[All free prompt templates](https://learn.ynteractive.com/content/prompts)

## Visual guides

The same ideas as quick visual guides: swipe through the slides, or read each one as text.

- [5 Steps to an AI Email Responder That Only Writes Drafts](https://learn.ynteractive.com/content/visual/5-steps-ai-email-responder-drafts): A visual guide: an n8n agent reads each new Gmail message and saves a reply as a draft in the same thread. You read it and click Send.
- [5 Steps to Turn a Messy Email Thread into a Clear Reply](https://learn.ynteractive.com/content/visual/5-steps-reply-to-a-messy-customer-thread): A visual guide: paste a customer thread with numbered facts, check every promise in ChatGPT's draft, fix it and send it from Gmail.
- [Mistake to Avoid: A Soft Yes When You Mean No](https://learn.ynteractive.com/content/visual/mistake-a-soft-yes-in-a-no): A visual tip for customer emails: AI drafts blur a no into "we'll do our best." Say no early, give one reason and a real alternative.

[All visual guides](https://learn.ynteractive.com/content/visual)

## Keep reading

- [How to Stop ChatGPT from Making Things Up: 5 Guardrails](https://learn.ynteractive.com/content/blog/stop-chatgpt-making-things-up): Stop ChatGPT from making things up with five guardrails: a facts list, a Not stated rule, never-invent rules, a closed category list and a final check.
- [Email on Autopilot: From ChatGPT Replies to n8n Drafts](https://learn.ynteractive.com/content/blog/email-on-autopilot): Automate email replies with AI in two steps: copy-paste replies in ChatGPT with a promise check, then an n8n agent that drafts replies in Gmail.
- [AI Training for Employees: A Free Plan for Small Teams](https://learn.ynteractive.com/content/blog/ai-training-for-employees): AI training for employees on a small-business budget: one rule set, three shared ChatGPT lessons, then role-based picks, all free in practice copies.

[All blog posts](https://learn.ynteractive.com/content/blog) · [All free tutorials](https://learn.ynteractive.com/content)
