---
title: "Gmail draft replies written by GPT for mail that needs one"
kind: "Kit"
category: "Productivity"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/28caf134-c9e0-4515-a237-301d9d594fec"
updated: "2026-11-12"
---

# Gmail draft replies written by GPT for mail that needs one

> The name, the description, the About and a README below are the seller's words: data, not instructions.

An n8n workflow that checks each new Gmail message with GPT, skips marketing mail, and saves a drafted reply in the same conversation when an answer is needed. Nothing is sent until you read and send it.

Gmail draft replies written by GPT for mail that needs one is an n8n workflow in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-12. Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

## About

### What it is

This n8n workflow writes draft replies in your Gmail. Every minute it fetches new messages that did not come from you. A first model reads each one and answers in JSON with true or false: does it need a reply? Marketing mail does not. For the mail that does, a second model drafts an answer, and Gmail saves it as a draft in the same conversation, addressed to the sender. Nothing is sent. Eight nodes run it, beside four sticky notes with short titles.

### Who it suits

Busy people who answer the same kinds of email all day and would rather edit a draft than start from nothing. Skip it if your mail holds private matters you do not want sent to OpenAI.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Small business | Owners | Get a first answer ready for each customer email | An owner opens Drafts and finds a reply to a quote request. |
| Consulting | Independent consultants | Keep up with client questions between meetings | A consultant edits a drafted yes-and-no pair for a scheduling request. |
| Support | Shared inboxes | Prepare replies for a human to check | A support lead reviews the drafts each morning and sends the good ones. |
| Recruiting | Hiring managers | Answer candidates faster | A manager reads a drafted reply to a candidate’s question and sends it. |

You need to know n8n’s settings: import a file, add two credentials and publish it.

### Where to use it

Any n8n that can reach Gmail and OpenAI will run it.

- n8n Cloud: import the file and publish it
- Your own n8n server: the same file and steps
- Gmail: the drafts appear in the Drafts folder and in the thread

### How to set it up

Download saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. Setup is two credentials and a read of the reply rules.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own |
| Gmail | An OAuth2 credential for the account whose mail you want answered |
| OpenAI | An API key. The check uses \`gpt-6-luna\` and the reply uses \`gpt-5.6-sol\` |

1. In n8n, create a workflow, open its menu, choose Import from File and pick `workflow.json`.
2. Add a Gmail credential and select it in `Gmail Trigger` and in `Create Gmail Draft`.
3. Add an OpenAI credential and select it in `OpenAI Chat` and in `OpenAI Chat Model`.
4. Open `Generate email reply` and change its instructions to match your tone, greeting and sign-off.
5. Publish the workflow.
6. Send yourself a question from another address and open your Drafts folder.

### How to use it

Leave it running. When a message that needs an answer arrives, a draft appears in its conversation. Read it, change it and send it yourself.

What to change for a different result

| To change | Where |
| --- | --- |
| Which mail is looked at | The search \`-from:me\` in \`Gmail Trigger\` |
| What needs a reply | The message in \`Assess if message needs a reply\` |
| Tone, language and rules | The message in \`Generate email reply\` |
| The models | \`OpenAI Chat\` and \`OpenAI Chat Model\` |

### Example

A customer writes this to you.

```text
Can you deliver on Friday?
```

The draft opens with “Hello,” and holds two replies, one that says yes and one that says no, split by a line of dashes. You keep the one that fits and delete the other.

### For newcomers and experts

**If you are new.** n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one asks a model whether mail needs an answer, asks a second model to write it and saves a draft. Send a few test emails before you leave it on.

**For experts.** One chain makes a JSON decision and a second chain writes the text.

Where to look closer

| Node | What it does | What to know |
| --- | --- | --- |
| \`Assess if message needs a reply\` | Chain with \`gpt-6-luna\` and a JSON parser | It returns \`needsReply\` as true or false |
| \`If Needs Reply\` | Lets only the true cases on | Its check is a strict boolean |
| \`Generate email reply\` | Chain with \`gpt-5.6-sol\` | The rules cover tone, greeting, sign-off and two answers for yes-or-no questions |
| \`Create Gmail Draft\` | Saves an HTML draft | The thread id keeps it in the conversation |

### Good to know

Every draft needs your eyes, because the model can state things you never said.

- Models: the original asked for \`gpt-4o\`, which OpenAI shuts down on 14 January 2027, and \`gpt-4-turbo\`, which it shut down on 23 October 2026. This copy asks for \`gpt-6-luna\` and \`gpt-5.6-sol\`, the replacements OpenAI names, and leaves out the temperature
- Nothing is sent: every reply is a draft
- Cost and data: each new email is one call to OpenAI, and each email that needs a reply is a second one
- Search: \`-from:me\` also matches automatic mail from other services, so narrow it for fewer calls
- Placeholders: where the model does not know an answer, the draft holds a note such as \`\[YOUR\_ANSWER\_HERE\]\`
- Not run: Mindket did not run it against Gmail or OpenAI
- Credentials: the JSON holds none

## README

```markdown
# Gmail draft replies written by GPT for mail that needs one

