{
  "name": "Run multi-model research analysis and email reports with GPT-4, Claude and NVIDIA NIM",
  "nodes": [
    {
      "id": "7f8374e8-47be-476b-af21-84099ffe0241",
      "name": "LLM Request Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        928,
        1960
      ]
    },
    {
      "id": "baa4054a-1a64-466d-b099-3f5e3a91241b",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        1152,
        1960
      ]
    },
    {
      "id": "5616905c-5cbe-449d-a14c-41bb52a96ef3",
      "name": "Parse Request & Validate",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        1960
      ]
    },
    {
      "id": "3f668bc0-5e9a-4e27-9d62-b9ce59691728",
      "name": "Analyze Prompt Complexity",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        1960
      ]
    },
    {
      "id": "7fbcd725-fb37-4be8-b929-280981454365",
      "name": "Check Azure OpenAI Health",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1824,
        1768
      ]
    },
    {
      "id": "5cbf7f8d-e33f-4fbf-8976-ce5b3f8f160c",
      "name": "Check AWS Bedrock Health",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1824,
        1960
      ]
    },
    {
      "id": "a5e5565e-9668-4619-a8f1-7d45b5b72da4",
      "name": "Merge Health Checks",
      "type": "n8n-nodes-base.merge",
      "position": [
        2048,
        1960
      ]
    },
    {
      "id": "9155f3f1-8949-4b2d-b2c1-0694e25dec3d",
      "name": "Score & Rank Models",
      "type": "n8n-nodes-base.code",
      "position": [
        2272,
        1960
      ]
    },
    {
      "id": "d7a2c5ec-9580-4fc2-8112-8a070c53f8e1",
      "name": "Check Policy Constraints",
      "type": "n8n-nodes-base.if",
      "position": [
        2496,
        1960
      ]
    },
    {
      "id": "23dba12b-34ca-4e3b-be73-c23628002ec6",
      "name": "Apply Policy Routing",
      "type": "n8n-nodes-base.code",
      "position": [
        2720,
        1816
      ]
    },
    {
      "id": "8a0c5e8e-9566-4a62-a7bf-4ea58cb7a2e2",
      "name": "Route to Selected Model",
      "type": "n8n-nodes-base.switch",
      "position": [
        2944,
        1912
      ]
    },
    {
      "id": "cf08c853-68c4-4af4-8a5a-20e198b7bfdf",
      "name": "Rewrite Prompt for Azure",
      "type": "n8n-nodes-base.code",
      "position": [
        3168,
        1480
      ]
    },
    {
      "id": "e83198a9-a2c4-43fe-a54a-95df1d07be6e",
      "name": "Rewrite Prompt for AWS",
      "type": "n8n-nodes-base.code",
      "position": [
        3168,
        1720
      ]
    },
    {
      "id": "71106353-66c9-4ac6-a0c2-6fb703afa9bf",
      "name": "Rewrite Prompt for Google",
      "type": "n8n-nodes-base.code",
      "position": [
        3168,
        1912
      ]
    },
    {
      "id": "93ff3a10-55ef-4055-bf2c-90cead9e5e5f",
      "name": "Rewrite Prompt for Local",
      "type": "n8n-nodes-base.code",
      "position": [
        3168,
        2104
      ]
    },
    {
      "id": "92217e1d-c378-4b3a-a42e-c8cfaa9e46db",
      "name": "Call Azure OpenAI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3392,
        1480
      ]
    },
    {
      "id": "c6388998-9adc-4628-b474-41a5a04be133",
      "name": "Call AWS Bedrock",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3392,
        1720
      ]
    },
    {
      "id": "e92653ff-bfbe-4fd3-907f-1152cefae06d",
      "name": "Call Google Vertex AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3392,
        1912
      ]
    },
    {
      "id": "0842cfa1-25bc-481e-a10e-ad7f6f31e6cc",
      "name": "Call Local Model",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3392,
        2104
      ]
    },
    {
      "id": "aaf3d78d-a12f-4a80-b3b0-4f2e5f43f86e",
      "name": "Handle Circuit Breaker",
      "type": "n8n-nodes-base.code",
      "position": [
        3616,
        1408
      ]
    },
    {
      "id": "003a5db0-1db5-4593-aa66-5bb6bc1edda5",
      "name": "Check Retry Needed",
      "type": "n8n-nodes-base.if",
      "position": [
        3840,
        1408
      ]
    },
    {
      "id": "6d1bd635-cd97-4e8a-aeb2-bf7bf33e4de6",
      "name": "Adaptive Retry Delay",
      "type": "n8n-nodes-base.wait",
      "position": [
        4064,
        1552
      ]
    },
    {
      "id": "f24bc275-47d1-498b-82b1-4bfabb76907e",
      "name": "Merge Model Responses",
      "type": "n8n-nodes-base.merge",
      "position": [
        4064,
        1768
      ]
    },
    {
      "id": "4cf06d1b-698e-4f9f-9dbd-c52083dd5da9",
      "name": "Normalize Output",
      "type": "n8n-nodes-base.code",
      "position": [
        4288,
        1768
      ]
    },
    {
      "id": "5f4baa3c-b785-4d5a-8314-9e1b87e0314c",
      "name": "Calculate Telemetry Metrics",
      "type": "n8n-nodes-base.code",
      "position": [
        4512,
        1768
      ]
    },
    {
      "id": "724e0d2f-097b-4e90-9aa0-f07cc7f1a047",
      "name": "Assess Hallucination Risk",
      "type": "n8n-nodes-base.code",
      "position": [
        4736,
        1768
      ]
    },
    {
      "id": "8005e1aa-415a-4754-868a-0bc27e10ee99",
      "name": "Calculate Confidence Score",
      "type": "n8n-nodes-base.code",
      "position": [
        4960,
        1768
      ]
    },
    {
      "id": "8c868644-89f3-43b1-8464-708c154de750",
      "name": "Log Telemetry to Database",
      "type": "n8n-nodes-base.postgres",
      "position": [
        5184,
        1552
      ]
    },
    {
      "id": "0af43b67-0af6-484c-a69f-d9f7523ff1b9",
      "name": "Store Result in Datastore",
      "type": "n8n-nodes-base.postgres",
      "position": [
        5184,
        2032
      ]
    },
    {
      "id": "1faa9ae1-badf-4261-aa50-55c5edf1056a",
      "name": "Detect Anomalies",
      "type": "n8n-nodes-base.code",
      "position": [
        5184,
        2224
      ]
    },
    {
      "id": "8eaceaf7-f1cf-4ce3-97a5-81406932c8c6",
      "name": "Check Anomaly Threshold",
      "type": "n8n-nodes-base.if",
      "position": [
        5408,
        2224
      ]
    },
    {
      "id": "dd4a07bb-7396-4e8a-8abe-1831a6632f48",
      "name": "Send Anomaly Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        5632,
        2224
      ]
    },
    {
      "id": "7ffbb901-d5a6-4e44-a332-58c51e4b136f",
      "name": "Generate Cost Report Data",
      "type": "n8n-nodes-base.postgres",
      "position": [
        5408,
        1456
      ]
    },
    {
      "id": "3c0f9e1e-1f7a-48d0-93b6-bc08760d7cdb",
      "name": "Generate Performance Report Data",
      "type": "n8n-nodes-base.postgres",
      "position": [
        5408,
        1648
      ]
    },
    {
      "id": "063237ff-ce84-45ba-b6f3-3a47110e6020",
      "name": "Generate Governance Report Data",
      "type": "n8n-nodes-base.postgres",
      "position": [
        5408,
        1840
      ]
    },
    {
      "id": "b6a2d5fe-c948-4949-bf7a-3cd8e9bf9e3a",
      "name": "Merge Report Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        5632,
        1456
      ]
    },
    {
      "id": "caa7a9e3-d223-4116-9e49-a792054785e0",
      "name": "Format Report",
      "type": "n8n-nodes-base.code",
      "position": [
        5856,
        1456
      ]
    },
    {
      "id": "e1368e94-ea5c-40a3-a1ca-1e21be63072f",
      "name": "Email Report",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        6080,
        1456
      ]
    },
    {
      "id": "cbf1d35c-752b-4286-828e-5c561977f0e4",
      "name": "Prepare Response",
      "type": "n8n-nodes-base.set",
      "position": [
        5408,
        2032
      ]
    },
    {
      "id": "cd9529fb-c46c-4411-a1af-86dc92174a34",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1072,
        944
      ],
      "parameters": {
        "width": 1072,
        "height": 192,
        "content": "\n## How It Works\nThis workflow automates end-to-end research analysis by coordinating multiple AI models—including NVIDIA NIM (Llama), OpenAI GPT-4, and Claude to analyze uploaded documents, extract i"
      }
    },
    {
      "id": "780f1d2d-189d-41be-b013-57d4beb29c87",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        912
      ],
      "parameters": {
        "width": 496,
        "height": 224,
        "content": "## Setup Steps\n1. Configure API credentials \n2. Add OpenAI API key with GPT-4 access enabled\n3. Connect Anthropic Claude API credentials\n4. Set up Google Sheets integration with read/write permissions"
      }
    },
    {
      "id": "fa1912c9-84dd-4c0a-a757-a5b1f3b9501f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2768,
        816
      ],
      "parameters": {
        "width": 544,
        "height": 336,
        "content": "## Prerequisites\nNVIDIA NIM API access, OpenAI API key (GPT-4 enabled), Anthropic Claude API key\n## Use Cases\nAcademic literature reviews, competitive intelligence reports\n## Customization\nAdjust AI m"
      }
    },
    {
      "id": "ac573813-96df-413f-9a54-89f435619876",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5088,
        1200
      ],
      "parameters": {
        "width": 1184,
        "height": 1232,
        "content": "## Automated Report Formatting & Distribution\n**Why:** Generates professional HTML/PDF reports with structured sections and delivers via Gmail, providing immediate, shareable documentation."
      }
    },
    {
      "id": "0ea2bd76-c7d8-475c-b926-69212ea451a7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        1448
      ],
      "parameters": {
        "width": 1120,
        "height": 672,
        "content": "## Parallel Multi-Model Analysis\n**Why:** Leverages diverse AI model strengths (NVIDIA for speed, GPT-4 for reasoning, Claude for nuance) to generate comprehensive, balanced insights and reduce single"
      }
    },
    {
      "id": "455052ef-7379-4c38-a99e-89277e31eedd",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        1624
      ],
      "parameters": {
        "width": 864,
        "height": 496,
        "content": "## Document Ingestion & Preprocessing\n**Why:** Extracts text from uploaded PDFs/documents and structures data for AI consumption, ensuring consistent input format across all processing models."
      }
    },
    {
      "id": "80855b23-5b3d-402f-89a4-4025dcd74cee",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        1200
      ],
      "parameters": {
        "width": 2112,
        "height": 1088,
        "content": "## Response Aggregation & Validation\n**Why:** Combines model outputs, identifies consensus findings, flags discrepancies, and ensures accuracy before final report compilation."
      }
    }
  ],
  "connections": {
    "Format Report": {
      "main": [
        [
          {
            "node": "Email Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call AWS Bedrock": {
      "main": [
        [
          {
            "node": "Handle Circuit Breaker",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Model Responses",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Call Local Model": {
      "main": [
        [
          {
            "node": "Handle Circuit Breaker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Anomalies": {
      "main": [
        [
          {
            "node": "Check Anomaly Threshold",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Output": {
      "main": [
        [
          {
            "node": "Calculate Telemetry Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call Azure OpenAI": {
      "main": [
        [
          {
            "node": "Handle Circuit Breaker",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Model Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Report Data": {
      "main": [
        [
          {
            "node": "Format Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Retry Needed": {
      "main": [
        [
          {
            "node": "Adaptive Retry Delay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge Model Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM Request Webhook": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Health Checks": {
      "main": [
        [
          {
            "node": "Score & Rank Models",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Score & Rank Models": {
      "main": [
        [
          {
            "node": "Check Policy Constraints",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Adaptive Retry Delay": {
      "main": [
        [
          {
            "node": "Route to Selected Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Policy Routing": {
      "main": [
        [
          {
            "node": "Route to Selected Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call Google Vertex AI": {
      "main": [
        [
          {
            "node": "Handle Circuit Breaker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Model Responses": {
      "main": [
        [
          {
            "node": "Normalize Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Handle Circuit Breaker": {
      "main": [
        [
          {
            "node": "Check Retry Needed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Prompt for AWS": {
      "main": [
        [
          {
            "node": "Call AWS Bedrock",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Parse Request & Validate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Anomaly Threshold": {
      "main": [
        [
          {
            "node": "Send Anomaly Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route to Selected Model": {
      "main": [
        [
          {
            "node": "Rewrite Prompt for Azure",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Rewrite Prompt for AWS",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Rewrite Prompt for Google",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Rewrite Prompt for Local",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check AWS Bedrock Health": {
      "main": [
        [
          {
            "node": "Merge Health Checks",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Check Policy Constraints": {
      "main": [
        [
          {
            "node": "Apply Policy Routing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Route to Selected Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Request & Validate": {
      "main": [
        [
          {
            "node": "Analyze Prompt Complexity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Prompt for Azure": {
      "main": [
        [
          {
            "node": "Call Azure OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Prompt for Local": {
      "main": [
        [
          {
            "node": "Call Local Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Prompt Complexity": {
      "main": [
        [
          {
            "node": "Check Azure OpenAI Health",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check AWS Bedrock Health",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assess Hallucination Risk": {
      "main": [
        [
          {
            "node": "Calculate Confidence Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Azure OpenAI Health": {
      "main": [
        [
          {
            "node": "Merge Health Checks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Cost Report Data": {
      "main": [
        [
          {
            "node": "Merge Report Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Telemetry to Database": {
      "main": [
        [
          {
            "node": "Generate Cost Report Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Performance Report Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Governance Report Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Prompt for Google": {
      "main": [
        [
          {
            "node": "Call Google Vertex AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Result in Datastore": {
      "main": [
        [
          {
            "node": "Prepare Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Confidence Score": {
      "main": [
        [
          {
            "node": "Log Telemetry to Database",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store Result in Datastore",
            "type": "main",
            "index": 0
          },
          {
            "node": "Detect Anomalies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Telemetry Metrics": {
      "main": [
        [
          {
            "node": "Assess Hallucination Risk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Performance Report Data": {
      "main": [
        [
          {
            "node": "Merge Report Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}