{
  "name": "Moderate and govern user content with OpenAI GPT-4o, Slack and Gmail",
  "nodes": [
    {
      "id": "d43ed7b5-c6e1-4504-af69-9d2de875d01f",
      "name": "Content Moderation Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -448,
        288
      ]
    },
    {
      "id": "71dc6ee9-ecb5-4125-8a17-9456321ef5e3",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        288
      ]
    },
    {
      "id": "f1535304-ab85-4d27-9c92-bc7b6ea20d12",
      "name": "Content Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        288
      ]
    },
    {
      "id": "fe8c2b1a-be77-42ca-baf2-2e2551c42bca",
      "name": "OpenAI Model - Content Signal",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        8,
        512
      ]
    },
    {
      "id": "e10aa0d2-7486-4ecd-b252-ebc34055b40e",
      "name": "Structured Output - Content Signal",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        136,
        512
      ]
    },
    {
      "id": "118e87c2-eb1a-4b4b-806b-8a3d0f2fec33",
      "name": "Route by Validation Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        352,
        272
      ]
    },
    {
      "id": "4da219ec-2463-4e97-a6f6-a0eabe22bc30",
      "name": "Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1000,
        464
      ]
    },
    {
      "id": "79f1d1c8-add3-4109-97ff-30cc7bb84faa",
      "name": "OpenAI Model - Governance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        576,
        688
      ]
    },
    {
      "id": "1df010bf-6c63-4312-a2d2-dfcd987fa9c5",
      "name": "Structured Output - Governance",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1696,
        704
      ]
    },
    {
      "id": "f359552f-05e5-4ad0-94a3-ece9383278bf",
      "name": "Review Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        704,
        688
      ]
    },
    {
      "id": "23910949-ef48-45f2-bd78-740e79a3a535",
      "name": "OpenAI Model - Review Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        656,
        896
      ]
    },
    {
      "id": "ab2e9d0e-4eac-4187-bbfb-f0cd30c0cb54",
      "name": "Structured Output - Review Tool",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        816,
        896
      ]
    },
    {
      "id": "7e868fce-ca0b-4955-a12f-fcb58cbcb5e5",
      "name": "Appeals Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        992,
        688
      ]
    },
    {
      "id": "b7a53312-6676-4ba2-ae61-1b99c822d75c",
      "name": "OpenAI Model - Appeals Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        992,
        896
      ]
    },
    {
      "id": "f9e3952a-02ad-45d7-bf45-4c83911b73fb",
      "name": "Structured Output - Appeals Tool",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1152,
        896
      ]
    },
    {
      "id": "3c9cd788-5977-47f7-b6a2-769daca995ae",
      "name": "Enforcement Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1408,
        704
      ]
    },
    {
      "id": "c94831a4-3142-4df7-9024-bcda78054c36",
      "name": "OpenAI Model - Enforcement Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1424,
        912
      ]
    },
    {
      "id": "dda30abe-9858-4fe6-8d7b-7ae417a83785",
      "name": "Structured Output - Enforcement Tool",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1600,
        912
      ]
    },
    {
      "id": "59b35ada-eb5d-4b1d-95bd-1fea339bae63",
      "name": "Route by Action Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        1888,
        592
      ]
    },
    {
      "id": "795b7a19-525b-4918-bed4-8bc4dd76058f",
      "name": "Store Valid Content",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2464,
        256
      ]
    },
    {
      "id": "b5327eb9-f4a0-4351-b6e5-101f96f14960",
      "name": "Store Flagged Content",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2528,
        800
      ]
    },
    {
      "id": "5008f3c7-610a-4947-aef3-cce51065eb81",
      "name": "Store Enforcement Actions",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2080,
        512
      ]
    },
    {
      "id": "d5bc62e1-1893-466e-8e7a-83c244aeab19",
      "name": "Check Escalation Required",
      "type": "n8n-nodes-base.if",
      "position": [
        2304,
        512
      ]
    },
    {
      "id": "08caa7ef-8cde-4b2e-9ab2-0ee796d3104b",
      "name": "Notify Moderation Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2528,
        416
      ]
    },
    {
      "id": "7de37af4-bf1c-4a0b-960f-4caa85ff14b0",
      "name": "Escalation Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2528,
        608
      ]
    },
    {
      "id": "61c0ef27-6082-4a75-ac8b-55b519539c1b",
      "name": "Merge All Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        2752,
        480
      ]
    },
    {
      "id": "e9f1de5a-1e17-49d1-b027-49cc4d40165d",
      "name": "Audit Log",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        3200,
        512
      ]
    },
    {
      "id": "39d416be-7c5f-4586-94c8-5801029c0591",
      "name": "Prepare Audit Data",
      "type": "n8n-nodes-base.code",
      "position": [
        2976,
        512
      ]
    },
    {
      "id": "ede90078-271b-40b8-a67c-20fe3292102b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        -288
      ],
      "parameters": {
        "width": 448,
        "height": 336,
        "content": "## Prerequisites\nn8n account, OpenAI API key, Google Sheets or DB access, Gmail credentials, defined moderation policies.\n## Use Cases\nMarketplace listing moderation, enterprise HR review screening\n##"
      }
    },
    {
      "id": "c57e0916-5c46-4ae8-bd79-5f478ed4aded",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -208
      ],
      "parameters": {
        "width": 336,
        "height": 240,
        "content": "## Setup Steps\n1. Connect OpenAI API credentials for AI agents.\n2. Configure Google Sheets or database for logging.\n3. Connect Gmail for escalation emails.\n4. Define moderation policies and routing ru"
      }
    },
    {
      "id": "b33ca13b-c8a1-4996-94fb-e821249b684c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -208
      ],
      "parameters": {
        "width": 896,
        "height": 240,
        "content": "## How It Works\nThis workflow automates end-to-end AI-driven content moderation for platforms managing user-generated content, including marketplaces, communities, and enterprise systems. It is design"
      }
    },
    {
      "id": "92b3be9e-45f4-40cd-990f-083cbf89a9ef",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        112
      ],
      "parameters": {
        "width": 512,
        "height": 1008,
        "content": "## Enforcement & Escalation\nWhat – Approve, flag, store, or escalate with notifications.\nWhy – Ensure consistent action handling and compliance tracking."
      }
    },
    {
      "id": "60d60bae-0daa-400b-9a3d-123e5138951b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        112
      ],
      "parameters": {
        "width": 976,
        "height": 992,
        "content": "## Governance Orchestration\nWhat – Apply rule-based routing and agent-driven decision logic.\nWhy – Remove subjective scoring and standardize eligibility checks."
      }
    },
    {
      "id": "30600019-b906-4180-ad8f-b43f78cdb689",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        112
      ],
      "parameters": {
        "width": 832,
        "height": 944,
        "content": "## Ingest & Validate\nWhat – Capture content via webhook and normalize signals using AI validation.\nWhy – Ensure structured, policy-aligned inputs before enforcement decisions."
      }
    },
    {
      "id": "4b9f91db-0447-4248-a8f8-6ebfd4b23617",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        112
      ],
      "parameters": {
        "width": 1488,
        "height": 992,
        "content": "## Audit & Logging\nWhat – Merge results and generate structured audit logs.\nWhy – Maintain transparency, traceability, and review readiness."
      }
    }
  ],
  "connections": {
    "Merge All Paths": {
      "main": [
        [
          {
            "node": "Prepare Audit Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Escalation Email": {
      "main": [
        [
          {
            "node": "Merge All Paths",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Governance Agent": {
      "main": [
        [
          {
            "node": "Route by Action Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Review Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Appeals Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Audit Data": {
      "main": [
        [
          {
            "node": "Audit Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Valid Content": {
      "main": [
        [
          {
            "node": "Merge All Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Signal Agent": {
      "main": [
        [
          {
            "node": "Route by Validation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Action Type": {
      "main": [
        [
          {
            "node": "Store Flagged Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Enforcement Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Flagged Content": {
      "main": [
        [
          {
            "node": "Merge All Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Enforcement Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Notify Moderation Team": {
      "main": [
        [
          {
            "node": "Merge All Paths",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Content Signal Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Escalation Required": {
      "main": [
        [
          {
            "node": "Notify Moderation Team",
            "type": "main",
            "index": 0
          },
          {
            "node": "Escalation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Governance": {
      "ai_languageModel": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Store Enforcement Actions": {
      "main": [
        [
          {
            "node": "Check Escalation Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Moderation Webhook": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Review Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Review Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route by Validation Status": {
      "main": [
        [
          {
            "node": "Store Valid Content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Appeals Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Appeals Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Content Signal": {
      "ai_languageModel": [
        [
          {
            "node": "Content Signal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Governance": {
      "ai_outputParser": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Enforcement Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Enforcement Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Review Tool": {
      "ai_outputParser": [
        [
          {
            "node": "Review Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Appeals Tool": {
      "ai_outputParser": [
        [
          {
            "node": "Appeals Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Content Signal": {
      "ai_outputParser": [
        [
          {
            "node": "Content Signal Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Enforcement Tool": {
      "ai_outputParser": [
        [
          {
            "node": "Enforcement Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}