{
  "name": "Monitor academic integrity signals with GPT-4o, email alerts and case archiving",
  "nodes": [
    {
      "id": "5fe6ea16-d1c1-4ca3-95e3-15162bd1b78c",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -48,
        192
      ]
    },
    {
      "id": "0017ceb9-f1e9-43a6-ab54-bae6b9df9e54",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        176,
        192
      ]
    },
    {
      "id": "662519bb-412b-4220-9128-244a5ade6c53",
      "name": "Simulate Assessment Data",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        192
      ]
    },
    {
      "id": "0dc63e8a-031c-4072-8676-4a5dd8dccce1",
      "name": "OpenAI Model - Integrity Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        608,
        416
      ]
    },
    {
      "id": "2a0a50db-177a-4164-932d-f41b67d10690",
      "name": "Structured Output - Integrity Signals",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        800,
        400
      ]
    },
    {
      "id": "447d3db2-ed4e-49b6-ac62-62a714045840",
      "name": "Integrity Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        624,
        192
      ]
    },
    {
      "id": "2594646d-4cd2-4b19-92d8-dfc7b5410e41",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        976,
        160
      ]
    },
    {
      "id": "883a7dca-fe1e-4c5b-93df-a74c5dadd602",
      "name": "OpenAI Model - Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        592
      ]
    },
    {
      "id": "4f850fb2-f32b-4fd2-9e29-8aa584d63fee",
      "name": "OpenAI Model - Investigation Tool",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1680,
        944
      ]
    },
    {
      "id": "9748d48e-627f-49d7-a36b-32b12d3a9bd9",
      "name": "Investigation Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1664,
        736
      ]
    },
    {
      "id": "1dbf5be1-3dfb-492a-92e9-3f52976514a4",
      "name": "Structured Output - Investigation",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1856,
        928
      ]
    },
    {
      "id": "6eb3e8e9-1734-4cf0-bf42-7d328b670602",
      "name": "Structured Output - Orchestration",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1952,
        736
      ]
    },
    {
      "id": "71e1bbc6-3eba-4e9a-b421-173a48b1c050",
      "name": "Case Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1328,
        368
      ]
    },
    {
      "id": "d22125b9-7be0-478a-813c-d7f896e50bd6",
      "name": "Check if Human Review Required",
      "type": "n8n-nodes-base.if",
      "position": [
        1856,
        464
      ]
    },
    {
      "id": "8bbac9bc-1aae-4a3e-92c9-9ca4bdf7bf85",
      "name": "Store Case for Human Review",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2064,
        416
      ]
    },
    {
      "id": "a02eee01-81d3-4594-bbc8-752df359afaf",
      "name": "Send Human Review Alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2288,
        416
      ]
    },
    {
      "id": "d465a216-f596-4645-b7ec-426ef942ade1",
      "name": "Wait for Human Decision",
      "type": "n8n-nodes-base.wait",
      "position": [
        2512,
        416
      ]
    },
    {
      "id": "730e4755-a854-47db-b229-456983f25889",
      "name": "Store Automated Case",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2512,
        608
      ]
    },
    {
      "id": "b01fbfb9-d868-47d2-85d9-428e860255bc",
      "name": "Merge All Cases",
      "type": "n8n-nodes-base.merge",
      "position": [
        2736,
        400
      ]
    },
    {
      "id": "5fcb0ca7-9844-4980-9b0e-5bb9af63030f",
      "name": "Archive All Cases",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2960,
        416
      ]
    },
    {
      "id": "3bcdb920-06ca-4333-8443-17ac1a29423d",
      "name": "Prepare Low Risk Response",
      "type": "n8n-nodes-base.set",
      "position": [
        2288,
        144
      ]
    },
    {
      "id": "cee7b6b3-da3e-4ea9-9681-8b63f27145e5",
      "name": "Store Low Risk Case",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2512,
        144
      ]
    },
    {
      "id": "fc1ddd30-1316-4599-ae58-71bd1a8bed4f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        -352
      ],
      "parameters": {
        "width": 496,
        "height": 320,
        "content": "## Prerequisites\nAPI key, Gmail account with app password\n## Use Cases\nFinancial fraud detection, employee misconduct investigation\n## Customization\nIntegrate case management systems, add industry-spe"
      }
    },
    {
      "id": "399f018b-0496-4549-887e-2e4151672028",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -272
      ],
      "parameters": {
        "width": 368,
        "height": 256,
        "content": "## Setup Steps\n1. Configure Llama-3.1-70B-Instruct model access\n2. Set up schedule trigger for daily or continuous monitoring cycles\n3. Configure risk-based routing logic (Low/High thresholds)\n4. Conn"
      }
    },
    {
      "id": "a9167746-2d2a-4984-be76-d31837300ff7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -272
      ],
      "parameters": {
        "width": 624,
        "height": 288,
        "content": "## How It Works\nThis workflow automates integrity signal detection and investigation orchestration for compliance officers, ethics teams, and risk managers in financial services, healthcare, and regul"
      }
    },
    {
      "id": "c789e0bb-b0fc-4b12-a7fd-d4fb51c0bf45",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        64
      ],
      "parameters": {
        "width": 1568,
        "height": 1280,
        "content": "\n## Investigation Analysis\nIdentifies unusual activities warranting deeper investigation through quantitative evidence discovery."
      }
    },
    {
      "id": "56229de1-d162-48a7-b42a-89608f0b064c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        48
      ],
      "parameters": {
        "width": 640,
        "height": 992,
        "content": "## Data Orchestration \nReveals systemic patterns and repeat offenders that isolated signal analysis would miss."
      }
    },
    {
      "id": "d536c889-353c-4acc-beb1-aa7f378f985e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        48
      ],
      "parameters": {
        "width": 1024,
        "height": 544,
        "content": "## Integrity Assessment \nPrioritizes investigation resources on high-risk matters requiring immediate attention versus routine monitoring."
      }
    }
  ],
  "connections": {
    "Merge All Cases": {
      "main": [
        [
          {
            "node": "Archive All Cases",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Prepare Low Risk Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Case Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Case Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Low Risk Case": {
      "main": [
        [
          {
            "node": "Merge All Cases",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Store Automated Case": {
      "main": [
        [
          {
            "node": "Merge All Cases",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Integrity Signal Agent": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Simulate Assessment Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Human Review Alert": {
      "main": [
        [
          {
            "node": "Wait for Human Decision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Human Decision": {
      "main": [
        [
          {
            "node": "Merge All Cases",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Case Orchestration Agent": {
      "main": [
        [
          {
            "node": "Check if Human Review Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Investigation Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Case Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simulate Assessment Data": {
      "main": [
        [
          {
            "node": "Integrity Signal Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Low Risk Response": {
      "main": [
        [
          {
            "node": "Store Low Risk Case",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Case for Human Review": {
      "main": [
        [
          {
            "node": "Send Human Review Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Human Review Required": {
      "main": [
        [
          {
            "node": "Store Case for Human Review",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store Automated Case",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Integrity Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Integrity Signal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Investigation Tool": {
      "ai_languageModel": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Investigation": {
      "ai_outputParser": [
        [
          {
            "node": "Investigation Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Orchestration": {
      "ai_outputParser": [
        [
          {
            "node": "Case Orchestration Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Orchestration Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Case Orchestration Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output - Integrity Signals": {
      "ai_outputParser": [
        [
          {
            "node": "Integrity Signal Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}