N8N Integration

Secure your N8N AI workflows without slowing down

37x faster and 95% cheaper than N8N's native guardrails. Add bot detection, IP reputation, and PII protection with a simple base URL change.

< 15ms

Security latency

95%

Cost reduction

14

PII types detected

5-Minute Setup

No workflow changes required.

1

Create a Bastio proxy

Sign up free, create a new proxy, configure security rules.

2

Get your proxy URL

Copy your unique proxy endpoint from the dashboard.

3

Update N8N credentials

Change the base URL in your OpenAI credential. Done.

Performance Comparison

Bastio vs N8N native guardrails.

MetricN8NBastio
Latency300-800ms<15ms
Cost per 1M checks~$2,000~$100
Bot DetectionNoYes
IP ReputationNoYes
User FingerprintingNoYes
PII Types Detected314
Security Gap

Features N8N's native guardrails don't have.

N8N's Guardrails node uses LLM-based detection at 300-800ms per check. Bastio uses pattern-based detection at <15ms with bot detection, IP reputation, user fingerprinting, and deterministic blocking that never lets the same attack pass on retry.

What's included

Enterprise-grade protection for N8N workflows

Everything you need to secure your AI automations, from threat detection to compliance-ready audit logs.

Prompt injection detection
Base64/URL encoded attacks
Multilingual attack detection
Role override prevention
Bot detection pipeline
IP reputation & threat lists
Device fingerprinting
PII masking (14 types)
Rate limiting per user
Deterministic + ML hybrid
Full audit logging
Real-time analytics dashboard

N8N OpenAI Credential

Just change the base URL

{
  "apiKey": "sk-your-openai-key",
  "baseUrl": "https://api.bastio.com/v1/guard/YOUR_PROXY_ID/v1"
}

cURL Example

Test your proxy endpoint directly

curl -X POST \
  "https://api.bastio.com/v1/guard/{proxyID}/v1/chat/completions" \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4","messages":[
    {"role":"user","content":"Hello"}
  ]}'

Prompt Injection Protection

50+ threat patterns with encoded attack detection and jailbreak prevention.

Bot & Abuse Prevention

Stop automated attacks before they waste your LLM tokens with user agent and timing analysis.

PII Detection

14 data types with masking or blocking modes for GDPR and HIPAA compliance.

Ready to secure your N8N workflows?

Start with 1,000 free API requests per month. No credit card required.