Description
π Google Calendar Assistant with GPT-4o
Your personal AI agent to manage your calendar with natural language β powered by GPT-4o
π§ What Problem Does It Solve?
Manually handling calendar events is repetitive, time-consuming, and error-prone. This smart AI workflow solves that by allowing users to:
β€ Create events in Google Calendar
β€ Retrieve events using plain-language queries
β€ Automatically understand time phrases like βnext Mondayβ or βthis weekendβ
βοΈ How It Works
πΉ Chat message triggers the workflow
πΉ User message is processed by GPT-4o
πΉ GPT-4o decides whether to create or retrieve events
πΉ Two built-in tools handle actions:
ββπ Get Events β Fetches events in a specified date range
ββπ οΈ Create Events β Adds new calendar entries with title, time, and description
πΉ The agent confirms inputs with the user before proceeding
πΉ Short-term memory keeps recent context (last 5 messages)
β¨ Features at a Glance
β
Conversational interface for managing Google Calendar
β
Understands vague language like βtomorrowβ or βnext Fridayβ
β
Auto-fills and confirms event details
β
Uses dynamic system prompt with the current date
β
Works out of the box with GPT-4o and Google Calendar
β
Easy to expand for more use cases (e.g. invite attendees)
π¦ Prerequisites
π Google Calendar account (with OAuth credentials)
π OpenAI GPT-4o API key
π n8n workflow builder access
π§ Basic understanding of AI prompt structure (provided in template)
π Setup Guide
π§© Connect Google Calendar and OpenAI credentials in the workflow
ποΈ Follow the sticky note guidance inside the n8n canvas
π Sample messages to try:
ββ"Schedule a meeting for Friday at 2 PM"
ββ"Whatβs on my calendar next week?"
π οΈ Customize prompts, calendar IDs, and reminder options as needed
π§ Smart System Prompt Behavior
π¬ Handles vague or generic inputs like βHiβ by introducing its abilities
π
Infers and formats dates using DateTime.local()
π Prompts user for missing fields (start, end, title, etc.)
π§Ύ Confirms details before taking action
π Adapts to natural language for clarity and accuracy
π Integrations Used
π Google Calendar
π OpenAI GPT-4o
π n8n Chat Trigger / Webhooks / Memory nodes
π Optional: Streamlit, Slack, Discord for front-end