Automated Calendar Scheduling from Gmail Emails - n8n Workflow

Use this powerful n8n workflow to automatically create Google Calendar events from incoming Gmail emails. Perfect for busy professionals using n8n templates.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Busy professionals and executives who receive numerous scheduling requests via email.
Users looking for practical n8n templates to streamline administrative tasks.
Anyone needing a reliable n8n workflow solution to eliminate manual data entry between Gmail and Google Calendar.
Developers exploring custom scripting using the Code n8n node for data manipulation.

Overview

This essential n8n workflow addresses the inefficiency of manually transcribing scheduling details from emails into a calendar. By implementing this specific n8n workflow, users leverage the power of the Gmail n8n trigger and Google Calendar n8n node to monitor their inbox continuously. When a qualifying email arrives (identified by keywords like "Meeting" or "Appointment"), the n8n node logic extracts relevant date and time information.

This provides immense value by ensuring that your calendar is updated instantly and accurately, turning a manual chore into a seamless, automatic process using this robust n8n template. It serves as an excellent foundational example for building complex, keyword-driven automations within n8n.

How it Works


  1. Trigger Initiation: The process begins with the Watch for New Emails n8n trigger, which constantly monitors your configured Gmail inbox for new messages.

  2. Keyword Filtering: The flow proceeds to the Check for Keywords n8n node. This crucial step uses an If condition to filter out irrelevant mail, allowing only emails containing specific keywords (e.g., 'Meeting' in the subject or 'Appointment' in the body) to proceed through the n8n workflow.

  3. Data Extraction: The Extract Event Details n8n node utilizes custom JavaScript code to perform basic regex pattern matching. It attempts to pull out date and time information from the email body, preparing the necessary variables for the final Google Calendar action. This flexible n8n workflow component can be customized for more complex extraction needs.

  4. Calendar Creation: Finally, the extracted data is passed to the Create Event n8n node (a Google Calendar n8n node). This node immediately schedules a new calendar entry using the extracted title, date, and time, completing the automation defined in this effective n8n template.

Installation Guide


  1. Import the n8n Workflow: Import the provided JSON code into your n8n instance.

  2. Configure Gmail Credentials: Click on the Watch for New Emails n8n trigger node and connect your Gmail OAuth2 credentials.

  3. Configure Google Calendar Credentials: Click on the Create Event n8n node and connect your Google Calendar OAuth2 credentials.

  4. Customize Keywords: In the Check for Keywords n8n node, review and customize the subject and body keywords (currently set to 'Meeting' and 'Appointment') to match your scheduling needs.

  5. Specify Calendar ID: In the Create Event n8n node, ensure you replace the placeholder YOURCALENDARID with the actual ID of the Google Calendar where you wish to schedule events.

  6. Activate: Once all connections are set up and customized, save the n8n workflow and set the toggle to 'Active'.

Node Details

Watch for New Emails (Gmail n8n trigger): Function: The primary n8n trigger, constantly polling the inbox for new emails. Key Configuration: Set to poll every minute. Requires Gmail OAuth2 credentials.
Check for Keywords (If n8n node): Function: Filters emails based on predefined keywords. Key Configuration: Uses an OR combinator to check if the email subject contains 'Meeting' OR the email body contains 'Appointment'.
Extract Event Details (Code n8n node): Function: A custom JavaScript n8n node that uses basic regex to parse date and time from the email body. This is a crucial n8n workflow component for transforming raw email data. Key Configuration: Defines date and time variables, defaulting to 'today' and '9:00am' if regex fails, making the n8n node robust.
Create Event (Google Calendar n8n node): Function: Creates the final event entry on the specified Google Calendar using the dynamic data extracted in the previous n8n node. Key Configuration: Requires a specified Calendar ID. Uses dynamic expressions for start, end, and summary derived from the custom Code n8n node output.

Related n8n Workflows

Free

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by

Simplifying Business with Smart Automation. I create and share user-friendly, highly efficient n8n workflow templates for SMEs, focusing on digital marketing, sales, and operational excellence. Get ready to automate, innovate, and elevate your business. Connect me on Linkedin for custom solutions.

Featured*