Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

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

  1. Manual Test Trigger
  2. Set Customer Prompt with PII
  3. Mask PII with Enterprise Guardrails
  4. OpenAI
  5. Restore Original PII from Tokens

Similar automations