{
  "name": "Decide multi‑agent vs simple workflows using Azure OpenAI GPT‑4o‑mini",
  "nodes": [
    {
      "id": "d5997a32-7d1a-404a-a6c2-83fc4ff3bdaa",
      "name": "Receive Problem Description via POST",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -384,
        544
      ]
    },
    {
      "id": "b709e130-d9f0-4542-974f-f1c65b43e116",
      "name": "Extract Request Body",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        544
      ]
    },
    {
      "id": "8217efaf-8a7f-4e10-8f31-ca8415405eb6",
      "name": "Multi-Agent Architecture Decision Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        32,
        544
      ]
    },
    {
      "id": "9b3114b1-6179-45de-9f0c-ac9ced81ed5c",
      "name": "Azure OpenAI GPT-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        32,
        976
      ]
    },
    {
      "id": "f368874a-c30a-4a57-85ae-b66ccf877a0a",
      "name": "Parse Decision, Agents & Steps",
      "type": "n8n-nodes-base.code",
      "position": [
        464,
        544
      ]
    },
    {
      "id": "7344bc04-e81b-47c1-8809-7563dad58a7b",
      "name": "Build HTML Architecture Report",
      "type": "n8n-nodes-base.code",
      "position": [
        672,
        544
      ]
    },
    {
      "id": "5f52eae8-6d9a-4be0-b2a2-6aeac4af1ba0",
      "name": "Return HTML Report to Caller",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        880,
        544
      ]
    },
    {
      "id": "26c1a118-683d-4cbd-a8b1-308b8b28312d",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        384
      ],
      "parameters": {
        "width": 540,
        "height": 384,
        "content": "## 🟡 Workflow Overview\n\n### How it works\nThis workflow serves as an **AI-powered n8n Multi-Agent Architecture Advisor**. It accepts a plain-text problem description via a POST webhook and uses an Azur"
      }
    },
    {
      "id": "8fef77e7-2fd2-4ae8-9455-083f6bfe0588",
      "name": "Sticky Note - Input Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        384
      ],
      "parameters": {
        "width": 388,
        "height": 326,
        "content": "## 📥 Input & Extraction\nReceives a POST request with a `description` field and extracts the raw request body for downstream processing."
      }
    },
    {
      "id": "25685a95-fea8-49f1-8ccf-ff9d4130e7b1",
      "name": "Sticky Note - AI Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        384
      ],
      "parameters": {
        "width": 432,
        "height": 374,
        "content": "## 🤖 AI Architecture Decision\nThe AI Agent evaluates the problem description and decides if a multi-agent workflow is needed. It returns structured agent definitions, node types, and a logical workflo"
      }
    },
    {
      "id": "6e185fad-3128-41e4-9342-ba1a9dde7a87",
      "name": "Sticky Note - Output Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        384
      ],
      "parameters": {
        "width": 592,
        "height": 374,
        "content": "## 📊 Parse, Build & Respond\nParses the AI output into structured decision, agents, and steps. Renders a styled HTML dashboard and returns it as the final webhook response."
      }
    },
    {
      "id": "6e67700a-9b33-4794-891a-1df42143db3b",
      "name": "Sticky Note - Azure Warning",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        816
      ],
      "parameters": {
        "width": 360,
        "height": 300,
        "content": "⚠️ **Azure OpenAI Credentials Required**\nThis node requires a valid `azureOpenAiApi` credential with an active `gpt-4o-mini` deployment. Missing or misconfigured credentials will cause all AI analysis"
      }
    }
  ],
  "connections": {
    "Extract Request Body": {
      "main": [
        [
          {
            "node": "Multi-Agent Architecture Decision Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI GPT-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Multi-Agent Architecture Decision Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Build HTML Architecture Report": {
      "main": [
        [
          {
            "node": "Return HTML Report to Caller",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Decision, Agents & Steps": {
      "main": [
        [
          {
            "node": "Build HTML Architecture Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Problem Description via POST": {
      "main": [
        [
          {
            "node": "Extract Request Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Multi-Agent Architecture Decision Agent": {
      "main": [
        [
          {
            "node": "Parse Decision, Agents & Steps",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}