{
  "name": "Analyze global supply chain sustainability and risk with GPT-4o and email alerts",
  "nodes": [
    {
      "id": "864c3be9-8586-40f0-98d2-6dff34a2f76d",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -800,
        504
      ]
    },
    {
      "id": "9e40008d-ace8-4f49-bca0-7493a31e51ae",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -576,
        504
      ]
    },
    {
      "id": "4687f64e-73b1-48af-9971-3b311ce427c2",
      "name": "Fetch Supply Chain Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        504
      ]
    },
    {
      "id": "f2221294-fc92-48cc-9207-f12ec6ee9720",
      "name": "Supply Chain Sustainability Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        688,
        224
      ]
    },
    {
      "id": "06b29513-91fe-41ce-9f15-904212ee7fa4",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        688,
        448
      ]
    },
    {
      "id": "581b4789-530f-44f4-8773-67cf66826245",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        864,
        432
      ]
    },
    {
      "id": "8a10ce14-2421-46f6-a687-056e718fcfbd",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        1072,
        192
      ]
    },
    {
      "id": "06d877f6-2863-42f8-b41d-b1e1d8658b0c",
      "name": "Format Critical Risk Alert",
      "type": "n8n-nodes-base.set",
      "position": [
        1264,
        32
      ]
    },
    {
      "id": "95cef3f1-010c-452d-99b1-ae64c803b1c6",
      "name": "Format High Risk Alert",
      "type": "n8n-nodes-base.set",
      "position": [
        1328,
        224
      ]
    },
    {
      "id": "26f05d17-daab-448b-aa72-7c85662754ef",
      "name": "Format Medium Risk Report",
      "type": "n8n-nodes-base.set",
      "position": [
        1488,
        416
      ]
    },
    {
      "id": "5b616073-e759-4873-8395-3b16f6f67b96",
      "name": "Send Critical Alert Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1488,
        32
      ]
    },
    {
      "id": "ef4e7a1f-9feb-41e0-9695-41483b730387",
      "name": "Send High Risk Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1488,
        224
      ]
    },
    {
      "id": "7e172f1c-cc84-4cd4-b272-bad10c7995eb",
      "name": "Store Analysis Results",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        224
      ]
    },
    {
      "id": "b0394b2b-06dd-4393-8477-eae07d40e0bf",
      "name": "Emissions Calculator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -8,
        0
      ]
    },
    {
      "id": "d8616539-b720-4d31-b694-b6bd82babe59",
      "name": "Circular Economy Evaluator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -8,
        400
      ]
    },
    {
      "id": "8a11d6b2-8dfc-49ad-bfe7-257923155182",
      "name": "Logistics Optimizer Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -8,
        904
      ]
    },
    {
      "id": "e9778424-8549-4d91-bb14-d6a96145928d",
      "name": "OpenAI Chat Model 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -128,
        224
      ]
    },
    {
      "id": "58196da6-b08d-4aaf-9ac2-9be7f990476b",
      "name": "OpenAI Chat Model 3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -32,
        640
      ]
    },
    {
      "id": "eb10dfc9-3c67-4d0a-8ef6-ad4d1db17d36",
      "name": "OpenAI Chat Model 4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -48,
        1120
      ]
    },
    {
      "id": "b423dbbc-ae1b-45c5-b13e-3799d9f1b355",
      "name": "Emissions Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        240,
        176
      ]
    },
    {
      "id": "e34f09f9-8263-4588-96f8-5eef73ed3d89",
      "name": "Circular Economy Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        128,
        624
      ]
    },
    {
      "id": "99e68777-873b-4a6d-bba7-496bf3eb99db",
      "name": "Logistics Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        128,
        1128
      ]
    },
    {
      "id": "39723616-93b7-4aba-aba7-2591e46b06b4",
      "name": "Carbon Footprint Calculator Tool",
      "type": "@n8n/n8n-nodes-langchain.toolCode",
      "position": [
        32,
        224
      ]
    },
    {
      "id": "2e5b1c69-597d-44e5-907b-cbe2e4995f13",
      "name": "Industry Benchmark API Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        176,
        240
      ]
    },
    {
      "id": "010b1108-d26c-4557-8a01-52d577aacf0f",
      "name": "Merge Agent Results",
      "type": "n8n-nodes-base.set",
      "position": [
        464,
        224
      ]
    },
    {
      "id": "fa614927-50d5-4ab4-8173-5f49674f575b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -592
      ],
      "parameters": {
        "width": 496,
        "height": 368,
        "content": "## Prerequisites\nActive OpenAI API account with sufficient credits, supply chain management system with API access\n## Use Cases\nDaily supply chain health monitoring, supplier risk assessment, inventor"
      }
    },
    {
      "id": "670edb63-b45b-44db-bd5f-9f3abde0032d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -528
      ],
      "parameters": {
        "width": 400,
        "height": 304,
        "content": "## Setup Steps\n1. Configure Schedule Trigger with desired monitoring frequency \n2. Set up OpenAI API credentials for all four AI agent nodes\n3. Configure Fetch Supply Chain Data node with your ERP/SCM"
      }
    },
    {
      "id": "ba89220f-01e2-468d-96e3-29f107641ffe",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -496
      ],
      "parameters": {
        "width": 800,
        "height": 240,
        "content": "## How It Works\nThis workflow automates supply chain monitoring and risk management by deploying multiple specialized AI agents to analyze different supply chain dimensions simultaneously. Designed fo"
      }
    },
    {
      "id": "ab7c279c-a0d6-4161-b398-f0a4cd5ebf6e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        -128
      ],
      "parameters": {
        "width": 1440,
        "height": 1392,
        "content": "## Scheduled Data Acquisition and Multi-Agent Deployment\n**Why:** Triggers automated supply chain data retrieval at configured intervals, then simultaneously deploys four specialized AI agents (Enterp"
      }
    },
    {
      "id": "6ba013c3-8603-4136-87eb-40e66c061f8d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -128
      ],
      "parameters": {
        "width": 832,
        "height": 784,
        "content": "## Risk-Based Alert Routing and Notification\n**Why:** Consolidates multi-agent findings, determines risk severity levels, routes critical alerts to executives via formatted email, high-risk issues to "
      }
    },
    {
      "id": "0af71c4e-c341-4840-bbba-d19eb88f2721",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -128
      ],
      "parameters": {
        "width": 400,
        "height": 784,
        "content": "## Parallel AI Analysis with Specialized Tools\n**Why:** Each agent processes supply chain data using OpenAI models equipped with domain-specific tools including calculators for metrics, output parsers"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Supply Chain Sustainability Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Merge Agent Results": {
      "main": [
        [
          {
            "node": "Supply Chain Sustainability Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model 2": {
      "ai_languageModel": [
        [
          {
            "node": "Emissions Calculator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model 3": {
      "ai_languageModel": [
        [
          {
            "node": "Circular Economy Evaluator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model 4": {
      "ai_languageModel": [
        [
          {
            "node": "Logistics Optimizer Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Format Critical Risk Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format High Risk Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Medium Risk Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send High Risk Email": {
      "main": [
        [
          {
            "node": "Store Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format High Risk Alert": {
      "main": [
        [
          {
            "node": "Send High Risk Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Supply Chain Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Emissions Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Emissions Calculator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Supply Chain Data": {
      "main": [
        [
          {
            "node": "Emissions Calculator Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Circular Economy Evaluator Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Logistics Optimizer Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Logistics Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Logistics Optimizer Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Supply Chain Sustainability Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Format Medium Risk Report": {
      "main": [
        [
          {
            "node": "Store Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Logistics Optimizer Agent": {
      "main": [
        [
          {
            "node": "Merge Agent Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Critical Alert Email": {
      "main": [
        [
          {
            "node": "Store Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Emissions Calculator Agent": {
      "main": [
        [
          {
            "node": "Merge Agent Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Critical Risk Alert": {
      "main": [
        [
          {
            "node": "Send Critical Alert Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Industry Benchmark API Tool": {
      "ai_tool": [
        [
          {
            "node": "Emissions Calculator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Circular Economy Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Circular Economy Evaluator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Carbon Footprint Calculator Tool": {
      "ai_tool": [
        [
          {
            "node": "Emissions Calculator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Circular Economy Evaluator Agent": {
      "main": [
        [
          {
            "node": "Merge Agent Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Supply Chain Sustainability Analyzer": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}