Templates / Automate email & calendar management with Gmail, Google Calendar & GPT-4o AI

Automate email & calendar management with Gmail, Google Calendar & GPT-4o AI

Needs changes

by AOE Agent Lab ✓ · 22,155 views · created 2025-05-24 · Personal Productivity, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 32 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects OpenAI Chat Model, Gmail, Google Calendar and Embeddings OpenAI and 2 more.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).

  1. Gmail: work with thread
  2. Classify Emails (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  3. Gmail: get (thread)
  4. Gmail: add labels
  5. Gmail: add labels
  6. EMail Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 9 tools (Delete an email, Get last emails, Get calendar events, Add an calender entry…); memory: Window Buffer Memory
  7. Code: runs custom JavaScript code
  8. Write - Threads History Vector Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  9. Read- Threads History Vector Store (Simple Vector Store): searches the Simple vector store, with embeddings: Embeddings OpenAI

Services it uses

OpenAI Chat ModelGmailGoogle CalendarEmbeddings OpenAIVector Store Question AnswerDate & Time

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in EMail Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
EMail Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (19)

From the author

Boost your productivity with this AI-powered email and calendar assistant: This AI-powered template has 2 workflows. It manages your Gmail inbox and Google Calendar, classifies emails with custom labels, and suggests replies and meeting times — all fully…

Excerpt from AOE Agent Lab's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.