๐ฌ Handle GDPR access and erasure emails with Gmail, GPT-4o, Supabase and Airtable
โก 25 views ยท ๐ฌ Document Extraction & Analysis
Description
๐ 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 requests
- ๐ค AI Agent classifies the request (access or erasure), extracts the requester email and data subject email with structured JSON output
- ๐๏ธ Queries Supabase for all personal data records matching the subject
- ๐ Queries Airtable CRM for matching contact records
- ๐ Second AI Agent compiles all found data into a GDPR-compliant HTML report
- โ๏ธ Access requests โ sends a full data report to the requester
- ๐๏ธ Erasure requests โ deletes records from both Supabase and Airtable, then sends a deletion confirmation
- ๐ Logs every request to Google Sheets with timestamp for your audit trail
๐ ๏ธ Set up steps
Estimated setup time: ~20 minutes
- Gmail Trigger โ connect Gmail OAuth2; point it at your DSR inbox
- OpenAI โ connect OpenAI API credential (used by both AI Agent nodes)
- Supabase โ connect Supabase API credential; update the table name from
usersto match your schema - Airtable โ connect Airtable Personal Access Token; replace
YOUR_BASE_IDandYOUR_TABLE_NAME - Google Sheets โ connect Google Sheets OAuth2; replace
YOUR_AUDIT_SHEET_ID; create a tab namedDSR Audit Log - Follow the sticky notes inside the workflow for per-node guidance
๐ Prerequisites
- Gmail account receiving GDPR requests
- OpenAI API key (GPT-4o)
- Supabase project with a users/contacts table
- Airtable base with a Contacts table containing an
Emailfield - Google Sheets for audit log
Custom Workflow Request with Personal Dashboard
https://www.smartflowcraft.com/contact
More free templates
https://www.smartflowcraft.com/n8n-templates
๐ Nodes Used
Airtable, Google Sheets, Gmail, Supabase, Gmail Trigger, AI Agent
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File