πŸ”’ n8n enterprise AI security firewall β€” guardrails for secure agents

⚑ 124 views Β· πŸ”’ SecOps & Security Automation

Description

πŸ›‘οΈ 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 (Guardrail_Type + Input_Text) from a Google Sheet or CSV.

2. Route to the Correct Guardrail

A Switch node sends the text to the appropriate guardrail:

3. AI Guardrail Evaluation

Each guardrail uses Google Gemini to return:

4. Optional Sanitization Layer

Three sanitizers demonstrate how to clean unsafe text:

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:

Update only:


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:


5. Run the Workflow

Click Execute Workflow and inspect:


## Requirements


## Test Data Included

The included dataset allows instant testing:


## 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: https://www.linkedin.com/in/sandeeppatharkar
🏠 Skool AIC+: https://www.skool.com/aic-plus

πŸ”— Nodes Used

Google Sheets, Google Gemini Chat Model, Guardrails

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup