{
  "name": "Detect and enforce abuse cases with OpenAI, Slack, Gmail and Sheets",
  "nodes": [
    {
      "id": "6622d5cb-4630-467d-9a4b-91b7c9201028",
      "name": "Abuse Signal Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        480
      ]
    },
    {
      "id": "d04b91db-4433-49fe-812e-e25c7c6b1750",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        96,
        480
      ]
    },
    {
      "id": "0ada2bf9-1ded-4b46-8835-dc5351e4a346",
      "name": "Behavior Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        480
      ]
    },
    {
      "id": "11d3e909-f526-4bb8-a139-562bf636b9d5",
      "name": "OpenAI Model - Behavior Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        272,
        704
      ]
    },
    {
      "id": "07107c1f-4f54-4496-aeb6-9ec44c652aa6",
      "name": "Behavior Signal Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        448,
        704
      ]
    },
    {
      "id": "8021e348-3d4c-4423-b81a-e79b82fcf25b",
      "name": "Route by Severity",
      "type": "n8n-nodes-base.switch",
      "position": [
        688,
        624
      ]
    },
    {
      "id": "7b7c1656-97bb-40dc-8f3d-cb50bb127169",
      "name": "Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1336,
        416
      ]
    },
    {
      "id": "358c14cb-0fee-48d1-a988-c7e16a3f8bf9",
      "name": "OpenAI Model - Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        912,
        640
      ]
    },
    {
      "id": "b55430e1-a2d7-40f4-be4d-df803dc84d4c",
      "name": "Governance Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1776,
        640
      ]
    },
    {
      "id": "9f29e875-9e65-4027-a965-26a911adb8a2",
      "name": "Investigation Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1040,
        640
      ]
    },
    {
      "id": "4ee9fb2e-c2fd-4a0b-bd56-4b9e5b937d1a",
      "name": "OpenAI Model - Investigation Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        992,
        848
      ]
    },
    {
      "id": "6e9b74d8-09e7-40e6-9e1e-f1066824fc65",
      "name": "Investigation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1168,
        848
      ]
    },
    {
      "id": "41f435d3-60a5-4fdc-b1de-0cab8b32edd3",
      "name": "Risk Scoring Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1328,
        640
      ]
    },
    {
      "id": "c81dc03d-2641-4d62-9bb9-5f299e626c16",
      "name": "OpenAI Model - Risk Scoring Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1360,
        848
      ]
    },
    {
      "id": "fe37c063-d3c3-4897-9692-0e73a990def2",
      "name": "Risk Scoring Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1552,
        848
      ]
    },
    {
      "id": "17e17765-a6d5-447d-86c4-ac4f3e3152be",
      "name": "Policy Compliance Checker Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        1616,
        640
      ]
    },
    {
      "id": "372e8e08-f9c5-4046-a149-0e02f3e5800c",
      "name": "Prepare Enforcement Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1952,
        416
      ]
    },
    {
      "id": "a7210b06-1249-4505-932d-c01fbe1b3708",
      "name": "Route Enforcement Action",
      "type": "n8n-nodes-base.switch",
      "position": [
        2176,
        384
      ]
    },
    {
      "id": "084c4a61-c3d3-4c76-b1e6-689eba75053b",
      "name": "Log to Abuse Records",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2400,
        216
      ]
    },
    {
      "id": "af5c831d-c980-4e03-b29c-223a7e7924d1",
      "name": "Alert Security Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2400,
        408
      ]
    },
    {
      "id": "b5dec7ec-ac36-4ce9-8b92-cf21b213f344",
      "name": "Send Escalation Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2400,
        608
      ]
    },
    {
      "id": "b606545b-0c3f-44da-a1e9-7d87959879ab",
      "name": "Log Enforcement Actions",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2624,
        576
      ]
    },
    {
      "id": "bbb53770-398c-4e5a-9fe3-8d0659db18b2",
      "name": "Check Auto-Action Threshold",
      "type": "n8n-nodes-base.if",
      "position": [
        2384,
        832
      ]
    },
    {
      "id": "8fc647dc-ba1b-4aa9-b2e1-5cc6cfe7b470",
      "name": "Format Auto-Action",
      "type": "n8n-nodes-base.set",
      "position": [
        2624,
        784
      ]
    },
    {
      "id": "8ef8bf39-1d09-4dca-a8bc-7df52881d228",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        -240
      ],
      "parameters": {
        "width": 480,
        "height": 384,
        "content": "## Prerequisites\n- Slack workspace with bot token\n- Gmail or SMTP credentials\n- Google Sheets for abuse and enforcement logging\n## Use Cases\n- Real-time abuse detection and auto-suspension on social p"
      }
    },
    {
      "id": "6c16542f-accf-4708-a5bc-f99c409b5060",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        -96
      ],
      "parameters": {
        "width": 416,
        "height": 256,
        "content": "## Setup Steps\n1. Configure Abuse Signal Webhook URL and authenticate incoming POST requests.\n2. Add OpenAI API credentials to all OpenAI Model nodes.\n3. Connect Google Sheets for abuse records and en"
      }
    },
    {
      "id": "69196459-3dab-467a-b3a8-8c52f21b13ad",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -128
      ],
      "parameters": {
        "width": 624,
        "height": 272,
        "content": "## How It Works\nThis workflow automates platform trust and safety operations by deploying a multi-agent AI system that detects abuse signals, investigates behaviour, scores risk, checks policy complia"
      }
    },
    {
      "id": "ab598d84-081f-421c-ac16-0c357f12c2fb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        304
      ],
      "parameters": {
        "width": null,
        "height": 800,
        "content": "## Route by Severity\n**What** – Directs cases to appropriate paths.\n**Why** – Prevents low-priority signals from consuming enforcement resources."
      }
    },
    {
      "id": "2925a972-0556-48a5-a41f-17759fa22f7a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        304
      ],
      "parameters": {
        "width": 784,
        "height": 800,
        "content": "## Behavior Signal Agent\n**What** – Classifies abuse signals by severity using OpenAI.\n**Why** – Ensures accurate triage before routing to governance review."
      }
    },
    {
      "id": "91640067-1ee9-4dbb-95a6-beb7fcb22e9d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        288
      ],
      "parameters": {
        "width": 976,
        "height": 800,
        "content": "## Governance Agent\n**What** – Orchestrates sub-agents.\n**Why** – Centralises enforcement logic for consistent, auditable decision-making."
      }
    },
    {
      "id": "d82feaea-ccb2-441e-9f27-7c9becd89f99",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        208
      ],
      "parameters": {
        "width": 416,
        "height": 880,
        "content": "## Prepare & Route Enforcement Action\n**What** – Formats enforcement data and routes by action type.\n**Why** – Ensures each case receives the correct response—log, alert, email, or auto-action."
      }
    },
    {
      "id": "095f2a93-3a35-4d2c-90d3-bb0a3cb6aa05",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2352,
        80
      ],
      "parameters": {
        "width": 464,
        "height": 1040,
        "content": "## Auto-Action Threshold Check\n**What** – Evaluates whether automated enforcement should trigger.\n**Why** – Prevents over-enforcement while ensuring high-risk cases act without delay."
      }
    }
  ],
  "connections": {
    "Governance Agent": {
      "main": [
        [
          {
            "node": "Prepare Enforcement Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Severity": {
      "main": [
        [
          {
            "node": "Governance Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Governance Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check Auto-Action Threshold",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Auto-Action": {
      "main": [
        [
          {
            "node": "Log Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Security Team": {
      "main": [
        [
          {
            "node": "Log Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Abuse Signal Webhook": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Abuse Records": {
      "main": [
        [
          {
            "node": "Log Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Behavior Signal Agent": {
      "main": [
        [
          {
            "node": "Route by Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Escalation Email": {
      "main": [
        [
          {
            "node": "Log Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Behavior Signal Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Scoring Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Governance Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Investigation Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Enforcement Data": {
      "main": [
        [
          {
            "node": "Route Enforcement Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Enforcement Action": {
      "main": [
        [
          {
            "node": "Log to Abuse Records",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert Security Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Escalation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Scoring Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Risk Scoring Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check Auto-Action Threshold": {
      "main": [
        [
          {
            "node": "Format Auto-Action",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Investigation Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Behavior Signal Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Behavior Signal Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Behavior Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Behavior Signal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Policy Compliance Checker Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Governance Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Risk Scoring Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Scoring Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Investigation Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}