{
  "name": "Monitor supplier financial distress and risk with Bright Data, OpenRouter and Google Sheets",
  "nodes": [
    {
      "id": "3b9a501c-5f1e-4d70-8764-d81b4aebbd67",
      "name": "Run Financial Risk Scan",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        64,
        1392
      ]
    },
    {
      "id": "abc8a0a1-dcf6-40e6-a2c7-149e50e27821",
      "name": "Set Company & Risk Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        288,
        1392
      ]
    },
    {
      "id": "fe04ca3e-f104-490a-9e2c-7be918d677be",
      "name": "Validate Company Input",
      "type": "n8n-nodes-base.if",
      "position": [
        912,
        1392
      ]
    },
    {
      "id": "a20bf44f-7fae-4696-b40e-f17886f2acc0",
      "name": "Scrape Financial Filings",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        1216,
        1120
      ]
    },
    {
      "id": "6f4f79c4-1a34-47eb-bd5f-9a930cc77748",
      "name": "Scrape Insolvency Register",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        1216,
        1376
      ]
    },
    {
      "id": "056074c1-b2b0-497a-bb85-319dfe4071fc",
      "name": "Scrape Financial News",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        1216,
        1648
      ]
    },
    {
      "id": "0158d04b-cc43-4a20-bb9b-23e34043ce48",
      "name": "Log Scraping Error",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1488,
        1872
      ]
    },
    {
      "id": "12c21197-6cf8-40a9-88a8-7192bcdc3aea",
      "name": "Detect Filing Distress Signals",
      "type": "n8n-nodes-base.code",
      "position": [
        1568,
        1104
      ]
    },
    {
      "id": "cf2833e9-35a2-4ffd-86e0-d3aaf3fddaf5",
      "name": "Detect Insolvency Signals",
      "type": "n8n-nodes-base.code",
      "position": [
        1568,
        1360
      ]
    },
    {
      "id": "d3028be5-0062-425e-8ba3-9f26acfc7eca",
      "name": "Detect News Distress Signals",
      "type": "n8n-nodes-base.code",
      "position": [
        1568,
        1632
      ]
    },
    {
      "id": "a6068d94-af8f-4b7d-b682-ca9c625f8390",
      "name": "Merge All Distress Signals",
      "type": "n8n-nodes-base.merge",
      "position": [
        1872,
        1344
      ]
    },
    {
      "id": "7d61d212-525d-4fab-93a0-d66edc88e59a",
      "name": "Categorize & Normalize Signals",
      "type": "n8n-nodes-base.code",
      "position": [
        2608,
        1360
      ]
    },
    {
      "id": "4269f0c3-afac-4e52-af10-30e6f17da734",
      "name": "Prepare Signals for AI Analysis",
      "type": "n8n-nodes-base.set",
      "position": [
        2848,
        1360
      ]
    },
    {
      "id": "961b5b39-e67c-4eb2-86fe-941aa8abe12e",
      "name": "AI Financial Distress Classifier",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3088,
        1360
      ]
    },
    {
      "id": "40ca3141-99de-4157-96be-642be38010ff",
      "name": "Validate AI Distress Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3248,
        1632
      ]
    },
    {
      "id": "9e282fec-c212-4537-a5d6-6dc748539696",
      "name": "Apply Probability Weighting",
      "type": "n8n-nodes-base.code",
      "position": [
        3440,
        1360
      ]
    },
    {
      "id": "48d74bc4-633c-45bf-b769-4bfdf5778069",
      "name": "Apply Confidence Guardrails",
      "type": "n8n-nodes-base.code",
      "position": [
        3968,
        1360
      ]
    },
    {
      "id": "a1a0ffc3-b849-442e-931b-ea8054a3f63f",
      "name": "Generate Business Risk Decisions",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4192,
        1360
      ]
    },
    {
      "id": "39058a33-7e3d-471f-8bc7-13d6d12e04e9",
      "name": "Validate Business Decision Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        4336,
        1616
      ]
    },
    {
      "id": "c545d1d9-2bfa-45ee-b792-e8718d3fff94",
      "name": "Is High Supplier Risk?",
      "type": "n8n-nodes-base.if",
      "position": [
        4624,
        1168
      ]
    },
    {
      "id": "5fe0e38e-3d97-4af8-8728-4d1d14f086d3",
      "name": "No Action Required",
      "type": "n8n-nodes-base.noOp",
      "position": [
        4912,
        1280
      ]
    },
    {
      "id": "2d6cb93b-5af0-4451-974c-2d65b295a4b7",
      "name": "Log Supplier Monitoring Risk",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4912,
        1056
      ]
    },
    {
      "id": "3826f3ba-4656-4c16-8d71-3c0ed59499fb",
      "name": "Log Onboarding Decision",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4624,
        1360
      ]
    },
    {
      "id": "81847e2d-6049-486d-aaf0-935e5884b4d1",
      "name": "Log Portfolio Exposure Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4624,
        1584
      ]
    },
    {
      "id": "0d63908f-8832-4808-9eae-9de45468c1d8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        816
      ],
      "parameters": {
        "width": 512,
        "height": 560,
        "content": "## Financial Distress & Credit Risk Intelligence Engine\n\nThis workflow scans a company across financial filings, insolvency registers, and financial news to detect early distress signals.\n\nIt:\n\n- Coll"
      }
    },
    {
      "id": "033bf803-f566-4366-8bf6-f81b202db4aa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        768
      ],
      "parameters": {
        "width": 1200,
        "height": 1328,
        "content": "## Multi-Source Financial Signal Collection\n\nCollects and consolidates financial distress indicators from multiple verified public sources for early credit risk detection.\n\n- Scrapes financial filings"
      }
    },
    {
      "id": "f39697db-e09e-4fb1-9836-1b267cadb052",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        976
      ],
      "parameters": {
        "width": 1104,
        "height": 816,
        "content": "## AI Financial Distress Classification & Risk Scoring\n\nAnalyzes detected financial distress signals using AI to estimate credit risk exposure and refine scoring reliability.\n\n- Categorizes and normal"
      }
    },
    {
      "id": "9a675108-b614-4a6c-b637-1739d5d95676",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3920,
        928
      ],
      "parameters": {
        "width": 1216,
        "height": 848,
        "content": "## Confidence Guardrails & Business Decisioning\n\nRefines financial risk scores using confirmation logic and converts validated insights into actionable business decisions.\n\n- Applies confidence guardr"
      }
    },
    {
      "id": "fa572ec1-0146-49fe-a288-be6a989f2a41",
      "name": "Financial Distress Classifier",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        3072,
        1632
      ]
    },
    {
      "id": "61ff7bb5-5076-4f01-a556-68d2bc9a109b",
      "name": "Business Risk Decision Engine",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        4160,
        1616
      ]
    },
    {
      "id": "fd928013-5f62-459d-ad02-9ced3cffe868",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        304
      ],
      "parameters": {
        "width": 512,
        "height": 480,
        "content": "## Setup Instructions\n\nBefore running this workflow, configure the following credentials in n8n:\n\n**1. Bright Data API** — Required for web scraping\n- Sign up at brightdata.com\n- Create an API token\n-"
      }
    },
    {
      "id": "6e7ebc20-8eb4-4197-995e-4f9af82a5bee",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        1056
      ],
      "parameters": {
        "width": 496,
        "height": 528,
        "content": "## Input & Risk Configuration\n\nInitial configuration block where company details and financial risk indicators are defined for distress analysis.\n\n- Initiates financial risk scan  \n- Sets company name"
      }
    },
    {
      "id": "9357dcf0-2e38-4afa-b08b-b5defec46345",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -784,
        1408
      ],
      "parameters": {
        "width": 508,
        "height": 464,
        "content": "## Google Sheets Setup\n\nCreate a Google Spreadsheet with 4 tabs and add these column headers in row 1:\n\n**Tab: Supplier Monitoring**\ncompanyName | country | riskStatus | distressType | probability | c"
      }
    }
  ],
  "connections": {
    "Scrape Financial News": {
      "main": [
        [
          {
            "node": "Detect News Distress Signals",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Scraping Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is High Supplier Risk?": {
      "main": [
        [
          {
            "node": "Log Supplier Monitoring Risk",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Action Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Company Input": {
      "main": [
        [
          {
            "node": "Scrape Financial Filings",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scrape Insolvency Register",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scrape Financial News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Financial Risk Scan": {
      "main": [
        [
          {
            "node": "Set Company & Risk Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Financial Filings": {
      "main": [
        [
          {
            "node": "Detect Filing Distress Signals",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Scraping Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Insolvency Signals": {
      "main": [
        [
          {
            "node": "Merge All Distress Signals",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge All Distress Signals": {
      "main": [
        [
          {
            "node": "Categorize & Normalize Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Insolvency Register": {
      "main": [
        [
          {
            "node": "Detect Insolvency Signals",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Scraping Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Confidence Guardrails": {
      "main": [
        [
          {
            "node": "Generate Business Risk Decisions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apply Probability Weighting": {
      "main": [
        [
          {
            "node": "Apply Confidence Guardrails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate AI Distress Output": {
      "ai_outputParser": [
        [
          {
            "node": "AI Financial Distress Classifier",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Detect News Distress Signals": {
      "main": [
        [
          {
            "node": "Merge All Distress Signals",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Business Risk Decision Engine": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Business Risk Decisions",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Financial Distress Classifier": {
      "ai_languageModel": [
        [
          {
            "node": "AI Financial Distress Classifier",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Company & Risk Parameters": {
      "main": [
        [
          {
            "node": "Validate Company Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Categorize & Normalize Signals": {
      "main": [
        [
          {
            "node": "Prepare Signals for AI Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detect Filing Distress Signals": {
      "main": [
        [
          {
            "node": "Merge All Distress Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Signals for AI Analysis": {
      "main": [
        [
          {
            "node": "AI Financial Distress Classifier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Financial Distress Classifier": {
      "main": [
        [
          {
            "node": "Apply Probability Weighting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Business Risk Decisions": {
      "main": [
        [
          {
            "node": "Is High Supplier Risk?",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log Onboarding Decision",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log Portfolio Exposure Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Business Decision Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Business Risk Decisions",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}