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
Automate email scheduling with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

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.


Automate email scheduling with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.