{
  "name": "Analyze legislative policies and route compliance actions with GPT-4o, Google Sheets, and Slack",
  "nodes": [
    {
      "id": "2e356cfa-849a-4d4a-b02d-7ca7288ad4b4",
      "name": "Legislative Document Submission",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2464,
        320
      ]
    },
    {
      "id": "a129f9b1-1ff8-4e90-ae52-4378932c1aff",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -2240,
        320
      ]
    },
    {
      "id": "ddba4005-2667-4db5-b4fd-f86aba942468",
      "name": "Fetch Legislative Document",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2016,
        320
      ]
    },
    {
      "id": "fb7c368a-cfc6-43f3-b659-400c747b7d29",
      "name": "Extract Document Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -1792,
        320
      ]
    },
    {
      "id": "551426e9-18c2-4a43-b3c7-b088ec6a841a",
      "name": "OpenAI Model - Policy Interpretation",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1552,
        544
      ]
    },
    {
      "id": "db128267-e16f-478f-ae10-29777b5f9eb7",
      "name": "Policy Analysis Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1424,
        544
      ]
    },
    {
      "id": "69622cb9-8c10-460a-b269-3cbc78ebafa5",
      "name": "Policy Interpretation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1568,
        320
      ]
    },
    {
      "id": "8adb94f3-fa80-414d-b194-8a121e48d8f4",
      "name": "OpenAI Model - Impact Assessment",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1008,
        800
      ]
    },
    {
      "id": "2e44a5c1-f540-4220-9664-9b4f17745afb",
      "name": "Impact Assessment Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -800,
        784
      ]
    },
    {
      "id": "35182b77-15ea-43c9-9f46-4841714afa6f",
      "name": "Impact Assessment Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -912,
        576
      ]
    },
    {
      "id": "7bddd84d-65f2-4b2c-8d6b-60e790737093",
      "name": "OpenAI Model - Compliance Mapping",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -624,
        784
      ]
    },
    {
      "id": "7033a0af-aab4-40af-9c90-6eb718218e48",
      "name": "Compliance Mapping Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -464,
        784
      ]
    },
    {
      "id": "20964284-8b93-408e-83a2-48c2d9c86c58",
      "name": "Compliance Mapping Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -624,
        576
      ]
    },
    {
      "id": "64a6fc49-e7a1-4046-9d03-22faee3fb508",
      "name": "OpenAI Model - Stakeholder Notification",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -288,
        784
      ]
    },
    {
      "id": "8fe0f2e3-9b51-4a68-b553-4e5c8f1813c8",
      "name": "Stakeholder Notification Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -80,
        784
      ]
    },
    {
      "id": "7b6795ae-b69b-4134-94cf-5b92cc815f0d",
      "name": "Stakeholder Notification Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -336,
        576
      ]
    },
    {
      "id": "69b5b79a-8f2e-4b91-a7df-1280cd16428f",
      "name": "OpenAI Model - Governance Orchestration",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1040,
        576
      ]
    },
    {
      "id": "526abed3-92b5-4c6c-a125-48edd48b01db",
      "name": "Governance Orchestration Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -48,
        576
      ]
    },
    {
      "id": "c6e12e6d-2841-4be2-b3b8-27b95ebf8ea3",
      "name": "Governance Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -608,
        352
      ]
    },
    {
      "id": "d63bc279-69a1-4ee1-b7f6-865cefa1c6be",
      "name": "Route by Review Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        160,
        432
      ]
    },
    {
      "id": "a9dca160-c557-414e-8629-125d6c166d67",
      "name": "Wait for Legal Review",
      "type": "n8n-nodes-base.wait",
      "position": [
        432,
        576
      ]
    },
    {
      "id": "d8df3028-f5e1-4c78-85f1-250c93e7b6b9",
      "name": "Notify Legal Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        656,
        576
      ]
    },
    {
      "id": "0571efe6-9134-4aa1-8f5c-725685392d31",
      "name": "Notify Stakeholders",
      "type": "n8n-nodes-base.slack",
      "position": [
        1104,
        576
      ]
    },
    {
      "id": "8ac1ec2c-4e4e-4654-8ad2-b4360ae9a4ec",
      "name": "Log to Compliance Tracker",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        880,
        576
      ]
    },
    {
      "id": "22241d48-31c9-4cbe-98e5-63f016f74566",
      "name": "Log Auto-Approved",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        432,
        384
      ]
    },
    {
      "id": "d34da46f-6521-40d5-9eec-d71ad88b3490",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -240
      ],
      "parameters": {
        "width": 432,
        "height": 368,
        "content": "\n## Prerequisites\nOpenAI API key, Google Sheets with OAuth2, Slack workspace with bot token \n## Use Cases\nRegulatory change management, GDPR/financial compliance monitoring, policy impact assessment\n#"
      }
    },
    {
      "id": "b77d0297-9084-42df-a36c-fc6573208e29",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        -144
      ],
      "parameters": {
        "width": 528,
        "height": 304,
        "content": "## Setup Steps\n1. Add OpenAI API key to all OpenAI Model nodes  \n2. Connect Google Sheets OAuth2 credentials; set spreadsheet IDs for Auto-Approved Log \n3. Configure Slack OAuth2 token; set target cha"
      }
    },
    {
      "id": "4915cae1-cddc-42b7-af89-d14f89f5b2a5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2496,
        -112
      ],
      "parameters": {
        "width": 960,
        "height": 256,
        "content": "## How It Works\nThis workflow automates legislative compliance analysis by coordinating multiple specialized OpenAI agents to interpret regulatory documents, evaluate organizational impact, and manage"
      }
    },
    {
      "id": "9fcd5340-b79f-4201-81ec-906e62e19b1f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2512,
        192
      ],
      "parameters": {
        "width": 864,
        "height": 736,
        "content": "## Legislative Document Ingestion\n**What** –Receives submitted legislative documents and fetches full text via HTTP.\n**Why** – Ensures complete, unprocessed source material enters the pipeline for acc"
      }
    },
    {
      "id": "6658f751-ba21-427f-a4d6-6cdc9637a634",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1632,
        192
      ],
      "parameters": {
        "width": 560,
        "height": 736,
        "content": "## Policy Interpretation Agent\n**What** –OpenAI agent parses regulatory language and extracts structured policy signals.\n**Why** – Converts dense legal text into machine-readable insights that governa"
      }
    },
    {
      "id": "392f6ef8-5eea-48f0-bb95-f9bca7bbe139",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        192
      ],
      "parameters": {
        "width": 1152,
        "height": 784,
        "content": "## Parallel Governance Agent Processing\n**What** –Impact Assessment, Compliance Mapping, and Stakeholder Notification agents run concurrently.\n**Why** – Simultaneous specialist analysis reduces proces"
      }
    },
    {
      "id": "90deaf59-3214-4ce2-914f-f70e82e463a7",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        192
      ],
      "parameters": {
        "width": 1216,
        "height": 880,
        "content": "## Route by Review Status, Notify, Log & Alert\n\n**What** – Branch based on auto-approval or escalation; log outcomes in Google Sheets, alert legal via Slack, and email stakeholders.\n**Why** – Ensures "
      }
    }
  ],
  "connections": {
    "Notify Legal Team": {
      "main": [
        [
          {
            "node": "Log to Compliance Tracker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Document Text": {
      "main": [
        [
          {
            "node": "Policy Interpretation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Legal Review": {
      "main": [
        [
          {
            "node": "Notify Legal Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Review Status": {
      "main": [
        [
          {
            "node": "Wait for Legal Review",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Auto-Approved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Legislative Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Compliance Tracker": {
      "main": [
        [
          {
            "node": "Notify Stakeholders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Legislative Document": {
      "main": [
        [
          {
            "node": "Extract Document Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Policy Interpretation Agent": {
      "main": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Impact Assessment Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Mapping Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Policy Analysis Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Policy Interpretation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Governance Orchestration Agent": {
      "main": [
        [
          {
            "node": "Route by Review Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Impact Assessment Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Impact Assessment Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Legislative Document Submission": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Mapping Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Compliance Mapping Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Impact Assessment": {
      "ai_languageModel": [
        [
          {
            "node": "Impact Assessment Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Compliance Mapping": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Mapping Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Stakeholder Notification Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Policy Interpretation": {
      "ai_languageModel": [
        [
          {
            "node": "Policy Interpretation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Governance Orchestration Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Stakeholder Notification Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Stakeholder Notification Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Governance Orchestration": {
      "ai_languageModel": [
        [
          {
            "node": "Governance Orchestration Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Stakeholder Notification": {
      "ai_languageModel": [
        [
          {
            "node": "Stakeholder Notification Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}