{
  "name": "Audit AI decisions and route risks with GPT-4.1-mini, Slack, and email reports",
  "nodes": [
    {
      "id": "ed1f223b-490f-48d3-9c90-ad0248b28f34",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1792,
        648
      ]
    },
    {
      "id": "c765a07b-858d-4785-8a1d-f6fae9365230",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1568,
        648
      ]
    },
    {
      "id": "c391c6cb-856e-4ff3-af32-d0c6c870e8f1",
      "name": "Simulate Decision Request",
      "type": "n8n-nodes-base.set",
      "position": [
        -1344,
        648
      ]
    },
    {
      "id": "b843f45d-1a54-4a29-a9fe-7019580ff96e",
      "name": "Decision Trace Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1120,
        648
      ]
    },
    {
      "id": "cf3611be-0dd8-4049-93dc-e5689f2da368",
      "name": "OpenAI Model - Decision Trace",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1112,
        872
      ]
    },
    {
      "id": "d1075189-2e11-494c-a8b7-38ddc62cbfac",
      "name": "Decision Metadata Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -984,
        872
      ]
    },
    {
      "id": "6aed8900-97e8-41c1-acc3-8c10545f7865",
      "name": "Risk Assessment Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -640,
        872
      ]
    },
    {
      "id": "5f250c67-5056-4d72-a0e9-4911eb627e72",
      "name": "OpenAI Model - Risk Assessment",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -720,
        1088
      ]
    },
    {
      "id": "af72b66e-6e58-4e0f-9052-006d02c9de3f",
      "name": "Risk Assessment Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -512,
        1072
      ]
    },
    {
      "id": "dd5bc1b9-d68b-4d3f-8c3a-7394ca37ccea",
      "name": "Compliance Checker Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -352,
        872
      ]
    },
    {
      "id": "717c444d-254e-4837-bbe7-d3dd1d07b7f6",
      "name": "OpenAI Model - Compliance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -352,
        1080
      ]
    },
    {
      "id": "e368a818-c071-4e01-8022-bb425e5ff104",
      "name": "Compliance Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -208,
        1080
      ]
    },
    {
      "id": "03278f60-0988-4d24-98b0-5bae053c5601",
      "name": "Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -488,
        648
      ]
    },
    {
      "id": "045f3e99-74c1-4adf-b264-6dcd4180aea9",
      "name": "OpenAI Model - Governance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -768,
        872
      ]
    },
    {
      "id": "62d72ab4-6dfa-4d2a-8993-db22f66b03e4",
      "name": "Governance Decision Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -96,
        928
      ]
    },
    {
      "id": "baca2d5e-6ee7-46d0-bd11-4e1f4d84e8de",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        192,
        736
      ]
    },
    {
      "id": "9136f1ba-0a65-4a3e-95ae-d11adaa526e4",
      "name": "Store Decision Audit Trail",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        512,
        1088
      ]
    },
    {
      "id": "8c409e89-0388-449d-93e1-22860f434e8a",
      "name": "Store High Risk Decisions",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        416,
        752
      ]
    },
    {
      "id": "9f7009f6-49ce-409c-a564-c38cc831eccc",
      "name": "Notify High Risk Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        640,
        656
      ]
    },
    {
      "id": "5b72a122-3c66-4c11-868d-ca757230c00e",
      "name": "Send Governance Report",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        640,
        848
      ]
    },
    {
      "id": "d4577c6d-3c9e-4939-87cf-9268b076e42c",
      "name": "Merge Notification Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        864,
        752
      ]
    },
    {
      "id": "63185db2-5e9c-4b56-9c92-f0548bd6b9c0",
      "name": "Store Explainability Report",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1088,
        752
      ]
    },
    {
      "id": "87435d8a-dc91-40fa-904a-a6a0b28c7ed8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1808,
        176
      ],
      "parameters": {
        "width": 528,
        "height": 272,
        "content": "## How It Works\nThis workflow automates AI decision governance by tracing, assessing, and auditing automated decisions for risk and compliance. Designed for AI governance officers, compliance teams, a"
      }
    },
    {
      "id": "76af6e59-1b27-48be-b8c7-fe3d6a106876",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        208
      ],
      "parameters": {
        "width": 352,
        "height": 256,
        "content": "## Setup Steps\n1. Set schedule trigger interval to match governance audit frequency.\n2. Add OpenAI API credentials to all OpenAI Model nodes.\n3. Configure Slack credentials and set high-risk alert cha"
      }
    },
    {
      "id": "f4d49f8b-b935-4e01-825f-f39a65617816",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        64
      ],
      "parameters": {
        "width": 592,
        "height": 400,
        "content": "## Prerequisites\n- Slack workspace with bot token\n- Gmail or SMTP credentials\n- Google Sheets or database for audit storage\n## Use Cases\n- Regulatory compliance auditing for AI-driven loan or insuranc"
      }
    },
    {
      "id": "6011b7c6-e183-4ef1-a771-5a0ee46e64ac",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        496
      ],
      "parameters": {
        "width": null,
        "height": 784,
        "content": "## Route by Risk Level\n**What** – Separates high-risk decisions from standard outcomes.\n**Why** – Ensures critical decisions receive immediate attention and storage."
      }
    },
    {
      "id": "fee4a6ae-84fd-4778-b952-2740c7fc109e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        512
      ],
      "parameters": {
        "width": 928,
        "height": 768,
        "content": "## Governance Agent\n**What** – Orchestrates Risk Assessment and Compliance Checker sub-agents.\n**Why** – Centralises governance logic for consistent, auditable decision review."
      }
    },
    {
      "id": "96d2b5ae-bb29-41a0-abb5-8704dfbf522c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1856,
        512
      ],
      "parameters": {
        "width": 1024,
        "height": 656,
        "content": "## Decision Trace Agent\n**What** – Extracts decision metadata using OpenAI with structured parsing.\n**Why** – Captures the full decision context needed for traceable governance."
      }
    },
    {
      "id": "558d633e-15f7-4e4d-95bb-c5d845f76dae",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        496
      ],
      "parameters": {
        "width": 400,
        "height": 784,
        "content": "## Notify & Store High-Risk Decisions\n**What** – Sends Slack alert and stores high-risk records separately.\n**Why** – Provides real-time escalation and isolated audit evidence."
      }
    },
    {
      "id": "33d32962-72ec-42f6-bad2-6c34f3eba376",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        496
      ],
      "parameters": {
        "width": 464,
        "height": 800,
        "content": "## Governance Report & Explainability Storage\n**What** – Emails governance report and stores explainability data.\n**Why** – Satisfies regulatory requirements for decision transparency."
      }
    }
  ],
  "connections": {
    "Governance Agent": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store Decision Audit Trail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Compliance Checker Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Store High Risk Decisions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Decision Trace Agent": {
      "main": [
        [
          {
            "node": "Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify High Risk Alert": {
      "main": [
        [
          {
            "node": "Merge Notification Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Assessment Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Risk Assessment Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Send Governance Report": {
      "main": [
        [
          {
            "node": "Merge Notification Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Simulate Decision Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Decision Metadata Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Decision Trace Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Merge Notification Paths": {
      "main": [
        [
          {
            "node": "Store Explainability Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Compliance": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Checker Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Governance": {
      "ai_languageModel": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simulate Decision Request": {
      "main": [
        [
          {
            "node": "Decision Trace Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store High Risk Decisions": {
      "main": [
        [
          {
            "node": "Notify High Risk Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Governance Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Governance Decision Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Risk Assessment Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Checker Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Governance Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Decision Trace": {
      "ai_languageModel": [
        [
          {
            "node": "Decision Trace Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Risk Assessment": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Assessment Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}