AutomationMart
Home/Browse/Triage emails and draft Gmail replies using Gemini and Google Calendar
n8n

Triage emails and draft Gmail replies using Gemini and Google Calendar

n8nn8n16 modulesv1.0
agentcodefiltergmailgmailToolgmailTriggergoogleCalendarToollmChatGoogleGeminioutputParserStructuredswitch

Who it's for This workflow is for professionals and small business owners who receive a high volume of emails and want to automate triage, labeling, and draft reply generation — without losing the human touch before sending. How it works 1. A Gmail trigger polls the inbox every minute for new unread emails and retrieves the current date. 2. The full email message is fetched, and any existing processing labels are stripped from the thread. 3. A Gemini 2.5 Pro AI Agent reads the email (an

At a glance

Triage emails and draft Gmail replies using Gemini and Google Calendar is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects agent, code, filter, gmail. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
agent, code, filter, gmail, gmailTool, gmailTrigger
Modules
16
Price
Free
Version
v1.0
Triage emails and draft Gmail replies using Gemini and Google Calendar workflow diagram

About this workflow

Who it's for This workflow is for professionals and small business owners who receive a high volume of emails and want to automate triage, labeling, and draft reply generation — without losing the human touch before sending. How it works 1. A Gmail trigger polls the inbox every minute for new unread emails and retrieves the current date. 2. The full email message is fetched, and any existing processing labels are stripped from the thread. 3. A Gemini 2.5 Pro AI Agent reads the email (and the full thread via a Gmail Thread tool), checks Google Calendar for availability, then classifies the email into one of six categories (Urgent, Reply, Read, Notification, Newsletter, Invoice) and drafts an HTML reply when needed. 4. A Switch node routes the output: emails requiring a reply (Urgent or Reply) pass through a JavaScript node that appends an HTML signature before saving the message as a Gmail draft. 5. All paths converge to fetch the matching Gmail label, filter for validity, apply it to the thread, and mark the message as unread so it surfaces for human review. How to set up - [ ] Connect a Gmail OAuth2 credential to all Gmail nodes (trigger, fetch, remove label, draft, label, mark unread) - [ ] Connect a Google Gemini (PaLM) API credential to the Gemini Chat Model node - [ ] Connect a Google Calendar OAuth2 credential to the Google Calendar Tool node - [ ] Configure the Gmail Trigger label/filter to match your inbox setup - [ ] Update the label IDs in Remove Label from Thread, Get label for response, and Labelliser to match your Gmail labels - [ ] Customize the HTML signature in the Build HTML Signature code node Requirements - Gmail account with OAuth2 access - Google Gemini (PaLM) API key - Google Calendar account How to customize - Adjust the AI Agent's system prompt to change tone, add new label categories, or modify the reply structure. - Extend the Switch node with additional branches (e.g., forward to a team member, archive automatically, create a CRM task). - Replace the Gmail draft step with a direct send for fully automated responses on low-risk categories like Notifications.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Scrape detailed GitHub profiles to Google Sheets using BrowserAct

Scrape Detailed GitHub Profiles to Google Sheets Using BrowserAct This template is a sophisticated data enrichment and reporting tool that scrapes detailed GitHub user profiles and organizes the information into dedicated, structured reports within a Google Sheet. This workflow is essential for technical recruiters, talent acquisition teams, and business intelligence analysts who need to dive deep into a pre-qualified list of developers to understand their recent activity, repositories, and tech

Free

AI-Powered Zoho CRM Lead Management with OpenAI GPT

Zoho CRM MCP Server Integration (n8n Workflow) 🧠 Overview This n8n flow integrates Zoho CRM with an MCP (Model Context Protocol) Server and OpenAI Chat Model, enabling AI-driven automation for CRM lead management. It allows an AI Agent to create, update, delete, and fetch leads in Zoho CRM through natural language instructions. --- ▶️ Demo Video Watch the full demo here: 👉 YouTube Demo Video --- ⚙️ Core Components | Component | Purpose | | ---------------------- | ------------------------------

Free

Monitor marketing job boards with Bright Data & GPT-4o for growing companies

This workflow automatically monitors marketing job boards to identify growing companies and potential business opportunities. It saves you time by eliminating the need to manually check job listings and provides insights into which companies are actively hiring and expanding their marketing teams. Overview This workflow automatically scrapes marketing job listings from Indeed and other job boards to extract company information, job details, and growth indicators. It uses Bright Data to access jo

Free

CYBERPULSE AI GRC: Vendor risk evaluator

Description Automates the intake, classification, and documentation of third-party vendors. Evaluates vendor function, data access level, certification status, and applies AI-driven risk tiering (Low, Standard, Critical). Ensures standardized onboarding and scalable due diligence. Who It’s For Compliance and procurement teams onboarding vendors GRC consultants managing supply chain risk Security leads needing traceable vendor evidence Audit teams validating third-party controls How It Works Trig

Free

5 ways to process images & PDFs with Gemini AI in n8n

How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workflow answers that question by demonstrating five different approaches: - Single image with auto binary passthrough - The simplest approach using AI Agent's automatic binary handling - Multiple images with predefined prompts - For customized analysis with different instructions per image - Native n8n item-by-item processing - For handling

Free

Author and publish blog posts from Google Sheets

What it is: An automation to plan→draft→finalize and publish your textual blog post ideas to your wordpress blog Works in stages and hand back control to you in between those You can use a Google Spreadsheet for planning topics and configuring LLM models and prompts What it does: plans→drafts→finalizes blog post topics you specify in a Google Spreadsheet using an LLM with prompts that also ar configured in that spreadsheet (even which model to use) savs the results in the corresponding col

Free

Lead scoring & auto-assignment with GPT-4 and GoHighLevel + Slack alerts

This workflow automatically scores and categorizes new GoHighLevel contacts using AI (GPT-4), then tags and assigns them to the appropriate team member based on their score. Hot leads also trigger a Slack notification for immediate follow-up. What does it do? - Triggers when a new contact is added in GoHighLevel. - Fetches full contact details and recent engagement data. - Uses AI (GPT-4) to analyze and score the lead (1-100), categorize it (Hot, Warm, Cold), and provide an explanation. - T

Free

Extract medical reports & generate AI health advice with Mistral AI & GPT-4

Try It Out! Use n8n to extract medical test data from diagnostic reports uploaded to Google Drive, automatically detect abnormal values, and generate personalized health advice. How it works 1. Upload a medical report (PDF or image) to a monitored Google Drive folder 2. Mistral AI extracts text using OCR while preserving document structure 3. GPT-4 parses the extracted text into structured JSON (patient info, test names, results, units, reference ranges) 4. All test results are saved t

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free