Detect and enforce abuse cases with OpenAI, Slack, Gmail and Sheets
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: riskThresholdHigh, riskThresholdMedium, autoActionThreshold…
- Behavior Signal Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Behavior Agent; output parser: Behavior Signal Output Parser
- Route by Severity (Switch): routes items into 3 branches
- Governance Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Governance Agent; 3 tools (Risk Scoring Agent Tool, Investigation Agent Tool, Policy Compliance Checker Tool); output parser: Governance Output Parser
- Check Auto-Action Threshold (If): checks a condition and branches into true / false
- Prepare Enforcement Data (Code): runs custom JavaScript code
- Format Auto-Action (Edit Fields (Set)): sets 8 fields: userId, enforcementAction, priority…
- Log Enforcement Actions (Data table): uses Data table
- Route Enforcement Action (Switch): routes items into 3 branches
- Log to Abuse Records (Data table): uses Data table
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - If
n8n-nodes-base.if
From the author
How It Works This workflow automates platform trust and safety operations by deploying a multi-agent AI system that detects abuse signals, investigates behaviour, scores risk, checks policy compliance, and enforces actions automatically. Designed for platform…