Create Google Calendar Events from Natural Language Chat using GPT
What It Does
This workflow lets users create Google Calendar events through natural chat messages — no forms, no clicking around, just type like you're talking to a friend.
For example, you can say:
“Lunch with John tomorrow at 12:30” and it’ll auto-create a calendar event with the correct title, time, and duration.
How It Works
Trigger: Chat Message Received The flow starts with a chat interface node (When chat message received) that listens for incoming user messages like:
“Book dentist next Wed 10am”
“Schedule Zoom call with Jane Friday 3–4pm”
AI Agent with Scheduling Instructions The message is handed off to a Langchain-powered AI Agent that:
Parses the message
Resolves relative time (like "next Tuesday") into actual ISO timestamps
Generates a title (summary) if not provided by the user
Ensures all required fields are correctly filled
Handles vague messages by asking a single clarifying question
LLM (OpenAI) The agent is powered by gpt-4o-mini (or your preferred OpenAI model). You can customize this or swap it out.
Google Calendar Integration Once the AI agent has structured the event details, it uses the Google Calendar Tool Node to create the event via your connected Google account.
(Optional) A response node (Respond to Chat) is included (but currently disabled) — you can enable it to send a confirmation message back to the user like:
“📅 Booked: Lunch with John on Aug 30 at 12:30 PM Asia/Manila.”
Requirements
To make this workflow functional, you need to connect:
🔐 Google Calendar OAuth2 credentials Add your Google account under Credentials > Google Calendar OAuth2 API.
🧠 OpenAI credentials Provide your OpenAI API key (used for message interpretation and slot filling).
Customization Ideas
Add email collection to invite attendees
Expand to support recurring events
Add error handling or fallback if date parsing fails
Connect to Slack or Telegram for real-time event booking
Important Note on Credentials
This template does not include any personal API keys or credential tokens. You’ll need to connect your own Google and OpenAI credentials after import.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🤖 Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments