anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
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 . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
New email
It starts when a new email that did not come from you reaches your Gmail, checked every minute. It brings:
A drafted reply waiting in your Gmail Drafts folder for each message that needs one, ready for you to edit and send
What you need before you start.
Mail source and drafts
Fetches new messages and saves the drafted replies in their conversations.
NeedsA Gmail OAuth2 credential
Language model
Judges each message and writes the reply. The copy asks for gpt-6-luna and gpt-5.6-sol.
NeedsAn OpenAI API key
Checked by Mindket on 13 Nov 2026
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.
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.
| 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.
Any n8n that can reach Gmail and OpenAI will run it.
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.
| 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 |
workflow.json.Gmail Trigger and in Create Gmail Draft.OpenAI Chat and in OpenAI Chat Model.Generate email reply and change its instructions to match your tone, greeting and sign-off.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.
| 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 |
A customer writes this to you.
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.
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.
| 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 |
Every draft needs your eyes, because the model can state things you never said.
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-from:me also matches automatic mail from other services, so narrow it for fewer calls[YOUR_ANSWER_HERE]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.
workflow.json: the workflow as n8n exports it, twelve nodes. Four are sticky notes with short titles. It holds noREADME.md: these notes.gpt-4o, which OpenAI shuts down on 14 January 2027. OpenAI Chat now asks forgpt-6-luna, the replacement OpenAI names. Its temperature of 0 is gone, because the model's page does not list agpt-4-turbo, which OpenAI shut down on 23 October 2026. OpenAI Chat Model now asks forgpt-5.6-sol, the replacement OpenAI names.Gmail - Create Draft. It is now Create Gmail Draft.workflow.json.Gmail Trigger and in Create Gmail Draft.OpenAI Chat and in OpenAI Chat Model.Generate email reply. They set the tone, the greeting and the sign-off, so change them toGmail Trigger checks your mailbox every minute.Gmail Trigger fetches each new email that does not come from you, using the search -from:me, and parses itsAssess if message needs a reply asks OpenAI Chat whether the message needs an answer and expects JSON with oneJSON Parser checks the shape. Marketing emails are told to count as not needing one.If Needs Reply lets only the true cases through.Generate email reply asks OpenAI Chat Model for a reply. The instructions ask for a business casual tone, a[YOUR_ANSWER_HERE].Create Gmail Draft saves the reply as an HTML draft in the same conversation, with the subject Re: and theGmail Trigger. Add terms to skip newsletters or certain senders.Assess if message needs a reply.Generate email reply.OpenAI Chat and OpenAI Chat Model.-from:me also matches automatic mail from other services, so the first model decides what needs anNOTICE.md 673 B README.md 4 KB workflow.json 8 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
zarazhangrui · Skill
Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…
iptv-org · Kit
Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…