Templates / Detect and enforce abuse cases with OpenAI, Slack, Gmail and Sheets

Detect and enforce abuse cases with OpenAI, Slack, Gmail and Sheets

Ready for 3.0

by Cheng Siong Chin ✓ · 60 views · created 2026-02-25 · SecOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Workflow Configuration (Edit Fields (Set)): sets 5 fields: riskThresholdHigh, riskThresholdMedium, autoActionThreshold…
  2. Behavior Signal Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Behavior Agent; output parser: Behavior Signal Output Parser
  3. Route by Severity (Switch): routes items into 3 branches
  4. 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
  5. Check Auto-Action Threshold (If): checks a condition and branches into true / false
  6. Prepare Enforcement Data (Code): runs custom JavaScript code
  7. Format Auto-Action (Edit Fields (Set)): sets 8 fields: userId, enforcementAction, priority…
  8. Log Enforcement Actions (Data table): uses Data table
  9. Route Enforcement Action (Switch): routes items into 3 branches
  10. Log to Abuse Records (Data table): uses Data table

…plus 2 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelSlack

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)

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…

Excerpt from Cheng Siong Chin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.