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

Go to Workflow
0 views
Built by Cheng Siong Chin Cheng Siong Chin
Created on June 05, 2026

Description

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 safety teams, content moderation managers, and compliance officers, it eliminates manual triage delays and ensures high-severity violations are actioned immediately. An abuse signal webhook triggers behaviour analysis via OpenAI, classifying signals by severity. A routing node directs cases to a Governance Agent, which orchestrates Investigation, Risk Scoring, and Policy Compliance Checker sub-agents. Enforcement data is prepared, then routed by action type-logging to abuse records, alerting the security team via Slack, sending escalation emails, or triggering auto-enforcement actions based on threshold checks—before all outcomes are logged.

Setup Steps
Configure Abuse Signal Webhook URL and authenticate incoming POST requests.
Add OpenAI API credentials to all OpenAI Model nodes.
Connect Google Sheets for abuse records and enforcement action logging.
Configure Slack credentials and set security team alert channel.
Add Gmail/SMTP credentials to Send Escalation Email node.

Prerequisites
Slack workspace with bot token
Gmail or SMTP credentials
Google Sheets for abuse and enforcement logging
Use Cases
Real-time abuse detection and auto-suspension on social platforms
Customization
Replace OpenAI with Anthropic Claude or NVIDIA NIM models
Benefits
Eliminates manual abuse triage with real-time AI signal processing

Nodes Used (8)

AI Agent
@n8n/n8n-nodes-langchain.agent
AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool
Code
n8n-nodes-base.code
Code Tool
@n8n/n8n-nodes-langchain.toolCode
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Send Email
n8n-nodes-base.emailSend
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured