Templates / Handle GDPR access and erasure emails with Gmail, GPT-4o, Supabase and Airtable

Handle GDPR access and erasure emails with Gmail, GPT-4o, Supabase and Airtable

Needs changes

by Kumar SmartFlow Craft ✓ · 24 views · created 2026-03-18 · Document Extraction, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Supabase and Airtable and 1 more.

How it runs

Trigger: On Gmail events.

  1. Classify DSR Request (AI Agent): runs an AI agent, with model: OpenAI — Classify; output parser: DSR Classification Schema
  2. Query Supabase (Supabase): get many
  3. Consolidate DB Results (Code): runs custom JavaScript code
  4. Query Airtable CRM (Airtable): search
  5. Consolidate CRM Results (Code): runs custom JavaScript code
  6. Compile Data Report (AI Agent): runs an AI agent, with model: OpenAI — Compile; output parser: Report Schema
  7. Access or Erasure? (If): checks a condition and branches into true / false
  8. Send Access Report (Gmail): uses Gmail
  9. Delete from Supabase (Supabase): delete
  10. Merge: merges the data from its input branches

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

Services it uses

GmailOpenAI Chat ModelSupabaseAirtableGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Classify DSR Request (v1.8), Compile Data Report (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Classify DSR Request (v1.8), Compile Data Report (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

🚀 How it works Handles GDPR Article 15 (access) and Article 17 (erasure) requests end-to-end — from inbound email to legally-compliant response — with zero manual intervention and a full audit trail. - 📬 Monitors Gmail inbox for incoming data subject…

Excerpt from Kumar SmartFlow Craft'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.