Templates / Remove personally identifiable information (PII) from CSV files with OpenAI

Remove personally identifiable information (PII) from CSV files with OpenAI

Ready for 3.0

by Artur ✓ · 1,808 views · created 2025-01-23 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 9 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive and OpenAI.

How it runs

Trigger: On Google Drive events (file created).

  1. Get filename (Split Out): splits a list into separate items
  2. Google Drive: download
  3. Merge: merges the data from its input branches
  4. Extract from File: extracts data from a file
  5. Remove PII columns (Code): runs custom JavaScript code
  6. OpenAI: uses OpenAI
  7. Upload to Drive (Google Drive): create from text
  8. Get result (Split Out): splits a list into separate items

Services it uses

Google DriveOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

What this workflow does - Monitors Google Drive: The workflow triggers whenever a new CSV file is uploaded. - Uses AI to Identify PII Columns: The OpenAI node analyzes the data and identifies PII-containing columns (e.g., name, email, phone). - Removes PII:…

Excerpt from Artur'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.