Templates / Redact and restore PII in OpenAI prompts with Enterprise PII Guardrails

Redact and restore PII in OpenAI prompts with Enterprise PII Guardrails

Unknown

by Vishal Prajapati · 38 views · created 2026-09-16 · SecOps, AI Summarization

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 5 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI and Piiguardrails (community).

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set Customer Prompt with PII (Edit Fields (Set)): sets 1 field: customer_prompt
  2. Mask PII with Enterprise Guardrails (Pii Guardrails): uses Pii Guardrails
  3. OpenAI: uses OpenAI
  4. Restore Original PII from Tokens (Pii Guardrails): unmask

Services it uses

OpenAIPiiguardrails (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-piiguardrails is verified or supports 3.0 (used in Mask PII with Enterprise Guardrails, Restore Original PII from Tokens).

Nodes used (4)

From the author

Quick overview This workflow masks sensitive PII in a customer prompt using Enterprise PII Guardrails, sends the sanitized text through a simulated LLM step, and then restores the original values in the LLM response using the reversible token mapping. How it…

Excerpt from Vishal Prajapati's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.