{
  "name": "Manage clinical trial e-consent and compliance with Claude AI and Google Sheets",
  "nodes": [
    {
      "id": "e88cf9f1-ba27-4451-b167-6b0418d5609a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        352
      ],
      "parameters": {
        "width": 780,
        "height": 1208,
        "content": "## Clinical Trial Consent Management with Digital Audit Trail & Claude AI\n\nThis workflow automates end-to-end e-consent management for clinical trials. It captures, validates, timestamps, and stores c"
      }
    },
    {
      "id": "96e0990d-4474-4654-b0f2-6556b9cbe879",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2416,
        512
      ],
      "parameters": {
        "width": 440,
        "height": 328,
        "content": "## 1. Consent Capture & Validation"
      }
    },
    {
      "id": "caec55ae-0a7e-41f9-ab11-9fa69b523a5d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        368
      ],
      "parameters": {
        "width": 812,
        "height": 668,
        "content": "## 2. AI Compliance Review & Audit Record"
      }
    },
    {
      "id": "bca0a4dc-304f-4b13-ac60-d354b5fd010f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3760,
        352
      ],
      "parameters": {
        "width": 1104,
        "height": 700,
        "content": "## 3. Store, Notify & Confirm"
      }
    },
    {
      "id": "e149384d-b0a1-4da8-b6d9-ec51905bc962",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        1200
      ],
      "parameters": {
        "width": 1380,
        "height": 364,
        "content": "## 4. Daily Compliance Sweep & Reporting"
      }
    },
    {
      "id": "da0e9618-4357-4f8a-937d-8df15dea93ce",
      "name": "Receive E-Consent Submission",
      "type": "n8n-nodes-base.webhook",
      "position": [
        2496,
        672
      ]
    },
    {
      "id": "ab1e8bff-aadd-4e2c-8224-2aec49e033f0",
      "name": "Validate and Timestamp Consent",
      "type": "n8n-nodes-base.code",
      "position": [
        2720,
        672
      ]
    },
    {
      "id": "6b0c850c-0e87-451b-9c10-e8b9281bfaf5",
      "name": "Verify E-Signature via DocuSign",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3024,
        496
      ]
    },
    {
      "id": "4b31dd58-83b6-446d-8b76-27a9d427a184",
      "name": "Check for Duplicate Consent Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3024,
        688
      ]
    },
    {
      "id": "a9e844d2-2e3d-426f-8d6d-558bff604a6b",
      "name": "Flag Duplicate or Proceed",
      "type": "n8n-nodes-base.if",
      "position": [
        3248,
        656
      ]
    },
    {
      "id": "050aead2-e829-4259-ad1b-bc23afd0d81f",
      "name": "Claude AI GCP Compliance Review",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3472,
        656
      ]
    },
    {
      "id": "fe175773-5a1a-49c2-95ff-5f98fe0d8d8f",
      "name": "Claude AI Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        3552,
        880
      ]
    },
    {
      "id": "3c8cb26f-48a0-41c7-a8e8-00ffb5574e3a",
      "name": "Parse Compliance Review",
      "type": "n8n-nodes-base.code",
      "position": [
        3824,
        656
      ]
    },
    {
      "id": "f1c2f9dc-e0c7-4cfe-b68a-c5e247c9910c",
      "name": "Store Consent Record with Audit Trail",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4048,
        464
      ]
    },
    {
      "id": "173d56ab-1b79-4b9c-9b33-9972486d405e",
      "name": "Notify Principal Investigator",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        4048,
        656
      ]
    },
    {
      "id": "783a0604-20f4-4e91-b522-b761a0432fd0",
      "name": "Send Confirmation to Participant",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        4048,
        848
      ]
    },
    {
      "id": "4a0486bc-3b33-428c-a2f0-3f53d6d20e25",
      "name": "Build Consent Response",
      "type": "n8n-nodes-base.code",
      "position": [
        4272,
        688
      ]
    },
    {
      "id": "497ab26c-e10e-45cb-a84e-94df987cac8d",
      "name": "Send Consent Confirmation Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        4672,
        688
      ]
    },
    {
      "id": "8976b60f-de32-4c40-b808-ef3fcf511e9b",
      "name": "Daily Compliance Sweep Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2528,
        1360
      ]
    },
    {
      "id": "330cab51-d88a-4ce7-bd00-07bc1415e221",
      "name": "Fetch All Active Consent Records",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2752,
        1360
      ]
    },
    {
      "id": "f5b79833-231e-4179-8bcb-161e7cb8ff38",
      "name": "Analyse Expiring and Missing Consents",
      "type": "n8n-nodes-base.code",
      "position": [
        3024,
        1360
      ]
    },
    {
      "id": "ffd2c899-417c-47b4-8fc3-5e5374c8d563",
      "name": "Send Daily Compliance Report to PI",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        3280,
        1360
      ]
    },
    {
      "id": "10116069-9175-47c3-a5a9-eb13fbf9afb5",
      "name": "Log Sweep Results to Audit Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3584,
        1360
      ]
    },
    {
      "id": "657fb697-1b0d-433b-9ff1-e05e6ae8ff4e",
      "name": "Wait For Load",
      "type": "n8n-nodes-base.wait",
      "position": [
        4480,
        688
      ]
    }
  ],
  "connections": {
    "Wait For Load": {
      "main": [
        [
          {
            "node": "Send Consent Confirmation Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude AI Model": {
      "ai_languageModel": [
        [
          {
            "node": "Claude AI GCP Compliance Review",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Build Consent Response": {
      "main": [
        [
          {
            "node": "Wait For Load",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Compliance Review": {
      "main": [
        [
          {
            "node": "Store Consent Record with Audit Trail",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Principal Investigator",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Confirmation to Participant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flag Duplicate or Proceed": {
      "main": [
        [
          {
            "node": "Claude AI GCP Compliance Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive E-Consent Submission": {
      "main": [
        [
          {
            "node": "Validate and Timestamp Consent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Principal Investigator": {
      "main": [
        [
          {
            "node": "Build Consent Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Compliance Sweep Trigger": {
      "main": [
        [
          {
            "node": "Fetch All Active Consent Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate and Timestamp Consent": {
      "main": [
        [
          {
            "node": "Verify E-Signature via DocuSign",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check for Duplicate Consent Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Claude AI GCP Compliance Review": {
      "main": [
        [
          {
            "node": "Parse Compliance Review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify E-Signature via DocuSign": {
      "main": [
        [
          {
            "node": "Flag Duplicate or Proceed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch All Active Consent Records": {
      "main": [
        [
          {
            "node": "Analyse Expiring and Missing Consents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Confirmation to Participant": {
      "main": [
        [
          {
            "node": "Build Consent Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Duplicate Consent Record": {
      "main": [
        [
          {
            "node": "Flag Duplicate or Proceed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Daily Compliance Report to PI": {
      "main": [
        [
          {
            "node": "Log Sweep Results to Audit Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyse Expiring and Missing Consents": {
      "main": [
        [
          {
            "node": "Send Daily Compliance Report to PI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Consent Record with Audit Trail": {
      "main": [
        [
          {
            "node": "Build Consent Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}