Gate AI Slack DevOps bot actions with OpenAI and Permit.io RBAC
> This n8n workflow template uses a community node and is only compatible with the self-hosted version of n8n.
Who's it for
DevOps teams, platform engineers, and ops leads who use Slack bots for infrastructure tasks but need to control who can trigger what. Ideal for teams that have outgrown hardcoded IF-node permission checks.
How it works
A team member @mentions the bot in Slack with a DevOps request like "restart staging" or "deploy to production." OpenAI classifies the message into a structured action and resource. Permit.io then checks if that Slack user's role allows the action. If permitted, the workflow executes the action and posts the result. If denied, the bot responds with the user's current permissions and suggests who can help.
How to set up
Install the @permitio/n8n-nodes-permitio community node Create a Slack app with app_mentions:read, chat:write, channels:read, users:read scopes Add your OpenAI API key In Permit.io, create resources (logs, staging, production, secrets) with actions (view, deploy, restart, rotate) and roles (viewer, developer, sre, admin) Sync your team's Slack user IDs as users in Permit.io and assign roles
Requirements
Self-hosted n8n instance Slack workspace with a bot app OpenAI API key Permit.io account (free tier works)
How to customize
Replace the mock HTTP Request node with your actual infrastructure endpoints (GitHub Actions, ArgoCD, Jenkins, etc.) Add ABAC conditions in Permit.io for time-based or context-based rules without changing the workflow Extend with additional resources and actions to match your team's operations
Related Templates
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Add product ideas to Google Sheets via a Slack
Use Case This workflow is a slight variation of a workflow we're using at n8n. In most companies, employees have a lot o...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments