FREE N8N TEMPLATE · CUSTOMER SERVICE

This n8n workflow reads each new unread email in Gmail, uses an AI text classifier to sort it into urgent, sales, support, invoices or newsletters, and applies the matching Gmail label. For urgent, sales and support email it writes a reply and saves it as a Gmail draft in the same thread, ready for you to check and send. At 5 pm each weekday it emails you a digest of what came in.

DIFFICULTY
Beginner
SET-UP TIME
About 30 minutes
NODES
16
CHECKED AGAINST
n8n 2.41
  • n8n
  • Gmail
  • OpenAI or Anthropic

LAST REVIEWED OCTOBER 2026

ai-email-triage-gmail.n8n.jsonLOCKED

Get the free workflow

Leave your email to copy the workflow and paste it straight onto your n8n canvas.

FREE · NO CREDENTIALS INCLUDED · CLOUD OR SELF-HOSTED

001 / HOW IT WORKS

Step by step, node by node

  1. 01New email

    The Gmail Trigger checks for new unread messages, skipping chats and mail you sent yourself, and passes the full message including sender, subject and body text.

  2. 02Classify email

    The Text Classifier node asks the chat model to place each email in one of five categories you describe in plain English. Anything that fits none goes to an Other output.

  3. 03Apply Gmail label

    Each category output runs a Gmail node that adds the matching label (AI-Urgent, AI-Sales, AI-Support, AI-Invoices or AI-Newsletters). Other mail is left untouched in the inbox.

  4. 04Write draft reply

    For urgent, sales and support email, an LLM chain writes a reply in your voice. It is told never to invent prices, dates or commitments and to leave square-bracket placeholders instead.

  5. 05Save as Gmail draft

    The reply is saved as a Gmail draft inside the original thread, addressed to the sender. Nothing is sent; you open Drafts, edit and press send.

  6. 06Daily digest

    A schedule trigger runs at 5 pm Sydney time on weekdays, fetches the day's labelled email, combines it into one list and has the chat model write a short HTML digest grouped by category.

  7. 07Email me the digest

    Gmail sends the digest to your own address, with a reminder that draft replies are waiting for review.

AI EMAIL TRIAGE FOR GMAIL: LABELS, DRAFT REPLIES AND A DAILY DIGEST
@New email✦Classify email◆Chat model@Label: Urgent@Label: Sales@Label: Support@Label: Invoices@Label:Newsletters–Other: leave ininbox✦Write draft reply@Save as Gmaildraft◷Every weekday at5 pm@Get today'striaged email⊞Combine into onelist✦Write digest@Email me thedigest

THE REAL WORKFLOW YOU IMPORT · NODE NAMES AS THEY APPEAR IN N8N

002 / WHY IT EXISTS

A busy shared or personal inbox mixes customer problems, new sales enquiries, supplier invoices and newsletters in one list. Important messages get buried, replies go out late, and an hour every morning disappears into sorting rather than answering. Filters help, but they only match senders and keywords, not what an email is actually asking for.

This template is for owners, operations managers, account managers and small support teams in Australian businesses who live in Gmail or Google Workspace. It sorts mail by meaning, prepares a first draft for the messages that need a reply, and leaves every send decision with a person, because a wrong automatic reply to a customer costs more than the time it saves.

WHO IT'S FOR

  • →Business owners who handle their own inbox
  • →Small support teams working from a shared Google Workspace mailbox
  • →Account managers who need urgent client email to stand out
  • →Office managers who sort invoices and supplier mail

003 / WHAT YOU NEED

Tick them off as you go. Nothing is saved; it's just a checklist.

004 / SET IT UP

  1. 01

    In Gmail, create five labels: AI-Urgent, AI-Sales, AI-Support, AI-Invoices and AI-Newsletters.

  2. 02

    Import the workflow and connect your Gmail credential to the New email trigger and every Gmail node.

  3. 03

    Open each Label node and choose the matching label from the dropdown, replacing the YOUR_..._LABEL_ID placeholders.

  4. 04

    Add your OpenAI credential to the Chat model node, or swap in the Anthropic Chat Model node and connect it to Classify email, Write draft reply and Write digest.

  5. 05

    Edit the category descriptions in Classify email so they describe your real mail, for example naming your key clients under Urgent.

  6. 06

    Edit the system message in Write draft reply with your name, role, business and preferred tone.

  7. 07

    Set your own address in Email me the digest and adjust the schedule if 5 pm on weekdays does not suit you.

  8. 08

    Run the workflow manually on a few recent emails, check the labels and drafts, then activate it.

Get the workflow↑

005 / MAKE IT YOURS

  • +Add a Gmail node on the Newsletters output to mark those emails as read or archive them.
  • +Forward invoices to your Xero or MYOB bills inbox, or send the attachments to an AP automation workflow.
  • +Post urgent email to a Slack channel or send a push notification so it is seen outside Gmail.
  • +Give the draft writer a knowledge base tool with your FAQs and policies so support drafts are more complete.
  • +Log each classification to Google Sheets to review accuracy and refine the category descriptions.

FOR AUSTRALIAN BUSINESSES

Email bodies are sent to an AI provider for classification and drafting, often in the United States, which is a cross-border disclosure under APP 8 of the Privacy Act 1988. If your mailbox receives health, financial or legal information, check your provider's data retention terms or use a model hosted in an Australian region, such as through Amazon Bedrock or Azure in Sydney. Because the workflow only creates drafts, a person approves every reply, which keeps you in control of what you send under the Spam Act 2003 and your own complaint-handling obligations. The digest runs on Australia/Sydney time; change the workflow timezone for other states.

Need it hosted in Australia? →

006 / TOOLS IN THIS WORKFLOW

007 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

No. Replies are saved as Gmail drafts in the original thread. The only email the workflow sends is the daily digest to your own address. You can change that, but drafts are the safer default for customer email.

We set up n8n end to end: hosting in Australia, connecting your systems, testing with real data and handing over documentation.

Book a free call→