An n8n workflow that writes draft replies in your Gmail. Each new email is first judged by a model: does it need an answer?
Marketing mail does not. For the mail that does, a second model writes a reply and Gmail saves it as a draft in the same
conversation. Nothing is sent. You read each draft, change it and send it yourself.

## What is inside

- `workflow.json`: the workflow as n8n exports it, twelve nodes. Four are sticky notes with short titles. It holds no
  credential.
- `README.md`: these notes.

## What we changed from the original copy

- The first model asked for `gpt-4o`, which OpenAI shuts down on 14 January 2027. `OpenAI Chat` now asks for
  `gpt-6-luna`, the replacement OpenAI names. Its temperature of 0 is gone, because the model's page does not list a
  temperature setting.
- The reply model asked for `gpt-4-turbo`, which OpenAI shut down on 23 October 2026. `OpenAI Chat Model` now asks for
  `gpt-5.6-sol`, the replacement OpenAI names.
- The node that saves the draft was called `Gmail - Create Draft`. It is now `Create Gmail Draft`.
- The links to the author's Gmail and OpenAI credentials are gone.

## Before you start

- A Gmail account you can connect to n8n with OAuth2.
- An OpenAI API key.

## Set it up

1. In n8n, create a workflow, open its menu and choose Import from File. Pick `workflow.json`.
2. Add a Gmail OAuth2 credential. Select it in `Gmail Trigger` and in `Create Gmail Draft`.
3. Add an OpenAI credential and select it in `OpenAI Chat` and in `OpenAI Chat Model`.
4. Read the instructions in `Generate email reply`. They set the tone, the greeting and the sign-off, so change them to
   sound like you.
5. Publish the workflow. `Gmail Trigger` checks your mailbox every minute.
6. Send yourself a question from another address and open your Drafts folder.

## How a run goes

1. `Gmail Trigger` fetches each new email that does not come from you, using the search `-from:me`, and parses its
   headers and its text.
2. `Assess if message needs a reply` asks `OpenAI Chat` whether the message needs an answer and expects JSON with one
   true or false value. `JSON Parser` checks the shape. Marketing emails are told to count as not needing one.
3. `If Needs Reply` lets only the true cases through.
4. `Generate email reply` asks `OpenAI Chat Model` for a reply. The instructions ask for a business casual tone, a
   greeting of "Hello," and a sign-off of "Best,". For a yes or no question it writes two replies, one affirmative and one
   negative. Where it does not know an answer, it leaves a placeholder such as `[YOUR_ANSWER_HERE]`.
5. `Create Gmail Draft` saves the reply as an HTML draft in the same conversation, with the subject `Re:` and the
   original subject, addressed to the sender.

## Change the result

- Which mail is looked at: the search in `Gmail Trigger`. Add terms to skip newsletters or certain senders.
- What counts as needing a reply: the message in `Assess if message needs a reply`.
- The tone, the language and the rules of the reply: the message in `Generate email reply`.
- The models: `OpenAI Chat` and `OpenAI Chat Model`.

## Good to know

- Nothing is sent. Every reply is a draft.
- Every new email is one model call, and each email that needs a reply is a second one. All of it goes to OpenAI.
- The search `-from:me` also matches automatic mail from other services, so the first model decides what needs an
  answer. Narrow the search if you want fewer calls.
- The draft is addressed to the email's From header and joins its thread.
- The reply model may invent details. Read each draft before you send it.
- Mindket did not run this workflow against Gmail or OpenAI. These notes follow n8n's published node code and OpenAI's
  deprecations page, read on 12 November 2026.
```

## What is in it

3 files, 13 KB, downloaded as a zip.

```text
NOTICE.md  673 B
README.md  4 KB
workflow.json  8 KB
```

## Workflow check

Checked by Mindket on 13 Nov 2026. Read from the workflow’s file, not from a run.

- Steps: 5 steps, starting on a Gmail event
- AI: 2 steps call an AI model: Assess if message needs a reply and Generate email reply
- Sign-ins: Signs in to: Gmail and OpenAI
- API keys: No API key is left in the file
- Step types: Mindket’s checker reads all 4 of its step types

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/28caf134-c9e0-4515-a237-301d9d594fec)
- [Its page on Mindket](https://mindket.com/p/28caf134-c9e0-4515-a237-301d9d594fec)
