Remove Personally Identifiable Information (PII) from CSV Files with OpenAI

Remove PII from CSV Files This workflow monitors a Google Drive folder for new CSV files, identifies and removes PII columns using OpenAI, and uploads the sanitized file back to the drive. It requires Google Drive and OpenAI integrations with API access enabled.

Integrations Used (2)

Workflow Structure (9 nodes)
100%
Google Drive Trigger
Google Drive Trigger
Google Drive
Google Drive
Langchain.open Ai
OpenAI
Split Out
Get filename
Split Out
Get result
Extract From File
Extract from File
Merge
Merge
Code
Remove PII columns
Google Drive
Upload to Drive
Node Types:
trigger
action
default
logic
code
Requires credentials

Prerequisites

Required Credentials (2)

Google Drive

Used by: Google Drive Trigger, Google Drive +1 more

Docs

OpenAI

Used by: OpenAI

Docs

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~35 min
Score: 56/100
Custom Code
Conditional Logic

When to Use This Workflow

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "2f9460831fcdb0e9a4494f0630367cfe2968282072e2d27c6ee6ab0a4c165a36"
  },
  "nodes": [
    {
      "id": "ff4e8706-09a0-4bf1-86c1-dfb65f55ccb3",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        20,
        -140
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
...

Workflow Details

Nodes
10
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Whisper Transkription copy

Trigger and Download of audio file In this example I'm using Google Drive. As soon as a audio file is uploaded the trigg...

Google-drive
Notion
Openai
8 nodesEvent
Curated

Supabase Insertion & Upsertion & Retrieval

INSERTING - it's important to use the same embedding model when for any interaction with your vector database (inserting...

Google-drive
Documentdefaultdataloader
Chainretrievalqa
Lmchatopenai
21 nodesEvent
Curated

Ask questions about a PDF using AI

Load data into database Fetch file from Google Drive, split it into chunks and insert into Pinecone index

Google-drive
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
Documentdefaultdataloader
16 nodesEvent
Curated

Chat with PDF docs using AI (quoting sources)

1. Setup: Fetch file from Google Drive, split it into chunks and insert into a vector database Note that running this pa...

Embeddingsopenai
Documentdefaultdataloader
Google-drive
Chat
22 nodesEvent
Curated

Extract text from PDF and image using Vertex AI (Gemini) into CSV

How to extract PDF and image text into CSV using n8n (without manual data entry) This workflow will extract text data fr...

Lmchatgooglegemini
Google-drive
Http-request
Chainllm
16 nodesEvent
Curated

Parse PDF with LlamaParse and save to Airtable

Scenario 1

Google-drive
Http-request
Airtable
Webhook
18 nodesEvent
Curated