{
  "name": "Multi-Agent AI Orchestrator (Surgical Edition)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "surgical-content-ingest",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e01",
      "name": "Webhook: Ingest Raw Draft",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [100, 300]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=You are an expert Technical Research Agent. Analyze the following raw draft and verify all technical claims, architectural patterns, and data schemas. Provide a structured JSON verification report.\n\nInput Draft:\n{{ $json.body.draft }}",
        "options": {
          "model": "gemini-2.5-pro"
        }
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e02",
      "name": "Agent: Technical Deep Research",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [350, 200]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=You are an elite Surgical Copywriter. Transform the verified technical research into a high-density, authoritative narrative with zero fluff. Maintain strict professional tone.\n\nResearch Input:\n{{ $node['Agent: Technical Deep Research'].json.output }}",
        "options": {
          "temperature": 0.3
        }
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e03",
      "name": "Agent: Surgical Style Transfer",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [600, 200]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=You are a viral B2B LinkedIn Strategist. Based on the surgical narrative, generate 3 high-impact hook variations and a 5-slide technical carousel breakdown.\n\nNarrative Input:\n{{ $node['Agent: Surgical Style Transfer'].json.output }}",
        "options": {
          "temperature": 0.7
        }
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e04",
      "name": "Agent: LinkedIn Authority Hook",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [600, 400]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Generate a valid JSON-LD TechnicalArticle schema object representing this content for Google rich results.\n\nNarrative Input:\n{{ $node['Agent: Surgical Style Transfer'].json.output }}",
        "options": {
          "temperature": 0.1
        }
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e05",
      "name": "Agent: JSON-LD Schema Generator",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [600, 600]
    },
    {
      "parameters": {
        "mode": "combine",
        "combineBy": "mergeByPosition",
        "options": {}
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e06",
      "name": "Merge & Package Distribution Payload",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 2,
      "position": [900, 400]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.github.com/repos/sabledattatray/dattasable/dispatches",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "githubApi",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "event_type",
              "value": "publish_surgical_asset"
            },
            {
              "name": "client_payload",
              "value": "={{ $json }}"
            }
          ]
        },
        "options": {}
      },
      "id": "8c4b9b92-7e14-492b-9b25-b183ffab8e07",
      "name": "Publish to Production Infrastructure",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [1150, 400]
    }
  ],
  "connections": {
    "Webhook: Ingest Raw Draft": {
      "main": [
        [
          {
            "node": "Agent: Technical Deep Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agent: Technical Deep Research": {
      "main": [
        [
          {
            "node": "Agent: Surgical Style Transfer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agent: Surgical Style Transfer": {
      "main": [
        [
          {
            "node": "Agent: LinkedIn Authority Hook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Agent: JSON-LD Schema Generator",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge & Package Distribution Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agent: LinkedIn Authority Hook": {
      "main": [
        [
          {
            "node": "Merge & Package Distribution Payload",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Agent: JSON-LD Schema Generator": {
      "main": [
        [
          {
            "node": "Merge & Package Distribution Payload",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Merge & Package Distribution Payload": {
      "main": [
        [
          {
            "node": "Publish to Production Infrastructure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true,
    "author": "Surgical AI Infrastructure",
    "version": "1.0.4"
  },
  "pinData": {},
  "versionId": "c83b2a19-4d86-a8cc-64d1-d96e3f27a111"
}
