Automation library · Chat assistants

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.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 13Logic 6Service 4

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

  1. 1Abuse Signal WebhookWebhookStarts it
  2. 2OpenAI Model - Behavior AgentLm Chat Open AiModel
  3. 3Behavior Signal Output ParserOutput Parser StructuredModel
  4. 4OpenAI Model - Governance AgentLm Chat Open AiModel
  5. 5Governance Output ParserOutput Parser StructuredModel
  6. 6OpenAI Model - Investigation ToolLm Chat Open AiModel
  7. 7Investigation Output ParserOutput Parser StructuredModel
  8. 8OpenAI Model - Risk Scoring ToolLm Chat Open AiModel
  9. 9Risk Scoring Output ParserOutput Parser StructuredModel
  10. 10Policy Compliance Checker ToolTool CodeModel
  11. 11Workflow ConfigurationSetLogic
  12. 12Behavior Signal AgentAgentModel
  13. 13Governance AgentAgentModel
  14. 14Investigation Agent ToolAgent ToolModel
  15. 15Risk Scoring Agent ToolAgent ToolModel
  16. 16Route by SeveritySwitchLogic
  17. 17Prepare Enforcement DataCodeLogic
  18. 18Check Auto-Action ThresholdIfLogic
  19. 19Route Enforcement ActionSwitchLogic
  20. 20Format Auto-ActionSetLogic
  21. 21Log Enforcement ActionsData TableService
  22. 22Log to Abuse RecordsData TableService
  23. 23Alert Security TeamSlackService
  24. 24Send Escalation EmailEmail SendService

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.