Automate email & calendar management with Gmail, Google Calendar & GPT-4o AI
Needs changesWhat 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).
- Gmail: work with thread
- Classify Emails (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Gmail: get (thread)
- Gmail: add labels
- Gmail: add labels
- 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
- Code: runs custom JavaScript code
- Write - Threads History Vector Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Read- Threads History Vector Store (Simple Vector Store): searches the Simple vector store, with embeddings: Embeddings OpenAI
Services it uses
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.0 | Replace 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)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - No Operation, do nothing
n8n-nodes-base.noOp - Gmail Tool
n8n-nodes-base.gmailTool - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Manual Trigger
n8n-nodes-base.manualTrigger - Gmail
n8n-nodes-base.gmail - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Token Splitter
@n8n/n8n-nodes-langchain.textSplitterTokenSplitter - Code
n8n-nodes-base.code - Gmail Trigger
n8n-nodes-base.gmailTrigger - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - AI Agent
@n8n/n8n-nodes-langchain.agent - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Date Time Tool
n8n-nodes-base.dateTimeTool
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…