{
  "name": "Automate GDPR Consent Management with Azure OpenAI Emails and Slack Alerts",
  "nodes": [
    {
      "id": "99a66271-125c-4d38-9c5f-0cfcbf600f24",
      "name": "Overview Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        1456
      ],
      "parameters": {
        "width": 420,
        "height": 496,
        "content": "## 📝 Consent Request Banner + Preference Center Automation\n\n### How it works\nThis workflow captures user consent submissions via webhook, stores records in Google Sheets, and sends personalized confir"
      }
    },
    {
      "id": "9954700f-022c-47a9-9d1c-a46e00fc2d82",
      "name": "Trigger Section Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        1296
      ],
      "parameters": {
        "width": 388,
        "height": 672,
        "content": "## 📥 Webhook & Data Preparation\nReceives consent form submissions via POST request and extracts name, email, version, and timestamp into structured fields ready for storage."
      }
    },
    {
      "id": "18fed63f-6a2b-4250-ad29-2ba54c465efe",
      "name": "Storage Section Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        1296
      ],
      "parameters": {
        "width": 260,
        "height": 668,
        "content": "## 💾 Google Sheets Storage\nAppends or updates consent records in a centralized Google Sheet for compliance tracking and audit purposes."
      }
    },
    {
      "id": "bab6f552-3e88-4597-ac40-9133a140e169",
      "name": "AI Section Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        768,
        1296
      ],
      "parameters": {
        "width": 276,
        "height": 668,
        "content": "## 🤖 AI Email Generation\nUses Azure OpenAI to create personalized HTML confirmation emails that thank users and reassure them about data security."
      }
    },
    {
      "id": "09bf0f37-3354-43d2-bca4-d935f2e22028",
      "name": "Notifications Section Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        1296
      ],
      "parameters": {
        "width": 628,
        "height": 672,
        "content": "## 📧 Email & Slack Delivery\nSends the AI-generated confirmation email to the user and posts a formatted notification to your team's Slack channel for immediate visibility."
      }
    },
    {
      "id": "3f7558cf-e705-4f9f-bdf3-648e04622de7",
      "name": "Security Sticky",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        1216
      ],
      "parameters": {
        "width": 300,
        "height": 184,
        "content": "## 🔐 Credentials & Security\nUse OAuth2 for Google Sheets, API keys for Azure OpenAI and Slack. Configure SMTP for email delivery. Remove all personal identifiers before sharing this template."
      }
    },
    {
      "id": "91bac74a-a1f3-4931-9caf-0e2cb93ee828",
      "name": "Receive Consent Form",
      "type": "n8n-nodes-base.webhook",
      "position": [
        48,
        1504
      ]
    },
    {
      "id": "ef52d87a-9db6-46e2-a43e-e4604a9800dd",
      "name": "Store Consent Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        496,
        1504
      ]
    },
    {
      "id": "bc18b374-662f-405d-b65a-418cfc3f5dd4",
      "name": "Generate Thank You Email",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        720,
        1504
      ]
    },
    {
      "id": "99666648-fee1-46bc-ae3d-2e35b8c01b6a",
      "name": "Send Confirmation Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1296,
        1408
      ]
    },
    {
      "id": "04e1e7ae-7579-4760-b8ad-ea072ecd8b09",
      "name": "Format Email Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1072,
        1504
      ]
    },
    {
      "id": "c5d695d3-a9c5-490d-b0df-e47a17239622",
      "name": "Notify Team on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1520,
        1600
      ]
    },
    {
      "id": "856d21fb-24c3-4f8d-a4fc-f625480d9e2f",
      "name": "Format Slack Message",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        1600
      ]
    },
    {
      "id": "660d56f9-0aa4-4d42-b954-8325bebbed60",
      "name": "Prepare Consent Record1",
      "type": "n8n-nodes-base.set",
      "position": [
        272,
        1504
      ]
    },
    {
      "id": "6e8d46b5-be5b-48a3-81a7-4e7bcef14129",
      "name": "Azure OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        800,
        1728
      ]
    }
  ],
  "connections": {
    "Format Email Data": {
      "main": [
        [
          {
            "node": "Format Slack Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Slack Message": {
      "main": [
        [
          {
            "node": "Notify Team on Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Consent Form": {
      "main": [
        [
          {
            "node": "Prepare Consent Record1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Consent Record": {
      "main": [
        [
          {
            "node": "Generate Thank You Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Consent Record1": {
      "main": [
        [
          {
            "node": "Store Consent Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Thank You Email",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Thank You Email": {
      "main": [
        [
          {
            "node": "Format Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}