Stepthrough Start free

AI email responder: draft Gmail replies automatically with n8n

Lesson cheat sheetOne page · US lettern8n

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.

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

▶StepthroughFree printable cheat sheet · learn.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

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 at learn.ynteractive.com/modules/email-responder. This sheet: learn.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

Or read the full step-by-step guide

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

The full AI glossary

All free prompt templates

More cheat sheets

AI Email Drafts Safety Cheat Sheet: printable cheat sheet previewAI Email Drafts Safety Cheat Sheet

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.

Topic cheat sheet Free PDF

Check Every Promise in an AI Reply: Cheat Sheet: printable cheat sheet previewCheck Every Promise in an AI Reply: Cheat Sheet

A free one-page cheat sheet: give ChatGPT the thread and your numbered facts, ask for a promise-by-promise table, fix what it flags, then send.

Topic cheat sheet Free PDF

Using AI Safely with Customer Data: Cheat Sheet: printable cheat sheet previewUsing AI Safely with Customer Data: Cheat Sheet

A free one-page cheat sheet on AI and customer data: what never to paste, how to redact, data controls, Temporary Chat and human review.

Topic cheat sheet Free PDF

All free cheat sheets · All free tutorials