{
  "name": "Enforce marketplace seller compliance with GPT-4o, Gmail and Slack",
  "nodes": [
    {
      "id": "c6cac266-a159-4d1c-9bef-5e9f70fc721d",
      "name": "Receive Seller Data",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        608
      ]
    },
    {
      "id": "e0b8daf3-6490-49c3-8806-8c646d14235f",
      "name": "Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        736,
        608
      ]
    },
    {
      "id": "c916b50a-a9a4-4334-945d-85c733959842",
      "name": "Governance Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        832
      ]
    },
    {
      "id": "1d83f9c6-cc80-4075-94a1-93c8fb94ac20",
      "name": "Governance Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        608,
        832
      ]
    },
    {
      "id": "e3b7d27d-c6e0-4767-8177-84e981eb1142",
      "name": "Structured Enforcement Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1600,
        832
      ]
    },
    {
      "id": "f619b3bc-e672-4666-bbaa-2c20aea26c81",
      "name": "Policy Monitoring Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        736,
        832
      ]
    },
    {
      "id": "f4d33518-9ec5-41a0-a0c8-b9e681f99e9a",
      "name": "Appeals Review Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1024,
        832
      ]
    },
    {
      "id": "bdb1649c-c348-40fc-b4db-cec3c57adf22",
      "name": "Enforcement Decision Agent",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1312,
        832
      ]
    },
    {
      "id": "7d9d4a8a-0656-44cb-a6bd-377b3831b45d",
      "name": "Policy Monitoring Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        592,
        1040
      ]
    },
    {
      "id": "60628091-0dd6-49e6-956b-497b4bf3abe6",
      "name": "Appeals Review Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1104,
        1040
      ]
    },
    {
      "id": "18eb0c76-7989-45a2-8940-ac4e223b8c23",
      "name": "Enforcement Decision Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1392,
        1040
      ]
    },
    {
      "id": "fa3d6f94-35a2-4c60-8bf9-30248a047570",
      "name": "Output Parser Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1680,
        1040
      ]
    },
    {
      "id": "98e19c91-4844-4bf1-8887-fc05e2198102",
      "name": "Compliance Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        752,
        1056
      ]
    },
    {
      "id": "43691cf0-9e8f-4446-84b8-758950ef9fe0",
      "name": "Violation Severity Scorer",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        880,
        1056
      ]
    },
    {
      "id": "a9383de6-f2dd-4f1c-a954-f3f55314b843",
      "name": "Route Enforcement Action",
      "type": "n8n-nodes-base.switch",
      "position": [
        1968,
        544
      ]
    },
    {
      "id": "61671c1e-5fa5-4b8e-8478-f813ccb7451b",
      "name": "Prepare Audit Log",
      "type": "n8n-nodes-base.set",
      "position": [
        2192,
        608
      ]
    },
    {
      "id": "d592f7d2-6bcc-42bf-aff7-a0970dc879af",
      "name": "Enforcement Audit Trail",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2416,
        608
      ]
    },
    {
      "id": "4f58b8b2-dbd9-441f-aeec-d617d1b1d25b",
      "name": "Send Warning Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2880,
        784
      ]
    },
    {
      "id": "8d4818a7-883d-4491-99a1-a0c1dcfdf1ce",
      "name": "Send Suspension Notice",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2880,
        976
      ]
    },
    {
      "id": "1dcfb679-52dd-478c-a24b-db90daae9e66",
      "name": "Notify Compliance Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2656,
        1008
      ]
    },
    {
      "id": "91887fe3-6d9f-4454-9e3e-05138e629ac2",
      "name": "Send Appeal Decision",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2880,
        592
      ]
    },
    {
      "id": "09f99b94-7ad5-4038-918c-fdbd85563c54",
      "name": "Seller Compliance Records",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        3328,
        688
      ]
    },
    {
      "id": "a8ab9b70-aa43-45e0-a208-7317ac346a70",
      "name": "Prepare Seller Record",
      "type": "n8n-nodes-base.set",
      "position": [
        3104,
        688
      ]
    },
    {
      "id": "3ad0844c-9c58-4166-8f6b-59a277343f7b",
      "name": "Route Notifications",
      "type": "n8n-nodes-base.switch",
      "position": [
        2656,
        752
      ]
    },
    {
      "id": "1222b060-b7b4-40b1-9234-175e75096a71",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -16
      ],
      "parameters": {
        "width": 464,
        "height": 384,
        "content": "## Prerequisites\n- Gmail account with OAuth2 credentials\n- Slack workspace and bot token\n- Database or Google Sheets for audit and records storage\n## Use Cases\n- Automated suspension and warning issua"
      }
    },
    {
      "id": "6cd21534-e4d9-4f3a-bb81-4391eec6ec0c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        112
      ],
      "parameters": {
        "width": 384,
        "height": 256,
        "content": "## Setup Steps\n1. Configure webhook URL in **Receive Seller Data** node and secure with authentication.\n2. Set AI model credentials (OpenAI/Anthropic) in all agent and model nodes.\n3. Add Slack creden"
      }
    },
    {
      "id": "d88f9b37-1fac-4d67-b37a-21cadf51aa40",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        96
      ],
      "parameters": {
        "width": 576,
        "height": 288,
        "content": "## How It Works\nThis workflow automates marketplace seller compliance monitoring and enforcement for platform trust, legal, and operations teams. It receives seller data via webhook, routes it through"
      }
    },
    {
      "id": "fabbdf5c-b3bb-4fdc-b01a-0297a6a45e36",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        416
      ],
      "parameters": {
        "width": 672,
        "height": 880,
        "content": "## Audit & Route Actions\n**What** — Formats audit log, writes to Enforcement Audit Trail, routes enforcement action.\n**Why** — Guarantees full traceability and triggers the correct downstream response"
      }
    },
    {
      "id": "0940168c-d1bf-415d-b55b-193827381e42",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        432
      ],
      "parameters": {
        "width": 864,
        "height": 848,
        "content": "## Appeals & Enforcement Decision\n**What** — Appeals Review Agent and Enforcement Decision Agent evaluate case in parallel.\n**Why** — Separates appeals logic from enforcement to ensure fair, independe"
      }
    },
    {
      "id": "ddb3f5b7-579f-432c-b517-6442b8d96b33",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        432
      ],
      "parameters": {
        "width": 752,
        "height": 800,
        "content": "## Policy & Violation Analysis\n**What** — Policy Monitoring Agent scores compliance; Violation Severity Scorer calculates risk level.\n**Why** — Quantifies risk objectively, removing human bias from in"
      }
    },
    {
      "id": "4707d11e-a756-411b-bb0a-d3d5a1b7e7e8",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2608,
        400
      ],
      "parameters": {
        "width": 944,
        "height": 896,
        "content": "## Notify & Record\n**What** — Sends Gmail decisions, warning emails, Slack alerts, suspension notices; updates seller records.\n**Why** — Closes the loop with all stakeholders and maintains a live comp"
      }
    }
  ],
  "connections": {
    "Governance Agent": {
      "main": [
        [
          {
            "node": "Route Enforcement Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Governance Model": {
      "ai_languageModel": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Governance Memory": {
      "ai_memory": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Audit Log": {
      "main": [
        [
          {
            "node": "Enforcement Audit Trail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Warning Email": {
      "main": [
        [
          {
            "node": "Prepare Seller Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output Parser Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Enforcement Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Receive Seller Data": {
      "main": [
        [
          {
            "node": "Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Notifications": {
      "main": [
        [
          {
            "node": "Send Warning Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Suspension Notice",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Appeal Decision",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Appeal Decision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Appeals Review Agent": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Appeals Review Model": {
      "ai_languageModel": [
        [
          {
            "node": "Appeals Review Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Appeal Decision": {
      "main": [
        [
          {
            "node": "Prepare Seller Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Calculator": {
      "ai_tool": [
        [
          {
            "node": "Policy Monitoring Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Seller Record": {
      "main": [
        [
          {
            "node": "Seller Compliance Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Suspension Notice": {
      "main": [
        [
          {
            "node": "Prepare Seller Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enforcement Audit Trail": {
      "main": [
        [
          {
            "node": "Notify Compliance Team",
            "type": "main",
            "index": 0
          },
          {
            "node": "Route Notifications",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Policy Monitoring Agent": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Policy Monitoring Model": {
      "ai_languageModel": [
        [
          {
            "node": "Policy Monitoring Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route Enforcement Action": {
      "main": [
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Violation Severity Scorer": {
      "ai_tool": [
        [
          {
            "node": "Policy Monitoring Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Enforcement Decision Agent": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Enforcement Decision Model": {
      "ai_languageModel": [
        [
          {
            "node": "Enforcement Decision Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Enforcement Output": {
      "ai_outputParser": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}