Automate Email Appointment Scheduling Using n8n and OpenAI

Discover how this n8n workflow automates reading appointment requests from Gmail, checks calendar availability, and sends tailored replies, saving hours weekly and avoiding missed meetings.
gmailTrigger
lmChatOpenAi
googleCalendar
+11
Workflow Identifier: 1366
NODES in Use: gmailTrigger, lmChatOpenAi, chainLlm, outputParserStructured, if, googleCalendar, filter, set, itemLists, agent, gmail, executeWorkflowTrigger, toolWorkflow, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow watches unread Gmail messages for meeting requests.
It uses GPT-4 to check if an email asks for an appointment.
Then, it gets Google Calendar events for the next month.
It finds free times between meetings with 15 minutes buffer.
Finally, it writes and sends a meeting proposal reply and marks the email as read.
This saves many hours and prevents double bookings.


Who Should Use This Workflow

Anyone who gets many meeting requests by email.
This is useful if manually checking calendar availability is slow or error-prone.
It suits executive assistants, managers, or busy professionals.
You need Gmail and Google Calendar with OAuth2 access.
You must have OpenAI API keys for GPT-4.


Tools / Services Used

  • Gmail: To watch unread emails and send replies.
  • Google Calendar: To get upcoming confirmed events.
  • OpenAI GPT-4: To read email text and decide if it is about a meeting.
  • n8n Automation Platform: To run and connect all nodes.

Beginner Step-by-Step: How to Use This Workflow in n8n

1. Import Workflow

  1. Download the workflow using the “Download” button on this page.
  2. Inside the n8n editor, use “Import from File” to load the workflow.

2. Configure Credentials

  1. Add Gmail OAuth2 credentials.
  2. Add Google Calendar OAuth2 credentials.
  3. Add OpenAI API Key with GPT-4 access.

3. Update Settings

  1. Check Gmail node inbox and filters match your email account.
  2. Set the correct Google Calendar ID if different.
  3. Review prompts for email classification and responses if needed.

4. Test Workflow

  1. Send test appointment emails to your inbox.
  2. Watch n8n execute the nodes.
  3. Make sure replies send and original emails marked read.

5. Go Live

  1. Activate the workflow by toggling the active switch.
  2. Monitor logs in n8n for errors or missed emails.

If hosting n8n yourself, consider self-host n8n for better control.


Inputs, Processing Steps, and Outputs

Inputs

  • Unread Gmail emails with potential meeting requests.
  • Google Calendar events from yesterday to 1 month ahead.

Processing Steps

  • Use GPT-4 to classify emails as meeting requests or not.
  • Parse and filter calendar events that are confirmed and timed.
  • Sort upcoming events chronologically.
  • Prepare a JSON summary of calendar availability.
  • Use AI agent to suggest meeting slots with 15-minute gaps.
  • Write a personalized email reply proposing times.
  • Mark the original email as read.

Outputs

  • Email reply sent proposing meeting times.
  • Updated Gmail email status to read.

Customizations

  • You can change the calendar look-ahead window by adjusting timeMin and timeMax in the Google Calendar node.
  • Modify the AI “temperature” setting to get more creative or precise email replies.
  • Add sender filters in the Gmail Trigger node to limit which emails start the workflow.
  • Change the meeting buffer (currently 15 minutes) by editing the Agent node’s system prompt.
  • Check multiple Google Calendars by adding more Calendar nodes and combining their events.

Troubleshooting Common Problems

  • Gmail Trigger does not start: Check if Gmail OAuth is expired or missing permission for reading email.
  • OpenAI returns errors: Review prompt formatting and confirm API key limits are not exceeded.
  • Google Calendar fetch empty: Confirm calendar ID is correct and OAuth token is valid.

Pre-Production Checklist

  • Ensure Gmail Trigger monitors correct inbox and unread emails.
  • Test email classification succeeds with sample emails.
  • Confirm calendar events are fetched accurately.
  • Verify reply emails are sent and formatted well.
  • Check if OpenAI API keys have enough quota.
  • Back up workflow and credentials before going live.

Summary and Results

✓ Saves you multiple hours weekly by automating email reading and calendar checks.
✓ Avoids double bookings by applying a buffer between meetings.
✓ Sends quick, personalized replies proposing meeting times.
✓ Keeps email inbox clean by marking processed emails as read.
✓ Lets you focus on work, not scheduling.


Frequently Asked Questions

The workflow is built for Google Calendar, but n8n allows adapting it to use Outlook Calendar with similar logic.
Each email classification and reply generation uses API calls, so usage depends on email volume and prompt size.
n8n uses OAuth2 for Gmail and Calendar access, keeping data secure within your control. Always protect API keys safely.
Reconnect Gmail OAuth credentials in n8n and check that permissions include reading emails.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free