AutomationMart
Home/Browse/Extract email tasks with Gmail, ChatGPT-4o and Supabase
n8n

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

n8nn8n8 modulesv1.0
codegmailhttpRequestifopenAischeduleTriggersplitInBatchessupabase

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. --- ✅ What It Does 1. Triggers on a schedule to check for unread emails in your Gmail inbox. 2. Loops through each email individually using SplitInBatches. 3. Checks Supabase to see if the email has already been processed. 4. If it's a new email:

At a glance

Extract email tasks with Gmail, ChatGPT-4o and Supabase is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects code, gmail, httpRequest, if. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
code, gmail, httpRequest, if, openAi, scheduleTrigger
Modules
8
Price
Free
Version
v1.0
Extract email tasks with Gmail, ChatGPT-4o and Supabase workflow diagram

About this workflow

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. --- ✅ What It Does 1. Triggers on a schedule to check for unread emails in your Gmail inbox. 2. Loops through each email individually using SplitInBatches. 3. Checks Supabase to see if the email has already been processed. 4. If it's a new email: - Formats the email content into a structured GPT prompt - Calls ChatGPT-4o to extract structured task data - Inserts the result into your emails table in Supabase --- 🧰 Prerequisites Before using this workflow, you must have: - An active n8n Cloud or self-hosted instance - A connected Gmail account with OAuth credentials in n8n - A Supabase project with an emails table and: - An OpenAI API key with access to GPT-4o or GPT-3.5-turbo --- 🔐 Required Credentials | Name | Type | Description | |-----------------|------------|-----------------------------------| | Gmail OAuth | Gmail | To pull unread messages | | OpenAI API Key | OpenAI | To generate task summaries | | Supabase API | HTTP | For inserting rows via REST API | --- 🔁 Environment Variables or Replacements - SupabaseTaskManagementURI → e.g., - SupabaseTaskManagementANONKEY → Your Supabase anon key These are used in the HTTP request to Supabase. --- ⏰ Scheduling / Trigger - Triggered using a Schedule node - Default: every X minutes (adjust to your preference) - Uses a Gmail API filter: unread emails with label = INBOX --- 🧠 Intended Use Case > Designed for productivity-minded professionals who want to extract, summarize, and store actionable tasks from incoming email — without processing the same email twice or wasting GPT API credits. This is part of a larger system integrating GPT, calendar scheduling, and optional task platforms (like ClickUp). --- 📦 Output (Stored in Supabase) Each processed email includes: - emailid - subject - sender - receivedat - body (email snippet) - gptsummary (structured task) - requiresdeepwork (from GPT logic) - deleted (initially false)

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Generate AI viral videos with Seedance and upload to TikTok, YouTube & Instagram

Generate AI videos with Seedance & Blotato, upload to TikTok, YouTube & Instagram Who is this for? This template is ideal for creators, content marketers, social media managers, and AI enthusiasts who want to automate the production of short-form, visually captivating videos for platforms like TikTok, YouTube Shorts, and Instagram Reels — all without manual editing or publishing. What problem is this workflow solving?

Free

Process customer feedback with OpenAI, PDF reports, Gmail & Slack notifications

AI-Powered Feedback Automation with PDF Reports & Team Notifications Transform customer feedback into actionable insights automatically with AI analysis, professional PDF reports, personalized emails, and real-time team notifications. Table of Contents - Overview - Features - Demo - Prerequisites - Quick Start - Configuration - Usage - Troubleshooting - License --- Overview AI-Powered Feedback Automation is a complete, production-ready n8n workflow that automatically processes customer feedback

Free

Convert meeting recordings to notes & action items with AssemblyAI, GPT-4 & Sheets

This workflow automates the process of turning meeting recordings into structured notes and actionable tasks using AssemblyAI and Google Sheets. It is ideal for teams who want to save time on manual note-taking and ensure that action items from meetings are never missed. What it does - Receives a meeting recording (audio file) via webhook - Transcribes the audio using AssemblyAI - Uses AI to generate structured meeting notes and extract action items (tasks) - Logs meeting details and action

Free

Notion AI summary & tags

What This Workflow Does: This n8n workflow automatically generates an AI-powered summary and relevant tags whenever a new row is added to your Notion database. Simply save any URL to your Notion database using the [Notion Web Clipper] Chrome extension or [Save to Notion]—on both desktop and mobile. This keeps all your saved content organized in one place instead of scattered across different platforms. How it works: 1. The workflow is triggered when a new row is added to your Notion database (

Free

Automate multi-step onboarding with Google Sheets, Forms and Gmail notifications

This n8n workflow enables teams to automate and standardize multi-step onboarding or messaging workflows using Google Sheets, Forms, Gmail, and dynamic logic powered by Code and Switch nodes. It ensures the right email is sent at the right step, tracks progress in Google Sheets, and handles errors or escalations. --- 🧑‍💼 Who is this for? - HR and PeopleOps teams managing candidate or employee onboarding processes - Customer success or onboarding teams handling structured, step-based journeys

Free

E-commerce product fine-tuning with Bright Data and OpenAI

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. This workflow automates the process of scraping product data from e-commerce websites and using it to fine-tune a custom OpenAI GPT model for generating high-quality marketing copy and product descriptions. Main Use Cases Fine-tune OpenAI models with real product data from hundreds of supported e-commerce websites for marketing content generation. Create custom AI models specialized in writing

Free

Generate complete business plans with customizable AI models and specialized agents

Who is this for? - Entrepreneurs and startup founders preparing for investors - Business consultants drafting complete client plans - Strategy teams building long-term business models - Accelerators, incubators, or pitch trainers ❓ What problem does this workflow solve? Writing a full business plan takes days of work, multiple tools, and often gets stuck in messy docs or slides. This template automates every major section, generating a clean, detailed, and professional business plan with AI

Free

Customer feedback analysis with AI, QuickChart & HTML report generator

Generative Customer Insights from Feedback Data using AI Agents & Charts This workflow automates the analysis of customer feedback or social media data from Google Sheets using DeepSeek LLM, transforming raw text into structured semantic insights. The workflow also generates data visualizations and produces a final HTML report, ready for email delivery. --- Table of Contents - What This Workflow Does - Pre-conditions and Requirements - Step-by-Step Workflow Explanation - Example Results - Custom

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free