Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Redact and restore PII in OpenAI prompts with Enterprise PII Guardrails
When you run it, it automates developer work with OpenAI / ChatGPT using Pii Guardrails.
What it does
## 🛡️ Enterprise PII Guardrails + OpenAI End-to-End Pipeline ### What it does Demonstrates live, zero-leak AI inference with OpenAI (gpt-4o-mini) using Enterprise PII Guardrails: 1. Scrub: Converts names, emails, phone numbers, SSNs, credit cards, and addresses into reversible surrogate tokens in <25ms. 2. Infer: Hands the sanitized prompt to OpenAI. The model resolves the request using surrogate tokens without ever seeing sensitive data. 3. Restore: Automatically restores original private customer values within your secure infrastructure perimeter. ### Quick Start (Live Cloud Sandbox) 1. Get Free Demo Key: Visit https://demo.piiguardrails.com and click "API Keys" in the header to copy your instant demo key. 2. Guardrails Credentials: In n8n, set Base URL to https://demo.piiguardrails.com (or http://localhost:8000 for on-prem) and paste your API Key. 3. OpenAI Credentials: Configure your OpenAI account credentials (API Key). 4. Execute: Click "Test step" on 'Manual Test Trigger' to execute the end-to-end pipeline.
The steps
- Manual Test Trigger
- Set Customer Prompt with PII
- Mask PII with Enterprise Guardrails
- OpenAI
- Restore Original PII from Tokens
Similar automations
Customer Support & HelpdeskTriage and draft PII-safe support replies with OpenAI and PII Guardrails7 stepsEmail AutomationDraft safe email replies from webhooks with Groq and n8n Guardrails18 stepsBuilding Blocks & UtilitiesRedact personal data from any item with data tables, audit log and Discord17 stepsSecurity & ComplianceAnonymize PII in incoming webhook payloads via external detection API12 steps