Triage emails and draft Gmail replies using Gemini and Google Calendar
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Gmail events. Along the way it connects Gmail, Google Calendar and Google Gemini Chat Model.
How it runs
Trigger: On Gmail events.
- Get Current Date (Code): runs custom JavaScript code
- Fetch Email Details (Gmail): get
- Remove Label from Thread (Gmail): remove labels (thread)
- Draft and Label Agent (AI Agent): runs an AI agent, with model: Gemini Chat Model; 2 tools (Gmail Thread Tool, Google Calendar Tool); output parser: Structured Output Parser
- Route by Draft Type (Switch): routes items into 6 branches
- Build HTML Signature (Code): runs custom JavaScript code
- Send Response Email (Gmail): work with label
- Send Draft Email (Gmail): work with draft
- Filter: keeps only the items that match a condition
- Add Label to Email (Gmail): add labels
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When New Email Arrives).
Nodes used (10)
- Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - Filter
n8n-nodes-base.filter - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Gmail Tool
n8n-nodes-base.gmailTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Who it's for This workflow is for professionals and small business owners who receive a high volume of emails and want to automate triage, labeling, and draft reply generation — without losing the human touch before sending. How it works 1. A Gmail trigger…