Templates / Triage Gmail inbox emails and draft replies with OpenAI and Google Sheets

Triage Gmail inbox emails and draft replies with OpenAI and Google Sheets

Ready for 3.0

by FLOW AI Automation ✓ · 15 views · created 2026-10-06 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 20 nodes and runs on a schedule (every day). Along the way it connects Gmail and Google Sheets.

How it runs

Trigger: On a schedule (every day).

  1. Setup Configuration (Code): runs custom JavaScript code
  2. Get Gmail Labels (Gmail): uses Gmail
  3. Find Missing Labels (Code): runs custom JavaScript code
  4. Any Labels Missing? (If): checks a condition and branches into true / false
  5. Create Gmail Label (Gmail): uses Gmail
  6. Reload Gmail Labels (Gmail): uses Gmail
  7. Resolve Label IDs (Code): runs custom JavaScript code
  8. Get Untriaged Emails (Gmail): uses Gmail
  9. Prepare Email Context (Code): runs custom JavaScript code
  10. Triage Email with OpenAI (HTTP Request): calls an HTTP API

…plus 9 more steps. See the full node list below.

Services it uses

GmailGoogle Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (6)

From the author

Quick overview This workflow runs every 10 minutes to triage new Gmail inbox emails with OpenAI, apply Gmail labels, create reply drafts for messages that need a response, optionally send urgent alert emails, and log the triage results to Google Sheets. How…

Excerpt from FLOW AI Automation'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.