# Detect and enforce abuse cases with OpenAI and Slack: n8n workflow

> Started by another system calling it, and works across Email, Slack and n8n data table. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/detect-and-enforce-abuse-cases-with-openai-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Detect and enforce abuse cases with OpenAI and Slack

Started by another system calling it, and works across Email, Slack and n8n data table. It hands the judgement calls to OpenAI. 24 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-and-enforce-abuse-cases-with-openai-and-slack)

**24 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 13 Logic 6 Service 4

The steps in the order they run, from what starts it.

- 1 **Abuse Signal Webhook** Webhook *Starts it*
- 2 **OpenAI Model - Behavior Agent** Lm Chat Open Ai *Model*
- 3 **Behavior Signal Output Parser** Output Parser Structured *Model*
- 4 **OpenAI Model - Governance Agent** Lm Chat Open Ai *Model*
- 5 **Governance Output Parser** Output Parser Structured *Model*
- 6 **OpenAI Model - Investigation Tool** Lm Chat Open Ai *Model*
- 7 **Investigation Output Parser** Output Parser Structured *Model*
- 8 **OpenAI Model - Risk Scoring Tool** Lm Chat Open Ai *Model*
- 9 **Risk Scoring Output Parser** Output Parser Structured *Model*
- 10 **Policy Compliance Checker Tool** Tool Code *Model*
- 11 **Workflow Configuration** Set *Logic*
- 12 **Behavior Signal Agent** Agent *Model*
- 13 **Governance Agent** Agent *Model*
- 14 **Investigation Agent Tool** Agent Tool *Model*
- 15 **Risk Scoring Agent Tool** Agent Tool *Model*
- 16 **Route by Severity** Switch *Logic*
- 17 **Prepare Enforcement Data** Code *Logic*
- 18 **Check Auto-Action Threshold** If *Logic*
- 19 **Route Enforcement Action** Switch *Logic*
- 20 **Format Auto-Action** Set *Logic*
- 21 **Log Enforcement Actions** Data Table *Service*
- 22 **Log to Abuse Records** Data Table *Service*
- 23 **Alert Security Team** Slack *Service*
- 24 **Send Escalation Email** Email Send *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 24, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Email, Slack, n8n data table
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Email and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 24 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 24 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdetect-and-enforce-abuse-cases-with-openai-and-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI-Powered NPM Package Intelligence Agent with OpenAI** 24 steps · calls a model · GitHub, Slack](https://millionrounds.com/workflow/ai-powered-npm-package-intelligence-agent-with-openai)
- [**AI-powered fuzzy matching, and assigns confidence scores.** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-fuzzy-matching-and-assigns-confidence-scores)
- [**Analyze pharma label change impact with Claude and Slack** 24 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/analyze-pharma-label-change-impact-with-claude-and-slack)
- [**Audit and cancel unused SaaS seats with Google Sheets** 24 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/audit-and-cancel-unused-saas-seats-with-google-sheets)
- [**Benchmark employer brand on Glassdoor with Bright Data** 24 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/benchmark-employer-brand-on-glassdoor-with-bright-data)
- [**Enforce marketplace seller compliance with OpenAI and Gmail** 24 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/enforce-marketplace-seller-compliance-with-openai-and-gmail)
