n8n enterprise AI security firewall — guardrails for secure agents
🛡️ n8n Guardrails: Risk Ranking This workflow provides a complete testing rig for evaluating text against seven essential AI guardrails used in production systems. It helps you detect jailbreak attempts, PII exposure...
Template notes
🛡️ n8n Guardrails: Risk Ranking
This workflow provides a complete testing rig for evaluating text against seven essential AI guardrails used in production systems. It helps you detect jailbreak attempts, PII exposure, NSFW content, secret key leaks, malicious URLs, topical misalignment, and keyword violations. Use the included Google Sheet or CSV to batch-test multiple inputs instantly.
---
How It Works (Internal Workflow Overview)
1. Load Input Rows The workflow reads each test entry (GuardrailType + InputText) from a Google Sheet or CSV.
2. Route to the Correct Guardrail A Switch node sends the text to the appropriate guardrail: - Jailbreak - PII - Secret Keys - NSFW - URLs - Topical Alignment - Keywords
3. AI Guardrail Evaluation Each guardrail uses Google Gemini to return: - Pass / Fail - Confidence score - Reasoning - Extracted PII, URLs, or entities (when relevant)
4. Optional Sanitization Layer Three sanitizers demonstrate how to clean unsafe text: - PII Sanitization - Secret Key Sanitization - URL Sanitization