Templates / AI privacy-minded router: PII detection for privacy, security, & compliance

AI privacy-minded router: PII detection for privacy, security, & compliance

Ready for 3.0

by Charles · 2,636 views · created 2025-07-11 · SecOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 11 nodes and runs when a chat message arrives. Along the way it connects Ollama Chat Model and OpenRouter Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. Enhanced PII Pattern Analyzer (Code): runs custom JavaScript code
  2. Enhanced PII Routing Switch (Switch): routes items into 3 branches
  3. Compliance & Audit Logger (Code): runs custom JavaScript code
  4. Agent [Edge] (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; memory: Simple Memory
  5. Error Handler & Recovery (Code): runs custom JavaScript code
  6. Real-time Monitoring Dashboard (Code): runs custom JavaScript code
  7. AI Agent: runs an AI agent, with model: Ollama Chat Model

Services it uses

Ollama Chat ModelOpenRouter Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Modern AI systems are powerful but pose privacy risks when handling sensitive data. Organizations need AI capabilities while ensuring: ✅ Sensitive data never leaves secure environments ✅ Compliance with regulations (GDPR, HIPAA, PCI, SOX) ✅ Real-time decision…

Excerpt from Charles'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.