n8n

How to Automate Gmail Scheduling with Google Calendar?

Turn appointment requests in your inbox into booked time without long back and forth. The system watches Gmail for unread messages, checks for meeting intent, and replies with clear time options from your Google Calendar. It fits teams that handle demos, client calls, hiring screens, or service bookings.

Here is how it works. Gmail checks for new unread emails every minute. A language model reads the subject and snippet to decide if the message is asking to schedule a meeting; other messages get ignored by design. If it is a request, an agent looks at your Google Calendar for the next month, finds open time slots, and writes a friendly reply that suggests exact times. The reply is sent in the same thread and the email is marked as read to keep your inbox organized.

Setup is simple. Connect Gmail, Google Calendar, and OpenAI, then select the correct calendar and adjust the date window to match your work hours. Expect to cut manual scheduling from many minutes per email to seconds and convert more requests to confirmed times. This helps solo operators, sales reps, coordinators, and admin teams stay on top of inbound scheduling without adding headcount.

What are the key features?

  • Gmail trigger checks unread emails every minute with filters for unread only.
  • OpenAI classifier decides if an email is asking to schedule a meeting.
  • Agent reads sender, subject, and snippet to draft a clear, polite reply.
  • Google Calendar tool scans from yesterday to one month ahead to find free slots.
  • Reply is posted in the same Gmail thread to keep context.
  • Original message is marked as read after the reply is sent.
  • Simple settings to choose the right calendar and adjust the time window.

What are the benefits?

  • Reduce manual work from 15 minutes per email to under 1 minute
  • Automate up to 80 percent of appointment replies
  • Cut back and forth messages by 60 percent with exact time options
  • Keep the inbox tidy by auto marking handled emails as read
  • Connect Gmail, Google Calendar, and OpenAI in one flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, Google Calendar and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Open the Gmail Trigger node. In the credential field, click Create new credential and follow the on screen steps to connect your Gmail account. Allow read, send, and modify mail permissions.
  4. In the Gmail Trigger node, keep the unread filter and every minute polling, or adjust the schedule to match your needs. Save the node.
  5. Open the OpenAI Chat Model nodes. In the credential field, click Create new credential, paste your OpenAI API key from your OpenAI account API page, and save. Keep the model as gpt 4o mini or choose another available model.
  6. Open the Google Calendar node. Click Create new credential, connect your Google account, and grant calendar permissions. Select the correct calendar from the drop down instead of the placeholder value.
  7. Confirm the Agent node is connected to the Google Calendar tool. The tool connection should show one calendar tool linked to the agent.
  8. Review the Agent system message. Update tone, working hours, and meeting length so the reply fits your style and availability policy.
  9. Adjust the time window in the Google Calendar node if needed. For example, extend timeMax to two months or narrow it to a few weeks.
  10. Activate the workflow. Send a test email to your Gmail with a subject like Can we meet tomorrow and a short request. Wait for the next poll and confirm a reply is sent in the same thread and the original email is marked as read.
  11. If no reply arrives, open the n8n execution view. Check that the classifier labeled the message as an appointment, verify the Agent produced text, and confirm Gmail credentials have send permission.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

Google Calendar

Sign up

Free: $0; all Google Calendar API usage is at no additional cost; quota limits apply (no charges for overages).

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.