Complete AI Safety Suite: Test 9 Guardrail Layers with Groq LLM
Who's It For AI developers, automation engineers, and teams building chatbots, AI agents, or workflows that process user input. Perfect for those concerned about security, compliance, and content safety.
What It Does This workflow demonstrates all 9 guardrail types available in n8n's Guardrails node through real-world test cases. It provides a comprehensive safety testing suite that validates:
Keyword blocking for profanity and banned terms Jailbreak detection to prevent prompt injection attacks NSFW content filtering for inappropriate material PII detection and sanitization for emails, phone numbers, and credit cards Secret key detection to catch leaked API keys and tokens Topical alignment to keep conversations on-topic URL whitelisting to block malicious domains Credential URL blocking to prevent URLs with embedded passwords Custom regex patterns for organization-specific rules (employee IDs, order numbers) Each test case flows through its corresponding guardrail node, with results formatted into clear pass/fail reports showing violations and sanitized text. How to Set Up
Add your Groq API credentials (free tier works fine) Import the workflow Click "Test workflow" to run all 9 cases Review the formatted results to understand each guardrail's behavior
Requirements
n8n version 1.119.1 or later (for Guardrails node) Groq API account (free tier sufficient) Self-hosted instance (some guardrails use LLM-based detection)
How to Customize
Modify test cases in the "Test Cases Data" node to match your specific scenarios Adjust threshold values (0.0-1.0) for AI-based guardrails to fine-tune sensitivity Add or remove guardrails based on your security requirements Integrate individual guardrail nodes into your production workflows Use the sticky notes as reference documentation for implementation
This is a plug-and-play educational template that serves as both a testing suite and implementation reference for building production-ready AI safety layers.
Related Templates
Instagram Full Profile Scraper with Apify and Google Sheets
πΈ Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
Technology News Workflow Explanation with Key Services
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Auto-Publish Techn...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments