Triage inbox emails and schedule follow-up reminders with OpenAI, Gmail and Sheets
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs on Gmail events (plus 3 other triggers). Along the way it connects Gmail and Google Sheets. It also calls api.openai.com over HTTP.
How it runs
Trigger: On Gmail events (plus 3 other triggers).
- Build triage request (Code): runs custom JavaScript code
- Sample email (test) (Code): runs custom JavaScript code
- Read follow-up log (Google Sheets): get many
- AI triage + draft (HTTP Request): calls api.openai.com (POST)
- Find due follow-ups (Code): runs custom JavaScript code
- Read triage result (Code): runs custom JavaScript code
- Build reminder email (Code): runs custom JavaScript code
- Log every email (Google Sheets): append
- Email me the digest (Gmail): send (message)
- Needs a reply? (If): checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.openai.com
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) (New email).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow triages new Gmail emails with OpenAI, logs each message to Google Sheets, creates Gmail drafts only for emails that need a reply, and sends you a daily Gmail digest of overdue follow-ups based on the sheet. How it works 1.…