Templates / Triage emails and draft Gmail replies using Gemini and Google Calendar

Triage emails and draft Gmail replies using Gemini and Google Calendar

Ready for 3.0

by Allan Vaccarizi ✓ · 6,259 views · created 2026-04-28 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Get Current Date (Code): runs custom JavaScript code
  2. Fetch Email Details (Gmail): get
  3. Remove Label from Thread (Gmail): remove labels (thread)
  4. 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
  5. Route by Draft Type (Switch): routes items into 6 branches
  6. Build HTML Signature (Code): runs custom JavaScript code
  7. Send Response Email (Gmail): work with label
  8. Send Draft Email (Gmail): work with draft
  9. Filter: keeps only the items that match a condition
  10. Add Label to Email (Gmail): add labels

…plus 1 more step. See the full node list below.

Services it uses

GmailGoogle CalendarGoogle Gemini Chat Model

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)

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…

Excerpt from Allan Vaccarizi'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.