Automated Multi-Factor Supplier Risk Scoring and Alerting - n8n Workflow

Use this powerful n8n workflow to automate daily supplier risk assessments. Integrate D&B financial health, NewsAPI sentiment, and internal performance data. Get instant, tiered Gmail alerts.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

• Procurement Managers and Directors seeking to automate due diligence and risk monitoring.
• Supply Chain Analysts needing real-time, multi-factor supplier risk scores.
• Organizations requiring high-availability, automated risk-alerting solutions.
• Users looking for advanced n8n templates utilizing complex logic and external services.

Overview

Supply chain resilience is critical. Manually monitoring financial health (like D&B data), operational performance, and geopolitical news for every supplier is resource-intensive and often delayed. This robust n8n workflow solves this by running a comprehensive, multi-factor assessment daily. It integrates internal operational data (Postgres) with external financial (D&B) and reputational (NewsAPI) information. The centralized calculation logic determines a risk score, automatically applying criticality multipliers and instantly sending priority alerts using the Gmail n8n node to the relevant stakeholders. This highly customizable n8n templates solution ensures timely intervention and proactive risk mitigation.

How it Works

This automation initiates daily with an n8n trigger and executes the following steps:


  1. Initiation: The Schedule n8n trigger runs every day at 6:00 AM.

  2. Configuration: The Risk Settings n8n node defines the critical thresholds (e.g., High Risk > 60) and the email addresses for the Procurement and Risk Management teams.

  3. Data Collection: The workflow fetches a list of 'active' suppliers from the PostgreSQL database. For each supplier, it executes three parallel requests:

a. An HTTP Request n8n node calls the D&B API to retrieve current financial health and credit assessment data.
b. A second HTTP Request n8n node queries the NewsAPI for recent news mentions (last 7 days) using the supplier's name to assess reputational risk.
c. A second PostgreSQL n8n node retrieves recent operational performance data (delivery/quality scores).

  1. Scoring Engine: The custom Code n8n node aggregates all collected data. It applies weighted scoring logic (35% financial, 30% operational, 15% news sentiment, 10% geopolitical, 10% criticality level) to derive the final riskscore and assign a risklevel (low, medium, high, critical).

  2. Alerting Flow: A series of If n8n node filters direct the flow based on the calculated risk level:

If the risk is 'critical', it passes to the Send Critical Alert Gmail n8n node (to Risk Manager).
If the risk is 'high', it passes to the Send High Risk Alert Gmail n8n node (to Procurement).
* If the risk is 'medium', it passes to the Send Medium Risk Alert Gmail n8n node (to Procurement).

  1. Tracking: Regardless of the alert level, the result is logged using the Google Sheets n8n node for audit and historical tracking, completing the comprehensive n8n workflow.

Installation Guide


  1. Import: Import this n8n workflow JSON into your n8n instance.

  2. Credentials Setup: You will need to configure credentials for the following services:

PostgreSQL: Database credentials to connect to your supplier data tables.
D&B (Dun & Bradstreet): An API key for the financial health check. Ensure the key is stored securely in the n8n credentials manager.
NewsAPI: An API key for monitoring news sentiment.
Gmail: Credentials to allow the workflow to send high-priority, customized HTML alerts.
* Google Sheets: Credentials for logging the assessment results.

  1. Customization: Edit the 'Risk Settings' n8n node to define your specific risk thresholds and recipient emails (procurementEmail, riskManagerEmail). Update the Google Sheets n8n node with your specific Document ID and Sheet Name for logging.

  2. Activate: Save and activate the n8n workflow. It will automatically run daily based on the schedule n8n trigger.

Node Details

This advanced n8n workflow utilizes several key nodes:

Daily Risk Assessment (Schedule Trigger n8n trigger): Sets the automation to run daily at 6:00 AM, ensuring consistent monitoring.
Risk Settings (Set n8n node): Centralizes configuration, defining customizable risk score thresholds (31, 61, 81) and stakeholder email addresses using JSON parameters.
Get Active Suppliers & Get Performance Data (PostgreSQL n8n node): Performs SQL queries to retrieve base supplier data and historical operational metrics (delivery, quality) necessary for the scoring calculation.
Get Financial Health & Monitor News & Events (HTTP Request n8n node): Integrates external data sources (D&B and NewsAPI) via API calls. Dynamic expressions use supplier IDs and names to fetch specific, timely data for risk calculation.
Calculate Risk Score (Code n8n node): The analytical heart of this n8n workflow. It executes a complex JavaScript algorithm to combine five risk factors (financial, operational, news, geopolitical, criticality) into a single, weighted riskscore and determines the appropriate risklevel.
Filter Critical Risks / High Risks / Medium Risks (If n8n node): Provides conditional routing, directing the workflow to the appropriate notification path based on the score calculated by the previous n8n node.


  • Send Critical Alert / High Risk Alert / Medium Risk Alert (Gmail n8n node): Sends tiered, highly visual HTML emails to different recipients based on the severity. Critical alerts contain detailed impact analysis and immediate action items.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by
Rodrigue
Rodrigue

Featured*