Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Gmail Inbox Triage and Draft Replies
2
Views
1
Downloads
15
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Administration
Automation Orchestrator
n8n
Integrations
Groq
Google Gemini
Gmail
Trigger Type
On app event
Approx setup time ≈ 45 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail Inbox Triage and Draft Replies?

Leon Petrou
FREE TEMPLATE
Automate Gmail Inbox Triage and Draft Replies
2
Views
1
Downloads
15
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
Administration
Automation Orchestrator
n8n
Integrations
Groq
Google Gemini
Gmail
Trigger Type
On app event
Approximate setup time ≈ 45 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Busy inboxes slow teams down. This build reads each new Gmail message, sorts it into a clear label, and writes a polite draft reply you can review. Ideal for office staff, sales assistants, and school admin teams that need fast triage without missing urgent notes. You get a clean queue and a ready to edit answer for each thread.

New emails are pulled from Gmail every minute. The text goes to an AI classifier powered by Google Gemini, which picks a category like High Priority, Work Related, or Promotion. Based on that choice, the flow adds the matching Gmail label automatically. At the same time, an AI Agent using a Groq model creates a first draft reply and saves it as a Gmail draft, so a human can edit and send. It uses separate models for classification and drafting to improve accuracy and tone, and you can add more categories as your workload grows.

Setup only needs Gmail labels and API access for Google Gemini and Groq. Expect faster first responses, clearer priorities, and less inbox stress, often saving 30 to 60 minutes each day. No code changes are needed beyond choosing labels and pasting API keys. Great for sorting inquiries, vendor emails, and parent or client messages while keeping control over final sends.

Copy link

Tools Required

n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Groq
Sign up
Free tier: $0, API key usable via API (rate‑limited)
Google Gemini
Sign up
Free tier: $0 via Gemini API; e.g., Gemini 2.5 Flash-Lite free limits 1,000 requests/day (15 RPM, 250k TPM). Paid from $0.10/1M input tokens and $0.40/1M output tokens.
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

What this workflow does?

  • Gmail Trigger checks for new emails every minute
  • Google Gemini classifies each message into custom categories
  • Routes messages to matching Gmail labels based on the chosen category
  • Groq powered AI Agent writes a polite, context aware draft reply
  • Saves replies as Gmail drafts so a human can review and send
  • Easily add more categories and labels as needs change

What are the benefits?

  • Reduce manual sorting from 60 minutes to 5 minutes per day
  • Automate about 70% of first draft replies while keeping human review
  • Improve priority accuracy with clear labels for each category
  • Handle up to 5 times more email volume without extra staff
  • Connect Gmail with two AI models in one place

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, Google Gemini and Groq. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create a Gmail OAuth2 credential. Sign in to your Google account and grant Gmail access. Name the credential clearly, for example Gmail Main.
  4. Open the Gmail Trigger node and select your Gmail credential. Confirm the polling setting is every minute or choose a rate that fits your volume.
  5. In your Gmail inbox, create labels for each category you want, such as High Priority, Work Related, and Promotion. Use colors if helpful.
  6. Open the Classification Agent node. Enter your category names and short rules or keywords in the description field. Make sure category names match your Gmail label names.
  7. Double click the Google Gemini Chat Model node. In the credential dropdown, click Create new credential, then paste your Gemini API key from the Google AI Studio API page and test the connection.
  8. Double click the Groq Chat Model node. In the credential dropdown, click Create new credential, add your Groq API key from your Groq account, choose the model, and test the connection.
  9. Open each Add Label node and select your Gmail credential. Choose the exact Gmail label by name or ID that matches the classification output connected to that node.
  10. Open the AI Agent node and adjust the system message to match your tone. Open the Gmail Draft node and confirm Resource is Draft, Subject maps to the original subject, and Message maps to the AI output.
  11. Run a test: send sample emails that fit each category. Check n8n executions, confirm the right label is applied in Gmail, and verify a draft reply is created in your Drafts folder.
  12. Troubleshoot: if labels are missing, ensure category names and output paths match. Reconnect Gmail if auth errors appear. If drafts do not show, confirm the message field maps to the AI output and review the n8n logs.

Need help or want to customize this?

Similar Templates

n8n
Administration
Automate Gmail Inbox Organization
Keep your inbox tidy without manual sorting. This setup scans new Gmail messages and puts them into the right labels using AI. It helps teams that get many emails and want quick triage and clear folders. A Gmail trigger checks for new mail every five minutes. A short wait controls timing. The agent uses an OpenAI chat model with memory to review the message, compare it with your existing Gmail labels, and choose the best match. If nothing fits, it creates a new label and then applies it to the email. It reads all labels, fetches the message by id, creates labels when needed, and adds labels back to Gmail. Results are consistent because the memory keeps short context for each thread. You only need Gmail access and an OpenAI key. Connect both credentials in n8n Cloud, keep the default poll time, and test by sending a sample email with a clear subject. Expect faster inbox cleanup, fewer missed messages, and a clear label structure for shared mailboxes. Many teams use it for marketing leads, vendor requests, or project updates. Time saved adds up fast, and you can handle more email volume without extra staff.
6 views
view
n8n
Administration
Organize Gmail with AI Labeling and Auto Filing
Keep your Gmail tidy without manual sorting. The system reads each new email and files it into the right label or creates a clear new one. Great for teams that want a clean inbox and faster follow up. It starts when Gmail checks for new messages every five minutes. An AI agent reviews the subject, sender, and content, then uses Gmail tools to read labels, fetch the message, add labels, or create a label when none fit. Low value mail can have the Inbox label removed, while normal and important mail stays visible. New labels follow your naming style and are placed as sublabels under an AI parent when needed. A short memory window keeps context per message so the agent makes consistent choices. The model can handle long emails with a large token limit, and a brief wait helps space out calls. Connect a Gmail account and add your OpenAI key to run it. Set the poll time and review the rules in the system message. Expect strong time savings and a steady folder structure across the team. This is useful for promotions, vendor mail, project updates, and resumes, and can be tuned with a few simple edits.
7 views
view
n8n
Administration
Automate Gmail Calendar Event Delivery
Stop typing term dates into your calendar. Turn a spreadsheet into a clean calendar file and email it to your group in one run. Great for schools, training teams, and admin staff who manage dates for many people. On click, the flow downloads an XLSX file from a link. A Cloudflare service converts the sheet to markdown so AI can read it. The flow picks the right sheet text. An AI model using Google Gemini reads the table and returns a list of events with week number, start date, title, and notes. Each event becomes its own item, dates are normalized and sorted, and a small Python script builds an ICS file. The file is turned into a binary attachment and Gmail sends it to your recipients. You will need accounts for Cloudflare, Google Gemini, and Gmail. Replace the Cloudflare account ID in the URL and add credentials for each node. Point the download node to your own spreadsheet. Expect to cut hours of entry down to minutes and avoid date mistakes. Use it for academic terms, training cohorts, or company events. After a test run, import the ICS into Google Calendar, Outlook, or Apple Calendar and share it with your team.
0 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.