{
  "name": "Validate clinical trial and lab signals with OpenAI for regulatory governance",
  "nodes": [
    {
      "id": "1e4ed022-6987-4eae-aafc-93d7efb4adda",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -448,
        272
      ]
    },
    {
      "id": "c49c62c3-310d-4a47-a0c3-6195f3aad8c9",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        272
      ]
    },
    {
      "id": "11573ff8-e1d2-468d-9d58-15385cb7c21a",
      "name": "Fetch Clinical Trial Signals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        176
      ]
    },
    {
      "id": "1252e96d-d5ff-4aaf-904b-c25b4c361ed1",
      "name": "Fetch Lab & Production Signals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        368
      ]
    },
    {
      "id": "f0f43124-629a-4da1-887c-f2ca84032ce0",
      "name": "Merge Signal Sources",
      "type": "n8n-nodes-base.merge",
      "position": [
        224,
        272
      ]
    },
    {
      "id": "5e014cc7-6966-49c0-b21f-f7ae295757ea",
      "name": "OpenAI Model - Clinical Signal Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        456,
        416
      ]
    },
    {
      "id": "85d39f61-d32a-4abb-b648-6eb6a1d5e6f8",
      "name": "Clinical Signal Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        584,
        416
      ]
    },
    {
      "id": "b706a2cb-f964-4e28-8e6f-5ab367cd58ec",
      "name": "Clinical Signal Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        448,
        192
      ]
    },
    {
      "id": "2bf39ff7-352b-44bd-91dc-4ea809eb3873",
      "name": "OpenAI Model - Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        808,
        416
      ]
    },
    {
      "id": "0be3d670-4146-490a-ab54-2d8adb767a5b",
      "name": "Governance Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        936,
        416
      ]
    },
    {
      "id": "e6eaefa4-bc76-4e2d-9077-013c4163be9d",
      "name": "Regulatory Governance Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        800,
        192
      ]
    },
    {
      "id": "63fc7eb9-4cbc-47a4-84a0-6a2e64fa8af3",
      "name": "Route by Governance Action",
      "type": "n8n-nodes-base.switch",
      "position": [
        1216,
        320
      ]
    },
    {
      "id": "5050efb5-a8a3-46be-877b-e4372cf47ba6",
      "name": "Log Regulatory Report",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1440,
        144
      ]
    },
    {
      "id": "68fc4ec6-fc12-484d-bf95-dda7bf461acd",
      "name": "Log Batch Release",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1440,
        336
      ]
    },
    {
      "id": "04a62849-a93b-4144-b4f3-7bb0911d0606",
      "name": "Log Post-Market Surveillance",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1440,
        528
      ]
    },
    {
      "id": "d1c6c582-79d1-4bae-b001-41f56dcb0bd5",
      "name": "Check Quality Escalation Required",
      "type": "n8n-nodes-base.if",
      "position": [
        1664,
        288
      ]
    },
    {
      "id": "ab1395d3-2296-4ff6-8611-55880a0f0dab",
      "name": "Escalate to Quality Team",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1888,
        208
      ]
    },
    {
      "id": "4b66f861-78b3-45b5-b0b7-74df06859694",
      "name": "Audit Trail - All Actions",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        2144,
        384
      ]
    },
    {
      "id": "8291accb-a69b-43ed-8db2-0570ecf3aa47",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -320
      ],
      "parameters": {
        "width": 736,
        "height": 288,
        "content": "\n## How It Works\nThis workflow automates clinical trial signal validation and regulatory governance through intelligent AI-driven oversight. Designed for clinical research organizations, pharmaceutica"
      }
    },
    {
      "id": "44d85554-fcb5-4010-a20a-6ac8c331e3d5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -400
      ],
      "parameters": {
        "width": 432,
        "height": 368,
        "content": "## Setup Steps\n1. Configure Schedule Trigger with monitoring frequency for trial oversight\n2. Connect Workflow Configuration node with trial parameters and compliance rules\n3. Set up Fetch Clinical Tr"
      }
    },
    {
      "id": "db4c6572-a8e9-4b0c-8ff2-a131c48f0b04",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -400
      ],
      "parameters": {
        "width": 480,
        "height": 368,
        "content": "## Prerequisites\nOpenAI or Nvidia API credentials for AI validation agents, clinical trial database API access\n## Use Cases\nPharmaceutical companies managing Phase III trial monitoring, CROs overseein"
      }
    },
    {
      "id": "38146c6d-1607-47ed-8e6f-57d030477221",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        16
      ],
      "parameters": {
        "width": 1136,
        "height": 672,
        "content": "## Governance-Driven Action Routing\n**What:** Routes validated findings through governance-specific workflows with parallel logging streams and quality team escalation\n**Why:** Ensures regulatory-mand"
      }
    },
    {
      "id": "173e2dea-339b-4cbb-9575-d58bc07c57af",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        32
      ],
      "parameters": {
        "width": 720,
        "height": 608,
        "content": "## Dual-Agent Validation Framework\n**What:** Processes merged data through parallel AI agents for clinical signal validation and governance compliance assessment\n**Why:** Separates clinical safety eva"
      }
    },
    {
      "id": "a719c280-57d0-4bd0-b2af-c1550ccfe541",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        32
      ],
      "parameters": {
        "width": 848,
        "height": 624,
        "content": "## Multi-Source Clinical Data Integration\n**What:** Fetches and merges clinical trial data with laboratory production signals on scheduled intervals for unified compliance monitoring\n**Why:** Ensures "
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Batch Release": {
      "main": [
        [
          {
            "node": "Check Quality Escalation Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Signal Sources": {
      "main": [
        [
          {
            "node": "Clinical Signal Validation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Regulatory Report": {
      "main": [
        [
          {
            "node": "Check Quality Escalation Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Clinical Trial Signals",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Lab & Production Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Escalate to Quality Team": {
      "main": [
        [
          {
            "node": "Audit Trail - All Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Governance Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Regulatory Governance Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Route by Governance Action": {
      "main": [
        [
          {
            "node": "Log Regulatory Report",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Batch Release",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Post-Market Surveillance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Regulatory Governance Agent": {
      "main": [
        [
          {
            "node": "Route by Governance Action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Clinical Trial Signals": {
      "main": [
        [
          {
            "node": "Merge Signal Sources",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Post-Market Surveillance": {
      "main": [
        [
          {
            "node": "Check Quality Escalation Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clinical Signal Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Clinical Signal Validation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Lab & Production Signals": {
      "main": [
        [
          {
            "node": "Merge Signal Sources",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "OpenAI Model - Governance Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Regulatory Governance Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Clinical Signal Validation Agent": {
      "main": [
        [
          {
            "node": "Regulatory Governance Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Quality Escalation Required": {
      "main": [
        [
          {
            "node": "Escalate to Quality Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Audit Trail - All Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Clinical Signal Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Clinical Signal Validation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}