{
  "name": "Coordinate smart factory operations with OpenAI GPT-4.1-mini and Slack alerts",
  "nodes": [
    {
      "id": "ad845c62-9140-4d49-83d5-dbf9bcb4eb85",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2672,
        192
      ]
    },
    {
      "id": "03bbf651-be95-4cea-8d5c-0ae474fbebb2",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -2448,
        192
      ]
    },
    {
      "id": "2a801363-82a9-48df-9dfd-aa7845df059e",
      "name": "Fetch Production Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2224,
        96
      ]
    },
    {
      "id": "46511d05-a962-4e44-a1d5-aa51c9ac79a8",
      "name": "Fetch Supply Chain Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2224,
        288
      ]
    },
    {
      "id": "dec5ae4a-4558-475e-88bb-c2e5e1840f9e",
      "name": "Merge Operations Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -2000,
        192
      ]
    },
    {
      "id": "72856495-4ca3-4d55-8150-6e6633a20b16",
      "name": "OpenAI Model - Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1792,
        416
      ]
    },
    {
      "id": "e8c97995-4f5b-431d-bc89-0263d0bd269e",
      "name": "Validation Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1640,
        416
      ]
    },
    {
      "id": "14193227-6a2e-4747-a06a-ca16c3ef541c",
      "name": "Operations Validation Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1776,
        192
      ]
    },
    {
      "id": "20c550d8-4489-4ba9-89e8-a20e1d43b6ef",
      "name": "OpenAI Model - Scheduling Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1328,
        624
      ]
    },
    {
      "id": "31e00a8d-2565-47ca-9635-dac6d7be9c76",
      "name": "Scheduling Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1152,
        624
      ]
    },
    {
      "id": "cf09ba75-21f1-42bf-b050-095cda957277",
      "name": "Scheduling Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1296,
        416
      ]
    },
    {
      "id": "465b74b7-07e8-4d36-ac13-391cedcd39be",
      "name": "OpenAI Model - Procurement Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1008,
        624
      ]
    },
    {
      "id": "8852f043-4809-4b0c-8c9f-345cbe177526",
      "name": "Procurement Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -848,
        624
      ]
    },
    {
      "id": "7a9b884c-f7cc-45e9-aa52-9854e7d70ad9",
      "name": "Procurement Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1008,
        416
      ]
    },
    {
      "id": "db51cdaa-24b1-412f-bc7b-fccd358725ec",
      "name": "OpenAI Model - Quality Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -672,
        624
      ]
    },
    {
      "id": "4e88f4c9-de07-46a7-b1b1-bcb6702a6ab8",
      "name": "Quality Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -480,
        624
      ]
    },
    {
      "id": "8ba64c81-c560-4f35-97a9-0e6fa0464105",
      "name": "Quality Escalation Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -720,
        416
      ]
    },
    {
      "id": "283f5925-0422-4b05-8e42-dcc42dd2d093",
      "name": "OpenAI Model - Coordination Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1424,
        416
      ]
    },
    {
      "id": "b8e3c323-8ca2-43ab-a337-81965cd7b5b1",
      "name": "Coordination Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -432,
        416
      ]
    },
    {
      "id": "e65e37cc-1ae7-45be-ba51-227cf0ca87a0",
      "name": "Cross-Factory Coordination Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1000,
        192
      ]
    },
    {
      "id": "6a2aa32a-dbba-4e2c-adc5-f1528987ffc9",
      "name": "Route by Priority",
      "type": "n8n-nodes-base.switch",
      "position": [
        -208,
        336
      ]
    },
    {
      "id": "4526d2e8-cfa2-4a0e-92df-6b2adc10c25d",
      "name": "Critical Alert - Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        16,
        544
      ]
    },
    {
      "id": "13346565-45e5-4305-8932-aaea4e123b1e",
      "name": "High Priority Alert - Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        16,
        160
      ]
    },
    {
      "id": "1d2e58bc-075b-49f7-9174-c1517940b799",
      "name": "Log Routine Operations",
      "type": "n8n-nodes-base.set",
      "position": [
        16,
        352
      ]
    },
    {
      "id": "c114e9bd-9c78-4395-9887-d31a47e39016",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -400
      ],
      "parameters": {
        "width": 432,
        "height": 384,
        "content": "## Prerequisites\n- Slack workspace with bot token\n- Production and supply chain data sources (API or database)\n## Use Cases\n- Automated cross-factory scheduling conflict detection and resolution\n## Cu"
      }
    },
    {
      "id": "37a57ccc-600e-4428-8331-9f0a6876542c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2128,
        -304
      ],
      "parameters": {
        "width": 400,
        "height": 272,
        "content": "## Setup Steps\n1. Set schedule trigger interval to match operational review frequency.\n2. Add OpenAI API credentials to all OpenAI Model nodes.\n3. Connect production and supply chain data sources to f"
      }
    },
    {
      "id": "c764f047-364e-4fdc-9fb9-e3dde4c82096",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2688,
        -352
      ],
      "parameters": {
        "width": 528,
        "height": 320,
        "content": "## How It Works\nThis workflow automates cross-factory operations management by deploying a multi-agent AI system that validates production data, coordinates scheduling, procurement, and quality escala"
      }
    },
    {
      "id": "39bcc175-5823-4487-ba73-a8d20523f576",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        0
      ],
      "parameters": {
        "width": 448,
        "height": 768,
        "content": "## Route by Priority & Alert\n**What** – Separates critical, high, and routine operational outcomes.\n**Why** – Ensures urgent issues reach the right team without delay."
      }
    },
    {
      "id": "923898c2-130e-4c99-8af2-db55fa36b24b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        0
      ],
      "parameters": {
        "width": 1136,
        "height": 784,
        "content": "## Cross-Factory Coordination Agent\n**What** – Orchestrates Scheduling, Procurement, and Quality Escalation sub-agents.\n**Why** – Centralises cross-factory logic for consistent, auditable operational "
      }
    },
    {
      "id": "fe1cc0a0-27f4-4e2e-b35f-f72463f21e1c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1824,
        0
      ],
      "parameters": {
        "width": 368,
        "height": 624,
        "content": "## Operations Validation Agent\n**What** – Validates merged data integrity using OpenAI before coordination.\n**Why** – Prevents faulty data from propagating incorrect scheduling or procurement decision"
      }
    },
    {
      "id": "eb220500-958a-4e3c-902c-b6fa8716ad4f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2704,
        0
      ],
      "parameters": {
        "width": 848,
        "height": 640,
        "content": "## Merge Operations Data\n**What** – Combines production and supply chain data into unified context.\n**Why** – Gives downstream agents complete visibility across factory operations."
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Priority": {
      "main": [
        [
          {
            "node": "Critical Alert - Slack",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "High Priority Alert - Slack",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Routine Operations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Production Data": {
      "main": [
        [
          {
            "node": "Merge Operations Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Operations Data": {
      "main": [
        [
          {
            "node": "Operations Validation Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Quality Escalation Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Scheduling Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Procurement Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Production Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Supply Chain Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Supply Chain Data": {
      "main": [
        [
          {
            "node": "Merge Operations Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Scheduling Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Scheduling Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Validation Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Operations Validation Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Procurement Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Procurement Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Coordination Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Operations Validation Agent": {
      "main": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Quality Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Quality Escalation Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Quality Escalation Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Scheduling Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Scheduling Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Validation Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Operations Validation Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Cross-Factory Coordination Agent": {
      "main": [
        [
          {
            "node": "Route by Priority",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Procurement Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Procurement Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Coordination Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Cross-Factory Coordination Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}