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, 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 (Guardra
At a glance
n8n enterprise AI security firewall — guardrails for secure agents is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Google Sheets, LinkedIn, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Google Sheets, LinkedIn, Gemini
- Modules
- 17
- Price
- Free
- Version
- v1.0

About this workflow
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 5. Review Results Each guardrail node outputs clean JSON, making debugging fast and transparent. --- ## How to Set Up 1. Load the Test Dataset Use either: - The included CSV file - The linked Google Sheet Update only: - Document ID - Sheet name --- 2. Add Google Sheets Credentials Create an OAuth2 credential → paste the Google JSON → connect your account. --- 3. Add Google Gemini Credential Go to Credentials → Google Gemini (PaLM API) → Paste your API key → attach it to all Guardrail nodes. --- 4. Review Sticky Notes They visually explain: - What each guardrail checks - Why the check is important - Risk scoring and impact --- 5. Run the Workflow Click Execute Workflow and inspect: - Each guardrail node’s output - The full execution data --- ## Requirements - n8n (latest version recommended) - Google Gemini API key - Google Sheets API access - Test dataset: n8n Guardrails test data.csv --- ## Test Data Included The included dataset allows instant testing: - Jailbreak prompts - PII samples - API key leaks - NSFW text - Malicious URL examples - Off-topic content - Keyword triggers --- ## Template Metadata Template Author: Sandeep Patharkar Category: AI Safety / Agent Security Difficulty: Intermediate Estimated Setup Time: 10–15 minutes Tags: Guardrails, AI Agents, Safety, Enterprise --- ## Connect With Me Author: Sandeep Patharkar 🔗 LinkedIn: 🏠 Skool AIC+:
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Save new PHP Point of Sale sales to a Google Sheets spreadsheet
Add new rows with data about Outbound messages in Hootsuite to Google Sheets spreadsheet
Automate medical billing with Google Sheets and Gmail
Add a new row to a Google Sheets spreadsheet from a Google Ads Lead Forms submission
Summarize meeting recordings and create Notion action items with Gemini AI
Import Google Sheets data into Invoice Ninja
Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets
Manage clinical trial e-consent and compliance with Claude AI and Google Sheets
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you