Handle GDPR access and erasure emails with Gmail, GPT-4o, Supabase and Airtable
š 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 users to match your schema Airtable ā connect Airtable Personal Access Token; replace YOUR_BASE_ID and YOUR_TABLE_NAME Google Sheets ā connect Google Sheets OAuth2; replace YOUR_AUDIT_SHEET_ID; create a tab named DSR 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 Email field Google Sheets for audit log
Custom Workflow Request with Personal Dashboard
kumar@smartflowcraft.com
https://www.smartflowcraft.com/contact
More free templates https://www.smartflowcraft.com/n8n-templates
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
š° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments