{
  "name": "Monitor supply chain risks with ScrapeGraphAI alerts via Slack and email",
  "nodes": [
    {
      "id": "97c1e8d5-3813-4bf6-878a-2f197a7de968",
      "name": "Daily Risk Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -192,
        688
      ]
    },
    {
      "id": "793c2693-4f4d-45cb-8d5a-3c4db372b958",
      "name": "Scrape Supplier 1",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        128,
        592
      ]
    },
    {
      "id": "9a2d5ce5-3155-48ed-850f-37f3dd88344b",
      "name": "Scrape Supplier 2",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        128,
        736
      ]
    },
    {
      "id": "2980958d-05b9-4474-a256-fd805acdf673",
      "name": "Scrape Industry News",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        128,
        896
      ]
    },
    {
      "id": "9b26bc24-88ba-4a74-9481-4c960729cf38",
      "name": "Risk Scorer",
      "type": "n8n-nodes-base.code",
      "position": [
        608,
        688
      ]
    },
    {
      "id": "97557200-2713-4f26-890e-c4601e203a1c",
      "name": "Find Alternatives",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        992,
        560
      ]
    },
    {
      "id": "f0122ca7-ae5b-4ffe-9ac2-ce9a4f78b78d",
      "name": "Check Alert Conditions",
      "type": "n8n-nodes-base.if",
      "position": [
        1376,
        720
      ]
    },
    {
      "id": "0ab9cb88-eeab-431e-a04a-cd26c5300018",
      "name": "Format Alert",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        464
      ]
    },
    {
      "id": "b21e22c8-5c61-4416-b646-6371d46b6500",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2096,
        368
      ]
    },
    {
      "id": "ae81a56e-cb26-49ac-bb0b-19326a11c88e",
      "name": "Email Procurement Team",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2096,
        704
      ]
    },
    {
      "id": "c168f67c-910d-4ada-9377-0790745fd08f",
      "name": "Format Daily Report",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        864
      ]
    },
    {
      "id": "4fbc224c-7fc7-4388-94a9-833137a571f1",
      "name": "Send Daily Report",
      "type": "n8n-nodes-base.slack",
      "position": [
        2096,
        864
      ]
    },
    {
      "id": "19f69bd7-d629-48ef-971f-8e0a4d59d1fa",
      "name": "Step 1 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 1198,
        "content": "# Step 1: Daily Trigger ⏰\n\n**Purpose**: Initiates the daily supply chain risk assessment\n\n## Configuration\n- **Schedule**: Every day at 9:00 AM\n- **Timezone**: Adjust based on your business hours\n- **"
      }
    },
    {
      "id": "6b581da0-033c-4ce9-9113-bb50d518c2ff",
      "name": "Step 2 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 1198,
        "content": "# Step 2: Supplier Data Collection 🔍\n\n**Purpose**: Scrapes multiple supplier websites and news sources\n\n## What it monitors\n- Financial health indicators\n- Operational disruptions\n- Regulatory complia"
      }
    },
    {
      "id": "28a20162-93f4-47ee-95ef-a31a2570e846",
      "name": "Step 3 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 1198,
        "content": "# Step 3: Risk Analysis Engine 🧮\n\n**Purpose**: Processes collected data and calculates risk scores\n\n## Risk Scoring Factors\n- Financial status (stable/warning/critical)\n- Number of operational issues\n"
      }
    },
    {
      "id": "66e6b608-9c4d-4493-be0b-90a813145cc2",
      "name": "Step 4 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 1198,
        "content": "# Step 4: Alternative Supplier Finder 🔄\n\n**Purpose**: Identifies backup suppliers for high-risk situations\n\n## Search Criteria\n- Same industry/category as at-risk supplier\n- Geographic proximity prefe"
      }
    },
    {
      "id": "a59c8221-0d7d-4fba-b473-55fbf02d15ec",
      "name": "Step 5 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 1198,
        "content": "# Step 5: Alert System Logic 🚨\n\n**Purpose**: Determines when to send alerts vs daily reports\n\n## Alert Conditions\n- High-risk suppliers detected (score ≥ 8)\n- Multiple medium-risk suppliers\n- Critical"
      }
    },
    {
      "id": "8c6b1208-46ba-4e06-b281-3a27a4446fc6",
      "name": "Step 6 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        -32
      ],
      "parameters": {
        "width": 688,
        "height": 1198,
        "content": "# Step 6: Multi-Channel Notifications 📢\n\n**Purpose**: Ensures critical information reaches the right people\n\n## Notification Channels\n- **Slack**: Real-time alerts to #procurement-alerts\n- **Email**: "
      }
    }
  ],
  "connections": {
    "Risk Scorer": {
      "main": [
        [
          {
            "node": "Find Alternatives",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check Alert Conditions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Alert": {
      "main": [
        [
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Procurement Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Risk Check": {
      "main": [
        [
          {
            "node": "Scrape Supplier 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scrape Supplier 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scrape Industry News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Alternatives": {
      "main": [
        [
          {
            "node": "Check Alert Conditions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Supplier 1": {
      "main": [
        [
          {
            "node": "Risk Scorer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Supplier 2": {
      "main": [
        [
          {
            "node": "Risk Scorer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Daily Report": {
      "main": [
        [
          {
            "node": "Send Daily Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Industry News": {
      "main": [
        [
          {
            "node": "Risk Scorer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Alert Conditions": {
      "main": [
        [
          {
            "node": "Format Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Daily Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}