🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Gmail + Google Calendar, faster replies and meetings

Lisa Granqvist Partner Workflow Automation Expert

Your inbox is not the problem. The constant context switching is. You read an email, decide what it “is,” draft a reply, mark it done, then realize it’s actually a meeting request and now you’re hunting for calendar slots.

This Gmail Calendar automation hits client-facing teams hardest, but agency owners and ops leads feel it too. You will reply faster, label and log consistently, and stop losing meetings in the back-and-forth.

Below is the exact workflow: Gmail triggers it, Gemini classifies intent, n8n sends the right reply, and Google Calendar invites get created automatically when a message looks like “let’s meet.”

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: Gmail + Google Calendar, faster replies and meetings

Why This Matters: Inbox triage turns into a daily bottleneck

Most inbox stress is decision fatigue, not volume. You open a message and do a quick mental sort: “Is this a question, a project update, or feedback?” Then you rewrite the same types of replies all day, trying to sound consistent while rushing. Meanwhile, the easy operational hygiene slips. Messages don’t get labeled, threads aren’t logged, and “I’ll schedule that” turns into a follow-up two days later because you never created the invite. It’s messy, and it quietly slows revenue down.

It adds up fast. Here’s where it usually breaks down.

  • Meeting requests sit in the inbox because replying and scheduling are two separate tasks you have to remember.
  • Quick replies become inconsistent, which leads to more clarification emails and longer threads.
  • Labels and “mark as read” hygiene gets skipped when you’re busy, so your inbox stops being trustworthy.
  • Internal emails trigger accidental replies or wasted time, especially when multiple teammates monitor the same address.

What You’ll Build: AI-sorted Gmail replies with auto calendar invites

This workflow turns every new Gmail message into a clean, predictable process. It starts the moment an email hits your inbox. n8n checks whether the sender looks internal, then runs an “eligibility” filter so you only auto-reply when it makes sense. Next, Gemini (via an AI agent and chat model) classifies the email into intent types like inquiry, project update, or feedback. Based on that intent, it sends a context-specific email reply, then immediately does the housekeeping: mark the thread as read and apply labels so your inbox stays organized. If the email looks like a meeting request, the workflow also looks up calendar slots, loops through candidates in batches, and creates or updates a Google Calendar invite with a prepared payload.

The workflow begins with Gmail, makes a quick decision with Gemini, and routes the email down the right reply path. When scheduling is involved, Google Calendar becomes the “source of truth,” so a meeting goes from request to invite without you juggling tabs.

What You’re Building

Expected Results

Say your shared inbox gets 30 emails on a weekday, and about 10 of them need a real reply. If you spend roughly 6 minutes reading, deciding, drafting, and then labeling/marking read, that’s about an hour of repetitive work daily. Add two meeting requests at maybe 10 minutes each to find times and send invites, and you’re around 1.5 hours. With this workflow, you’re mostly reviewing edge cases: maybe 10 minutes to scan what was sent, while the calendar invites and labels happen automatically in the background.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Gmail for inbox access and sending replies
  • Google Calendar to create and update meeting invites
  • Google Gemini API access (get it from Google AI Studio / Google Cloud credentials)

Skill level: Intermediate. You’ll connect Google accounts, review AI prompts, and map a few fields for replies and calendar events.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

A new email arrives in Gmail. The Gmail trigger starts the workflow as soon as a message hits the inbox, so nothing depends on you “getting to it later.”

Internal senders and reply eligibility are checked. Two quick decision gates prevent awkward automation moments. You can keep internal threads from generating replies, and you can block auto-replies for messages that don’t meet your rules.

Gemini determines intent and routes the message. The AI classifier labels the email as inquiry, project update, or feedback, then the workflow sends the matching response through the appropriate email node.

Meeting requests trigger calendar work. For inquiries that look like “let’s meet,” Google Calendar is queried for slots, then n8n loops through options in batches and creates or updates an invite using a prepared payload.

