AI & privacy

PII redaction in n8n, Make and Zapier before the AI takes over

For PII redaction in n8n, Make and Zapier, add an HTTP request to Diskretio right before the AI step. There is no native integration; the generic HTTP building block is all you need.

anonymize.shresponse.json

# Anonymize a file, report as JSON

$ curl -X POST "$API/v1/files?response=json" \

-H "x-api-key: $ANON_KEY" \

-F "file=@Employment_Contract_Smith.pdf" \

-F 'options={"strategy":"placeholder","language":"en"}'

HTTP/1.1 200 OK · x-pages-charged: 3 · x-pages-remaining: 1757

{

"filename": "anonymized.pdf",

"pages": 3,

"report": {

"counts": {

"PERSON": 6,

"ORG": 2,

"ADDRESS": 3,

"IBAN": 1,

"TAX_ID": 1,

"NATIONAL_ID": 1,

"EMAIL": 1

},

"entities": [{ "id": "PERSON_1", "label": "PERSON", "occurrences": 4 }, …],

"warnings": []

},

"content_base64": "JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBl…"

}

# page 1 of the output

Between [ORG_1] and [PERSON_1], [ADDRESS_1] …

Your formats and the AI tools you work with afterwards

  • Word
  • Excel
  • PowerPoint
  • Outlook (emails)
  • PDF
  • Scans & photos
  • TXT Text & CSV
  • ChatGPT
  • Claude
  • Microsoft Copilot
  • Gemini
  • Mistral
  • DeepL
  • Perplexity

Typical workflows with personal data

  • Incoming emails an AI classifies or answers
  • Form submissions that get summarized
  • Support tickets sent to a language model for tagging
  • File attachments (PDF, Word) being analyzed
  • CRM notes summarized for reports

How it works

  1. 1

    Add an HTTP step

    In n8n the HTTP Request node, in Make the HTTP module, in Zapier “Webhooks by Zapier”, placed right before the AI step.

  2. 2

    Call the API

    Send text as JSON to the text endpoint or a file to the file endpoint, with your API key in the x-api-key header.

  3. 3

    Pass the result on

    Hand the cleaned text field to the AI module. Originals stay in your source system.

No native integration, but a standard route

Diskretio currently has no nodes, apps or zaps of its own in n8n, Make or Zapier. All three platforms can call any REST API, though, so anonymization can be added as its own step without real coding.

The API responds with JSON: cleaned text plus a report. For files, choose whether you get the cleaned file directly or as base64 inside JSON.

Order matters

The anonymization step must come before any step that hands data to a third party: AI module, translation, spreadsheet export. Error logs and execution histories of the automation platform can contain data too; check their retention settings.

If the workflow should send a personalized reply at the end, take name and email from the original trigger, not from the AI answer. The anonymization is irreversible.

FAQ

Questions. Answered briefly.

Try it with your own document

10 pages per month are free. No subscription, no credit card.