Triage Gmail and draft replies with GPT-5 Mini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 8 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Google Sheets.
How it runs
Trigger: On Gmail events.
- Set User Email Preferences (Edit Fields (Set)): sets 4 fields: yourName, yourRole, categories…
- Email Triage Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-5 Mini; output parser: Parse Triage Results
- Append to Triage Dashboard (Google Sheets): append or update (sheet)
- Check Reply Necessity (If): checks a condition and branches into true / false
- Draft Email Reply in Gmail (Gmail): create (draft)
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 Gmail Email Received).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow watches your Gmail inbox for new unread emails, uses OpenAI (GPT-5 Mini) to classify each message by priority and category, logs the triage results to Google Sheets, and creates a Gmail draft reply only when the email needs a…