n8n Guardrails

Native n8n nodes (v1.119+) that enforce rules on text flowing into or out of AI agents. Two operations: ‘check text for violations’ (AI-powered, uses a model via OpenRouter) and ‘sanitize text’ (non-AI, deterministic cleanup). Supports eight guardrail types – keywords, jailbreak detection, NSFW, PII/personal data, secret keys, topical alignment, URLs, and custom regex/prompt – stackable in a single node with pass/fail branching that controls downstream flow.

Key points

  • Check-text-for-violations uses AI (slower, richer); sanitize-text is deterministic (faster, safer for pre-LLM cleanup)
  • PII guardrail detects credit cards, SSNs, emails, IPs, locations, dates – either block all or select specific entities
  • Jailbreak guardrail returns a 0-1 confidence score – tune the threshold per use case
  • Topical alignment locks conversations to a business scope (example: ‘n8n workflow automation’)
  • URL guardrail can allow only specific domains, restrict schemas (HTTPS-only), and block user info or subdomains
  • Custom guardrails accept either a natural-language prompt or a regex pattern
  • Stackable – one node can enforce keywords + jailbreak + PII simultaneously

Related entities

Related concepts

Source references

  • [src-005] Nate Herk cluster — Nate Herk — n8n cluster (18 videos)

– Videos referenced: oWdJMJp2HgM

Robin Cartier perspective

This page is part of Robin Cartier's working AI knowledge graph: a practical research layer for production AI, recommendation systems, experimentation, GEO, and agentic web readiness.

The useful next step is to connect this concept back to applied product leadership and operating models.

Recommended next

Keep reading from this thread

From 494 indexed pages and articles.

  1. Wiki concept n8n A visual, node-based workflow automation platform that anchors this cluster. It competes with Zapier and Make.com but differentiates on self-hosting, native code nodes Related by n8n
  2. Wiki concept n8n Chat Hub A ChatGPT-like interface built into n8n (released Dec 2025) that lets users chat with any configured chat model (Claude, GPT-5 Mini, Gemini 2.5 Related by n8n
  3. Insight AI Measurement and Experimentation How to measure AI product impact with evals, adoption metrics, online experiments, guardrails, and cost tracking Readers have engaged with this next