Templates / Extract email tasks with Gmail, ChatGPT-4o and Supabase

Extract email tasks with Gmail, ChatGPT-4o and Supabase

Ready for 3.0

by Paul Taylor · 1,283 views · created 2025-06-30 · Personal Productivity, 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 8 nodes and runs on a schedule (every minute). Along the way it connects OpenAI, Gmail and Supabase.

How it runs

Trigger: On a schedule (every minute).

  1. Get Unread Emails from Inbox (Gmail): get many
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Get Email from Database (Supabase): get
  4. Check if Email in Database (If): checks a condition and branches into true / false
  5. Prepare ChatGPT Prompt (Code): runs custom JavaScript code
  6. Extract Task Detail from Email (OpenAI): uses OpenAI
  7. Insert Email Detail to Supabase (HTTP Request): calls an HTTP API (POST)

Services it uses

OpenAIGmailSupabase

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.

Nodes used (8)

From the author

📩 Gmail → GPT → Supabase | Task Extractor This n8n workflow automates the extraction of actionable tasks from unread Gmail messages using OpenAI's GPT API, stores the resulting task metadata in Supabase, and avoids re-processing previously handled emails.…

Excerpt from Paul Taylor'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.