Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that removes personal data columns from CSV files. It watches a Google Drive folder, has an OpenAI model name the columns that hold personal data and saves a cleaned copy in a second folder.
PII columns removed from Google Drive CSV files by AI is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
New file in Google Drive
It starts when a file appears in the Drive folder you watch, with:
A cleaned copy of the CSV file in the second Drive folder, without the columns the model named
What you need before you start.
File storage
Detects each new CSV file, downloads it and saves the cleaned copy.
NeedsA Google account and two Drive folders
Language model
Names the columns that hold personal data from the column names and the first row.
NeedsAn OpenAI API key
Checked by Mindket on 13 Nov 2026
This n8n workflow cleans CSV files of personal data. It watches a Google Drive folder, and each new CSV file is read into rows. An OpenAI model looks at the column names and the first row, and names the columns that hold personal data. A Code node drops those columns, and the cleaned file goes to a second Drive folder. Nine nodes do the work, beside one sticky note.
Analysts, marketers and support teams who share exports and want names, emails or phone numbers out first. The model judges from one row, so it can miss a column or flag a harmless one. Review the output before you share it, and keep the original file private.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Marketing | Analysts | Share a campaign export without contact details | An analyst drops a signup list in the folder and shares the cleaned copy with an agency. |
| Support | Support leads | Send ticket data to a vendor with the customer columns removed | A lead removes the name and email columns of a ticket export before the file leaves the team. |
| Research | Data teams | Prepare a survey file for wider use | A team cleans a survey export before it goes into a shared workspace. |
| Operations | Office managers | Tidy a file before an outside request | A manager removes the personal columns of a customer list before a partner sees it. |
You need some n8n skill: import a file, add two accounts and choose two Drive folders. Nothing in the file states a setup time.
Any n8n that can reach Google Drive and OpenAI will run it.
OpenAIDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Make the two Drive folders first.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| A Google account and two Drive folders, one to watch and one for the cleaned files | |
| OpenAI | An API key |
workflow.json.Google Drive Trigger, Google Drive and Upload to Drive.Google Drive Trigger, choose the folder to watch. It must not be the folder that Upload to Drive writes to.Upload to Drive, choose the folder for the cleaned files.OpenAI.Publish the workflow and drop one CSV file at a time into the watched folder. The trigger checks the folder every minute. The cleaned copy, named with _PII_removed before the extension, lands in the second folder. Open it and check the columns.
| To change | Where |
|---|---|
| The two folders | Google Drive Trigger and Upload to Drive |
| What counts as personal data | The system message in OpenAI |
| The model | OpenAI |
| The name of the cleaned file | The code of Remove PII columns |
You drop customers.csv, with the columns name, email, city and plan, into the folder.
First Google Drive Trigger sees the file, Google Drive downloads it and Extract from File turns its rows into items. Then OpenAI reads the column names and the first row, and answers with name, email. After that Merge puts the answer, the file name and the rows into one list. At the end Remove PII columns drops the two columns, and Upload to Drive saves customers_PII_removed.csv in the second folder.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A CSV file is a text table, with one row in each line and the column names in the first line. PII means personal data, such as a name, an email address or a phone number.
For experts. The Code node counts on the order of the merged list, so keep the three inputs where they are.
| Node | What it does | What to know |
|---|---|---|
Get filename | A Split Out node that copies name into originalFilename, set to run once | It reads only the first file of a poll |
OpenAI | An OpenAI node 1.7 on gpt-6-luna with JSON output, set to run once | It gets the column names and the values of the first row, and answers in the key content |
Merge | A Merge node 3 with three inputs, in its default mode, Append | The list is the column answer, then the file name, then every row |
Remove PII columns | A Code node that drops the named columns and builds the CSV again | It strips commas from values, and it stops with an error when the model names no column |
Upload to Drive | A Google Drive node that creates a file from text | The name is the original name with _PII_removed added |
One row of your data goes to OpenAI, and the model only guesses.
Extract from File failrow[header] || '', so a cell with the number 0 came out empty. Mindket’s copy uses ??. The folder ids are placeholders. The model gpt-4o-mini, which OpenAI’s deprecations page says is shut down on 14 January 2027, is now gpt-6-lunagpt-6-luna. It read OpenAI’s and n8n’s documentation and n8n’s sourceAn n8n workflow that removes personal data columns from CSV files. It watches a Google Drive folder. For each new CSV file, an OpenAI model names the columns that hold personal data, and a Code node drops them. The cleaned file goes to a second Drive folder.
workflow.json: the workflow as n8n exports it, 9 nodes beside 1 sticky note. It holds no credential.README.md: these notes.gpt-4o-mini is shut down on 14 January 2027, says OpenAI’s deprecations page, read on 12 November 2026. It names gpt-6-luna as the replacement, and Mindket’s copy uses it. The step has no tools, so a note about tools on that model does not apply.row[header] || '', which turns a cell with the number 0 into an empty cell. Mindket’s copy writes row[header] ?? ''.workflow.json.Google Drive Trigger, Google Drive and Upload to Drive.Google Drive Trigger, choose the folder to watch. It must not be the folder that Upload to Drive writes to.Upload to Drive, choose the folder for the cleaned files.OpenAI.Google Drive Trigger checks the folder every minute and starts a run for a new file. Get filename keeps the name of the file in originalFilename, and Google Drive downloads the file.Extract from File reads the CSV, in its default operation, and returns one item for each row.OpenAI gets the column names and the first row. It answers in JSON with the key content, a list of column names separated by commas. Get result copies that text into data.Merge puts three inputs into one list, in this order: the answer, the file name and every row.Remove PII columns reads the column names from the first item and the file name from the second. It drops those columns from the rows, strips commas from the values and builds a new CSV.Upload to Drive saves the new file, named with _PII_removed before the extension, in the second folder.Google Drive Trigger and Upload to Drive.OpenAI.OpenAI.Remove PII columns.Get filename and OpenAI are set to run once. They read only the first item of a poll, so drop one file and wait for the run.Extract from File fail.gpt-6-luna. It read OpenAI’s and n8n’s documentation and n8n’s source.NOTICE.md 702 B README.md 4 KB workflow.json 9 KB
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
perplexity-ai · Kit
Picks the best option for a decision from text and images, such as which team should handle a request, with a probability for each choice, for developers who b…
numind · Kit
Reads documents as text or images and fills a JSON template with the fields you ask for, or converts the pages to Markdown. A 4B model for teams that process s…
nace-ai · Kit
Scores yes or no, multiple choice and rating questions about a document in one pass, with a probability for every option. An 8B decision model from Nace.AI tha…