Every new email that needs an answer gets a reply draft in its Gmail thread with an 'AI draft' label, and nothing is sent without you.
Try it in a chat first (optional)
If you only want help with a few emails now and then, a chat is enough. In Claude, connect Gmail under connectors (on Team and Enterprise plans an owner must turn it on first). Then type the prompt below. Claude finds the emails, shows you a reply for each one and asks for your approval before it sends anything. For example, for 'Can we move our call to Thursday?' you get back something like 'Hi Sam, Thursday works for me. Same time? Best, Alex'. A chat only works when you open it and ask, so for a draft on every new email without you doing anything, we build the automation below in n8n.
Find the unread emails from today where someone asks me a question or expects an answer. Write a short, friendly reply to each one. Show me all replies first and don't send anything until I approve it.
Create the 'AI draft' label and open n8n
In Gmail, scroll down the left sidebar, click 'Create new label', name it AI draft and click Create. Your drafts will be easy to spot under this label. Then sign in to n8n (Cloud trial or your own instance), click 'Create workflow' and name it 'Gmail reply drafts'.
Add the Gmail trigger
Click the + on the canvas, search for Gmail and choose the trigger 'On message received'. Under Credential, create a new Google credential. On n8n Cloud, click 'Sign in with Google' and allow access. Self-hosted n8n needs your own Google Cloud OAuth client, so follow n8n's 'Google OAuth2 single service' guide. Set Poll Times to Every Minute, turn Simplify OFF so the node returns the full email body, and leave Read Status on 'Unread emails only'. Send yourself a test email and click 'Fetch Test Event'. You should see the email in the output panel, with fields like subject, text, from, id and threadId.
Sort emails with a Text Classifier
Click + after the trigger, search for 'Text Classifier' and add it. In Input Prompt, paste the expression below. Under Categories, add three. Name: needs-reply, Description: 'A real person asks a question, makes a request or expects an answer from me'. Name: fyi, Description: 'Updates, receipts, notifications and confirmations that need no answer'. Name: newsletter, Description: 'Newsletters, marketing and promotional mail'. Under Options, set 'When No Clear Match' to 'Output on Extra, Other Branch' so emails with no clear category still go somewhere you can see. Click the Model connector under the node, add 'OpenAI Chat Model', connect your OpenAI API key (or choose Use Gateway credits on Cloud) and pick a small, cheap model from the list. The node now has a separate output for each category.
From: {{ $json.from.text }} Subject: {{ $json.subject }} {{ $json.text }}Write the reply with your style guide
Drag from the needs-reply output and add a 'Basic LLM Chain' node. Leave the fyi, newsletter and Other outputs empty. Those emails stay in your inbox as they are. In the chain, set Prompt to 'Define below'. The code below has two separate blocks, each under its own heading line; copy the text under a heading, not the heading itself. Paste BLOCK 1 into Prompt (User Message), and nothing else. Then under Chat Messages, add a message, set Type to System and paste BLOCK 2 (the style guide) there, then edit it to sound like you. The style guide must not go into the user prompt. Connect an OpenAI Chat Model under the chain the same way as before. Run the node: the output should be a short reply in your tone.
===== BLOCK 1: paste into Prompt (User Message) ===== Write a reply to this email. From: {{ $('Gmail Trigger').item.json.from.text }} Subject: {{ $('Gmail Trigger').item.json.subject }} {{ $('Gmail Trigger').item.json.text }} ===== BLOCK 2: paste into Chat Messages, Type: System ===== You write email replies for me. Rules: - Reply in the same language as the email. - 3-6 short sentences. No long intros, no "I hope this email finds you well". - Friendly, direct, first name only in the greeting. - Answer the actual question. If you don't know a fact (price, date, availability), write [CHECK: ...] instead of guessing. - Never promise deadlines, discounts or meetings I didn't mention. - Sign off with: Best, <your name> - Output only the email body, no subject line.Save the draft in the same thread
After the Basic LLM Chain, add a Gmail node with the action 'Create a draft' (Resource: Draft, Operation: Create). Use the same Google credential. Set Subject to the first line below, Email Type to Text and Message to the second line. Under Options, click 'Add option' and add Thread ID (third line) so the draft lands in the original conversation, then add To Email (fourth line) so it goes back to the sender. Run the node, then open Gmail Drafts. The draft should be there, inside the original thread.
Subject: Re: {{ $('Gmail Trigger').item.json.subject }} Message: {{ $json.text }} Thread ID: {{ $('Gmail Trigger').item.json.threadId }} To Email: {{ $('Gmail Trigger').item.json.from.value[0].address }}Label the email 'AI draft'
Add one more Gmail node with the action 'Add label to message' (Resource: Message, Operation: Add Label). Set Message ID to the expression below and pick AI draft from the 'Label Names or IDs' dropdown. Run it. In Gmail, the original email now shows the AI draft label.
{{ $('Gmail Trigger').item.json.id }}Test with three emails, then publish
Send yourself three emails from another account: a real question ('Can we move our call to Thursday?'), a receipt and a newsletter. A manual run of the Gmail Trigger may pick up only the newest email, so one 'Execute workflow' click won't test all three. Test them one at a time: send one email, click 'Execute workflow', check the result, then do the same with the next one. Only the question should get a draft and a label. If a receipt still gets a draft, make the category descriptions more specific and try again. When it works, click Publish at the top right. You don't need to save first: since n8n 2.4 there's no Save button, and the editor saves your changes automatically as a draft. Only Publish makes them live, and since n8n 2.0 Publish replaces the old Active switch. From now on n8n checks your inbox every minute. In everyday terms: you open Gmail, and the emails that need you already have a reply waiting under the AI draft label. You can also do the three-email test after publishing: send all three and check in Gmail which ones got a draft and the label. Things to watch: the trigger fetches at most 10 emails per poll by default (50 max), and the rest wait for the next poll. Check the field names in your own trigger output, because they can differ slightly. Every draft still needs your review, especially anything marked [CHECK: ...].
Get the next automation before it's posted.
One short email with the AI stories that matter. What happened in AI, why it matters, one tool worth trying. Free. Unsubscribe anytime.
