# AI email responder: draft Gmail replies automatically with n8n

> A free one-page cheat sheet: n8n watches Gmail, an AI agent reads each customer email and saves a reply as a draft in the same thread.

Source: https://ynteractive.com/content/cheat-sheets/ai-email-responder-n8n · Updated 2026-10-01 · Free from Stepthrough (https://ynteractive.com)

[Lesson cheat sheet](https://ynteractive.com/content/cheat-sheets#kind-lesson) · One page · US letter · [n8n](https://ynteractive.com/content/tool/n8n)

By [Robert Breen](https://ynteractive.com/content/about/robert-breen) · Published October 1, 2026 · From the free lesson [n8n AI Email Responder: Draft Gmail Replies Automatically](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n)

A free one-page cheat sheet: n8n watches Gmail, an AI agent reads each customer email and saves a reply as a draft in the same thread.

[Download the free PDF (81 KB)](https://ynteractive.com/content/cheat-sheets/ai-email-responder-n8n.pdf)Print this sheet

Free, no sign-up and no email needed. It prints on one letter-size page; the whole sheet is below.

*▶*StepthroughFree printable cheat sheet · ynteractive.com

AI email responder: draft Gmail replies automatically with n8n

Customers ask the same questions all day. This agent writes each reply as a Gmail draft under the customer's email, and you keep the final say.

## Trigger and agent

1. **Create workflow**, **Add first step**, search **gmail**. Under **Triggers**, pick **On message received**.
2. Connect the business inbox with **Sign in with Google**. Keep **Every Minute** and click **Fetch Test Event**.
3. Add **AI Agent**. Set **Source for Prompt** to **Define below** and paste the prompt below.
4. **Chat Model**: **OpenAI Chat Model** with your **OpenAI account** credential.

## The prompt

Copy

```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 {{ }} parts pull in each email's sender, subject and message.

## Gmail Tool: drafts only

**Resource**

Change Message to **Draft**. Operation switches to **Create**.

**Subject**

`Re: {{ $json.Subject }}`

**Message**

Click **✦** so the model writes it.

**Thread ID**

`{{ $json.threadId }}`, so the draft sits under the customer's email.

**To Email**

`{{ $json.From }}`, so you can just hit send.

## Facts, then the fix

- Add **Simple Memory**, then a **System Message** in four parts: who you are, what you know, rules, how to write.
- Rules: only create drafts. If it doesn't know, say someone from the team will follow up. Never make up prices, dates or services.
- **No session ID found** in Simple Memory? Set **Session ID** to **Define below** and paste `{{ $json.threadId }}`.
- All green? Read the draft in Gmail, then click **Publish**.

**Remember:** Set the Gmail Tool to Draft. Then the worst the agent can do is write a draft you never send.

Practice it free: [n8n AI Email Responder: Draft Gmail Replies Automatically](https://ynteractive.com/modules/email-responder) at ynteractive.com/modules/email-responder. This sheet: ynteractive.com/content/cheat-sheets/ai-email-responder-n8n. Greenline Pest Control is a made-up business from the lesson. By Robert Breen, October 1, 2026.

## Practice it in the free lesson

**n8n AI Email Responder: Draft Gmail Replies Automatically**. 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://ynteractive.com/modules/email-responder)

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

## Related terms

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

[Gmail Trigger](https://ynteractive.com/content/glossary/gmail-trigger) · [AI Agent node](https://ynteractive.com/content/glossary#ai-agent-node) · [Expression](https://ynteractive.com/content/glossary#expression) · [Gmail draft](https://ynteractive.com/content/glossary#gmail-draft) · [Agent memory](https://ynteractive.com/content/glossary#agent-memory) · [Session ID](https://ynteractive.com/content/glossary/session-id) · [Execution](https://ynteractive.com/content/glossary#execution) · [System prompt (system message)](https://ynteractive.com/content/glossary#system-prompt)

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

## Related prompts

- [FAQ from customer emails prompt](https://ynteractive.com/content/chatgpt-reply-to-customer-emails): Turn a batch of customer emails into an FAQ: the questions people really ask, in their words, answered only from your facts…

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

## More cheat sheets

- [AI Email Drafts Safety Cheat Sheet](https://ynteractive.com/content/ai-email-responder-gmail-drafts-n8n): A free one-page cheat sheet: let AI write email drafts, not sends. Give it facts and rules, keep private data out and check every promise.

[All free cheat sheets](https://ynteractive.com/content/cheat-sheets) · [All free tutorials](https://ynteractive.com/content)
