# Handle GDPR access and erasure emails with Gmail and OpenAI: n8n workflow

> Started by an arriving email, and works across Airtable, Gmail, Google Sheets and Supabase. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/handle-gdpr-access-and-erasure-emails-with-gmail-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Handle GDPR access and erasure emails with Gmail and OpenAI

Started by an arriving email, and works across Airtable, Gmail, Google Sheets and Supabase. It hands the judgement calls to OpenAI. 18 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-gdpr-access-and-erasure-emails-with-gmail-and-openai)

**18 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 1 Model 6 Logic 4 Service 7

The steps in the order they run, from what starts it.

- 1 **Gmail, DSR Inbox** Gmail trigger *Starts it*
- 2 **OpenAI, Classify** Lm Chat Open Ai *Model*
- 3 **DSR Classification Schema** Output Parser Structured *Model*
- 4 **OpenAI, Compile** Lm Chat Open Ai *Model*
- 5 **Report Schema** Output Parser Structured *Model*
- 6 **Classify DSR Request** Agent *Model*
- 7 **Compile Data Report** Agent *Model*
- 8 **Query Supabase** Supabase *Service*
- 9 **Access or Erasure?** If *Logic*
- 10 **Consolidate DB Results** Code *Logic*
- 11 **Send Access Report** Gmail *Service*
- 12 **Delete from Supabase** Supabase *Service*
- 13 **Query Airtable CRM** Airtable *Service*
- 14 **Merge Paths** Merge *Logic*
- 15 **Delete from Airtable** Airtable *Service*
- 16 **Consolidate CRM Results** Code *Logic*
- 17 **Log Audit Trail** Google Sheets *Service*
- 18 **Send Erasure Confirmation** Gmail *Service*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 18, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Airtable, Gmail, Google Sheets, Supabase
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Airtable, Gmail, Google Sheets and Supabase accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-gdpr-access-and-erasure-emails-with-gmail-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**AI calling agent with OpenAI** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-calling-agent-with-openai)
- [**AI-Powered Paperclip Task Assigner & Completion Tracker** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-paperclip-task-assigner-and-completion-tracker)
- [**AI-powered customer feedback routing with Gmail and Slack** 18 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/ai-powered-customer-feedback-routing-with-gmail-and-slack)
- [**Analyze Meta ads daily with Gemini and Google Sheets** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-meta-ads-daily-with-gemini-and-google-sheets)
- [**Auto-reply to Instagram comments with Gemini and Google Sheets** 18 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/auto-reply-to-instagram-comments-with-gemini-and-google-shee)
- [**Automated job listing aggregator & AI cover letter generator** 18 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/automated-job-listing-aggregator-and-ai-cover-letter-generat)