Everything gets cleaned up after the reply. Gmail marks the thread read and applies labels, so you can trust what “done” means again. You can easily modify the eligibility rules or the labeling scheme based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Gmail Trigger

This workflow starts by polling a Gmail label for new messages and routes them into the automation.

  1. Add the Gmail Inbox Trigger node to your canvas.
  2. Set Simple to false.
  3. Under Filters → Label IDs, set the label to [YOUR_ID].
  4. Set Poll Times to everyHour.
  5. Credential Required: Connect your gmailOAuth2 credentials.

If you want to keep the visual header, leave Flowpast Branding as a sticky note (no configuration required).

Tip: Make sure [YOUR_ID] matches a real Gmail label ID, not the label name. You can find it in Gmail settings or via the Gmail API.

Step 2: Add Sender and Reply Eligibility Checks

Filter out internal senders and prevent replies to existing threads before classifying the email intent.

  1. Connect Gmail Inbox Trigger to Internal Sender Check.
  2. In Internal Sender Check, set the condition to Contains with Left Value {{ $json.headers.from }} and Right Value @[YOUR_DOMAIN].
  3. Connect the false output of Internal Sender Check to Reply Eligibility Check.
  4. In Reply Eligibility Check, set the condition to Not Starts With with Left Value {{ $json.subject }} and Right Value Re:.

Step 3: Set Up AI Intent Classification

Classify the incoming email into questions, project updates, or feedback to determine which response path to use.

  1. Connect Reply Eligibility Check to Email Intent Sorter.
  2. Set Input Text in Email Intent Sorter to {{ $('Gmail Inbox Trigger').item.json.subject }} {{ $('Gmail Inbox Trigger').item.json.text }}.
  3. Ensure the categories include Questions, Project Update, and Feedback with their descriptions.
  4. Add Gemini Chat Engine as the language model for Email Intent Sorter and set Model Name to models/gemini-2.0-flash-exp.
  5. Credential Required: Connect your googlePalmApi credentials to Gemini Chat Engine (credentials are added to the parent model node, not Email Intent Sorter).

Email Intent Sorter outputs to Calendar Slot Lookup, Project Update Reply, and Feedback Acknowledgement in parallel.

Step 4: Configure the Meeting Scheduling Path

When the email is a question, the workflow prepares calendar invites and sends a scheduling reply.

  1. In Calendar Slot Lookup, set Operation to getAll, Limit to 3, and Time Max to =.
  2. Set Options → Query to Available – Office Visit, Order By to startTime, and Recurring Event Handling to expand.
  3. Choose the calendar as [YOUR_EMAIL] under Calendar.
  4. Credential Required: Connect your googleCalendarOAuth2Api credentials to Calendar Slot Lookup.
  5. Connect Calendar Slot Lookup to Batch Iterator, then set up the two outputs: Batch IteratorPrepare Invite Payload and Batch IteratorCalendar Invite Update.
  6. In Calendar Invite Update, set Event ID to {{$json.id}} and add attendees with {{ $("Gmail Inbox Trigger").item.json.from.value[0].address }}; set Send Updates to all.
  7. Credential Required: Connect your googleCalendarOAuth2Api credentials to Calendar Invite Update.
  8. In Prepare Invite Payload, keep the provided JavaScript to build slotTimes and sender details from Gmail Inbox Trigger.
  9. In Inquiry Meeting Reply, set Subject to Re: {{ $json.originalSub }} and To Email to {{ $json.senderName }} <{{ $json.senderEmail }}>, and keep From Email as [YOUR_EMAIL].
  10. Credential Required: Connect your smtp credentials to Inquiry Meeting Reply.

Prepare Invite PayloadInquiry Meeting Reply continues the meeting reply flow after calendar processing.

Step 5: Configure Acknowledgement Replies and Gmail Actions

Project updates and feedback emails receive tailored responses, and processed messages are marked and labeled.

  1. In Project Update Reply, set Subject to Re: {{ $('Gmail Inbox Trigger').item.json.subject }}, To Email to {{ $json.from.value[0].name }} <{{ $json.from.value[0].address }}>, and From Email to [YOUR_EMAIL].
  2. Credential Required: Connect your smtp credentials to Project Update Reply.
  3. In Feedback Acknowledgement, set Subject to Re: {{ $('Gmail Inbox Trigger').item.json.Subject }}, To Email to {{ $json.from.value[0].name }} <{{ $json.from.value[0].address }}>, and From Email to [YOUR_EMAIL].
  4. Credential Required: Connect your smtp credentials to Feedback Acknowledgement.
  5. Connect Project Update Reply, Feedback Acknowledgement, and Inquiry Meeting Reply to Flag Message Read.
  6. In Flag Message Read, set Operation to markAsRead and Message ID to {{ $('Gmail Inbox Trigger').all()[0].json.id }}.
  7. Credential Required: Connect your gmailOAuth2 credentials to Flag Message Read.
  8. Connect Flag Message Read to Attach Update Label and set Operation to addLabels, Label IDs to [YOUR_ID], and Message ID to {{ $('Gmail Inbox Trigger').all()[0].json.id }}.
  9. Credential Required: Connect your gmailOAuth2 credentials to Attach Update Label.

⚠️ Common Pitfall: Feedback Acknowledgement uses {{ $('Gmail Inbox Trigger').item.json.Subject }} (capital S). If your Gmail data uses subject (lowercase), update this expression to avoid blank subjects.

Step 6: Test and Activate Your Workflow

Validate the routing, calendar invite generation, and reply templates before going live.

  1. Click Execute Workflow and send test emails that match each category (Questions, Project Update, Feedback).
  2. Confirm that Inquiry Meeting Reply sends a message listing three slots and that Calendar Invite Update adds the sender as an attendee.
  3. Verify that Project Update Reply and Feedback Acknowledgement send the correct HTML responses.
  4. Check that Flag Message Read marks the email as read and Attach Update Label adds the label [YOUR_ID].
  5. When satisfied, toggle the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • Gmail credentials can expire or need specific permissions. If things break, check the n8n Credentials screen and your Google account security/app access first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Quick Answers

What’s the setup time for this Gmail Calendar automation?

About 30 minutes if your Google accounts are ready.

Is coding required for this Gmail Calendar automation?

No. You’ll connect Google credentials and adjust prompts and rules in n8n.

Is n8n free to use for this Gmail Calendar automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Google Gemini usage, which is typically small per email but depends on your prompt size and volume.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this Gmail Calendar automation workflow for different use cases?

Yes, and you should. Most teams start by changing the “Reply Eligibility Check” rules, then rewriting the prompts used by the Gemini chat node so replies match their tone. You can also adjust the categories in the “Email Intent Sorter” to fit your inbox (like “billing,” “support,” or “partnership”). On the scheduling side, swap which calendar gets queried in “Calendar Slot Lookup,” or change what fields are written into the event in the “Prepare Invite Payload” step.

Why is my Gmail connection failing in this workflow?

Usually it’s expired or revoked Google OAuth access. Reconnect your Gmail credential in n8n, then confirm the Gmail trigger has permission to read the mailbox and the send node can send from the intended address. If it only fails for some threads, check label permissions and whether the message lives in a restricted mailbox (like another user’s shared inbox). Also watch for rate limits if you’re processing a backlog.

What volume can this Gmail Calendar automation workflow process?

For most small teams, hundreds of emails per day is fine, as long as you’re not trying to process years of history at once.

Is this Gmail Calendar automation better than using Zapier or Make?

Often, yes, because this workflow isn’t just “if email then reply.” It has multiple decision gates (internal sender checks, eligibility rules), intent classification, and a batching loop for calendar slot handling. n8n is built for that kind of branching without turning your automation into a fragile chain of single-purpose zaps. Zapier or Make can still work if you only want a simple draft or a notification, and you don’t need the calendar loop. If you’re unsure, Talk to an automation expert and describe your inbox volume and risk tolerance for auto-sending.

Once this is running, your inbox stops being a to-do list and becomes a system. You’ll feel the difference the first week.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal