Triage Gmail emails, draft AI replies, and log to Google Sheets with GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI and Google Sheets.
How it runs
Trigger: On Gmail events.
- Extract Email Details (Edit Fields (Set)): sets or maps fields
- AI Determines Urgency (OpenAI): uses OpenAI
- Assign Urgency Label (Edit Fields (Set)): sets or maps fields
- Check Email Urgency (If): checks a condition and branches into true / false
- Draft Urgent Reply with AI (OpenAI): uses OpenAI
- Log Non-Urgent Email to Sheets (Google Sheets): append
- Create Draft in Gmail (Gmail): create
- Log Urgent Email to Sheets (Google Sheets): append
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 New Email Arrives).
Nodes used (6)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview Automatically triage your Gmail inbox using OpenAI GPT-4o. Each new email is classified as Urgent or Not Urgent. Urgent emails get an AI-drafted reply saved to Gmail Drafts. All emails are logged to Google Sheets for tracking. How it works 1.…