Integrations
Seamlessly integrate OpenGuardrails with your favorite tools and platforms
n8n Integration
Integrate OpenGuardrails with n8n workflow automation platform to add AI safety guardrails to your workflows.
Step 1: Create n8n Credential
Before using either integration method, you need to create a Bearer Auth credential in n8n with your OpenGuardrails API key.
1. Go to Create Credential
In n8n, click the dropdown menu next to 'Create workflow' and select 'Create credential'.
2. Select Bearer Auth
In the 'Add new credential' dialog, search for and select 'Bearer Auth'.
3. Get API Key from OpenGuardrails
Log in to OpenGuardrails platform → Go to Application Management → Use the default application or create a new one → Click the 'View' button in the Actions column.
4. Copy API Key
Click the copy button to copy your API Key.
5. Paste API Key in n8n
Return to n8n, paste the API key into the 'Bearer Token' field in the Bearer Auth account, then click 'Save'.


Step 2: Choose Integration Method
Method 1: OpenGuardrails Community Node (Recommended)
Installation
- Go to Settings → Community Nodes in your n8n instance
- Click Install and enter:
n8n-nodes-openguardrails - Click Install and wait for completion
Features
- ✓ Check Content: Validate any user-generated content for safety issues
- ✓ Input Moderation: Protect AI chatbots from prompt attacks and inappropriate input
- ✓ Output Moderation: Ensure AI-generated responses are safe and appropriate
- ✓ Conversation Check: Monitor multi-turn conversations with context awareness


Detection Options
- 🔒 Enable Security Check: Detect jailbreaks, prompt injection, role manipulation
- ✅ Enable Compliance Check: Check for 18 content safety categories (violence, hate speech, etc.)
- 🛡️ Enable Data Security: Detect privacy violations, commercial secrets, IP infringement
- ⚙️ Action on High Risk: Continue with warning / Stop workflow / Use safe response
Method 2: HTTP Request Node
Use n8n's built-in HTTP Request node to call OpenGuardrails API directly.
Configuration Steps
- Method: POST
- URL:
https://api.openguardrails.com/v1/guardrails - Authentication: Select your OpenGuardrails credentials


Example Workflow: AI Chatbot with Protection
- 1. Webhook - Receive user message
- 2. OpenGuardrails - Input Moderation
- 3. IF (action = pass)
- → YES: Continue to LLM
- → NO: Return safe response
- 4. OpenAI Chat - Generate response
- 5. OpenGuardrails - Output Moderation
- 6. IF (action = pass)
- → YES: Return to user
- → NO: Return safe response
Ready to Get Started?
Start protecting your AI applications with OpenGuardrails integrations today