Go to example tasks

Redact personal data from text before sending it to an LLM

Replace e-mails, phone numbers, IBANs, card numbers, national ID numbers, IP addresses and API keys in a text with placeholders such as [EMAIL_1], so the text can be sent to an LLM safely.

Try for free
PII Redactor for GDPR & LLM Pipelines
PII Redactor for GDPR & LLM Pipelinespraised_tumbler/pii-redactor-eu-gdpr
Source
Status
Format
Findings
+4 fields
Text
Number
Boolean
List
Object

Input

Texts:Hi, I am Maria Example (maria@example.com, +44 20 7946 0958). Please refund card 4111 1111 1111 1111 or pay to IBAN GB82 WEST 1234 5698 7654 32. Our server is 203.0.113.7 and the AWS key is AKIAIOSFODNN7EXAMPLE.
What to redact:EMAIL+7
Extra terms to redact (names etc.):Maria Example
Replacement style:placeholder
Return positions of findings:true

Output fields

Source
Status
Format
Findings
By type
Warnings
Error
Redacted text

How it works

Sign up on Apify or log in

The PII Redactor for GDPR & LLM Pipelines Actor is ready to run with the inputs already set for "Redact personal data from text before sending it to an LLM". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Redact personal data from text before sending it to an LLM" task

The PII Redactor for GDPR & LLM Pipelines Actor will start running based on the input automatically. You can also change all the input fields, like texts, what to redact, and more, to match your specific use case.

Receive the "Redact personal data from text before sending it to an LLM" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as source, status, format, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Redact personal data from text before sending it to an LLM" task via API.

Image

Integrate "Redact personal data from text before sending it to an LLM" into your workflow

Connect "Redact personal data from text before sending it to an LLM" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

No. Everything runs inside the Actor on the Apify platform; no external AI, OCR or redaction API is called.

Rarely. Cards must pass the Luhn check, IBANs their checksum and national ID numbers the rule of their country, so order numbers are mostly left alone.

Names are not guessed. List the names or other terms you want removed in "customTerms".