{
  "name": "Automate privacy risk detection, approvals, and audit reports with GPT-4o, Slack, Gmail, and Google Sheets",
  "nodes": [
    {
      "id": "be240d97-62a3-4ece-a1a0-87633a027045",
      "name": "Data Usage Event Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        352
      ]
    },
    {
      "id": "ffe51626-f2a0-4648-b7de-af9951a0fc89",
      "name": "Scheduled Compliance Audit",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        256,
        544
      ]
    },
    {
      "id": "020a340f-81df-4f71-a7fc-b4bc0c8a8c06",
      "name": "Privacy Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        736,
        432
      ]
    },
    {
      "id": "1794c4c5-0d29-4d64-ab5b-77045cce9c64",
      "name": "Governance Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        544,
        544
      ]
    },
    {
      "id": "934331d7-cb46-4b3f-a63f-8177ad6dc118",
      "name": "Compliance Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2432,
        928
      ]
    },
    {
      "id": "1d30b32e-feb9-403b-9649-bcb5ef60dda0",
      "name": "Data Privacy Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        672,
        704
      ]
    },
    {
      "id": "3c539d18-cfda-4874-bcc1-ef9485a6162a",
      "name": "Privacy Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        672,
        880
      ]
    },
    {
      "id": "ce9d6a2d-c3e7-43c8-8e80-bcfc5513bc5d",
      "name": "Risk Detection Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1488,
        848
      ]
    },
    {
      "id": "2f679c51-977a-448d-a50f-fe5413fa9f5f",
      "name": "Risk Agent Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1568,
        1056
      ]
    },
    {
      "id": "3987ee62-90c7-42f1-97aa-0cfa7749afb1",
      "name": "Legal Database API Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        832,
        912
      ]
    },
    {
      "id": "740f444b-5caf-4345-904c-4cf8b7370ef5",
      "name": "Audit Log Tool",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1776,
        848
      ]
    },
    {
      "id": "5ad61831-00ed-4498-bcfd-620c6f676b0c",
      "name": "Approval Request Tool",
      "type": "n8n-nodes-base.slackHitlTool",
      "position": [
        2016,
        928
      ]
    },
    {
      "id": "6bcc8f5a-2a4e-4fb4-9cb8-f688e035afc0",
      "name": "Slack Notification Tool",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        2096,
        1136
      ]
    },
    {
      "id": "40ce2a2a-a394-4a58-bce3-d059bb477646",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        1936,
        416
      ]
    },
    {
      "id": "fa5a37a3-267e-4b48-8fa8-d1d57a9af833",
      "name": "Prepare Critical Alert",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        304
      ]
    },
    {
      "id": "8b3fc8db-f2db-4438-94d0-48661ad0d714",
      "name": "Prepare High Risk Alert",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        592
      ]
    },
    {
      "id": "b33a6020-b749-45f4-8304-b6e6e61cf03b",
      "name": "Send Critical Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2384,
        304
      ]
    },
    {
      "id": "3440a176-4deb-4475-a47e-4436a313a627",
      "name": "Send High Risk Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2384,
        592
      ]
    },
    {
      "id": "fd0b67e4-37e4-42b4-86a9-48428767d02d",
      "name": "Prepare Audit Record",
      "type": "n8n-nodes-base.set",
      "position": [
        2656,
        448
      ]
    },
    {
      "id": "eb3a95ea-5cc6-48a0-adc6-1af61c8469cc",
      "name": "Store Compliance Record",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2832,
        448
      ]
    },
    {
      "id": "302fa176-ecf9-4d66-af4f-203f46d8111d",
      "name": "Prepare Compliance Report",
      "type": "n8n-nodes-base.set",
      "position": [
        3056,
        448
      ]
    },
    {
      "id": "6a9d4fe0-38f5-4184-b809-fe70385135d2",
      "name": "Send Compliance Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3280,
        448
      ]
    },
    {
      "id": "6fbd070a-b0d5-4e0d-96f6-91df8b6358b1",
      "name": "Approval History Tool",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        2304,
        928
      ]
    },
    {
      "id": "2686d0a7-5674-4894-96a0-ee54fee62573",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        -128
      ],
      "parameters": {
        "width": 656,
        "height": 368,
        "content": "## How It Works\nThis workflow automates data privacy compliance governance for privacy officers, legal operations teams, and data protection leads. It eliminates the manual effort of monitoring data u"
      }
    },
    {
      "id": "aa1f8291-6b7e-46ae-b660-648ccd8f41e0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        -224
      ],
      "parameters": {
        "width": 624,
        "height": 416,
        "content": "## Prerequisites\n- OpenAI API key (or compatible LLM)\n- Slack workspace with bot credentials\n- Gmail account with OAuth credentials\n- Google Sheets with compliance and audit tabs pre-created\n## Use Ca"
      }
    },
    {
      "id": "98e35ad8-00ac-49cb-9101-b57042b60906",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        -112
      ],
      "parameters": {
        "width": 448,
        "height": 304,
        "content": "## Setup Steps\n1. Import workflow; configure the Data Usage Event Trigger webhook URL and Scheduled Compliance Audit interval.\n2. Add AI model credentials to the Privacy Governance Agent, Data Privacy"
      }
    },
    {
      "id": "9fa41519-3085-4b69-ae92-56e8cdaa800e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        752
      ],
      "parameters": {
        "width": 784,
        "height": 528,
        "content": "## Approval Request & Slack Notification Tool\n**Why** — Routes privacy approval requests via Slack, enabling rapid human-in-the-loop governance without email bottlenecks.\n"
      }
    },
    {
      "id": "4bb3e34d-a158-4c81-9ba4-653cecef6b57",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        736
      ],
      "parameters": {
        "width": 752,
        "height": 592,
        "content": "\n## Risk Detection Agent & Audit Log Tool\n**Why** — Classifies each event by risk level and logs it\n immediately, creating an unbroken audit trail before any routing decision is made."
      }
    },
    {
      "id": "13bc44e7-d9eb-43dd-9441-ab2b29834f0a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        256
      ],
      "parameters": {
        "width": 976,
        "height": 800,
        "content": "## Data Privacy Agent & Legal Database API Tool\n**Why** — Evaluates data usage against legal privacy frameworks, ensuring policy assessments are grounded in current regulatory references."
      }
    },
    {
      "id": "9a7aee51-a463-4c61-97e4-b0a5395b2c9b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        224
      ],
      "parameters": {
        "width": 848,
        "height": 512,
        "content": "## Route by Risk Level\n**Why** — Rules-based routing separates critical and high-risk events for proportionate, parallel alert handling without manual triage."
      }
    },
    {
      "id": "08fa10c0-ce3f-48d3-aa99-88612753952a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        224
      ],
      "parameters": {
        "width": 880,
        "height": 528,
        "content": "## Audit Record, Compliance Storage & Report Distribution\n**Why** — Every event generates an audit record stored in Google Sheets; a compliance report is prepared and distributed via Gmail to maintain"
      }
    }
  ],
  "connections": {
    "Audit Log Tool": {
      "ai_tool": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Risk Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Detection Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Privacy Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Data Privacy Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Prepare Critical Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare High Risk Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Record",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Audit Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Critical Alert": {
      "main": [
        [
          {
            "node": "Prepare Audit Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Audit Record": {
      "main": [
        [
          {
            "node": "Store Compliance Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send High Risk Alert": {
      "main": [
        [
          {
            "node": "Prepare Audit Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Approval History Tool": {
      "ai_tool": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Approval Request Tool": {
      "ai_tool": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Governance Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Critical Alert": {
      "main": [
        [
          {
            "node": "Send Critical Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data Privacy Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Legal Database API Tool": {
      "ai_tool": [
        [
          {
            "node": "Data Privacy Agent Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare High Risk Alert": {
      "main": [
        [
          {
            "node": "Send High Risk Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Notification Tool": {
      "ai_tool": [
        [
          {
            "node": "Approval Request Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Store Compliance Record": {
      "main": [
        [
          {
            "node": "Prepare Compliance Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Data Usage Event Trigger": {
      "main": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Privacy Governance Agent": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Compliance Report": {
      "main": [
        [
          {
            "node": "Send Compliance Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Detection Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Scheduled Compliance Audit": {
      "main": [
        [
          {
            "node": "Privacy Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}