📊 Monitor supplier risk daily with Groq, Google Sheets, Slack and Gmail

⚡ 4 views · 📊 Market Research & Insights

Description

Quick overview

This workflow runs daily at 9 AM to assess supplier risk using Google Sheets KPIs, Google News RSS headlines, OpenSanctions screening, and currency rates, then uses Groq LLM analysis to alert via Slack/Gmail, log results to Google Sheets, and email an executive briefing.

How it works

  1. Runs every day at 9 AM and reads the supplier master list (including KPI fields) from Google Sheets.
  2. Loops through each supplier and pulls external signals from Google News RSS, OpenSanctions search results, and a USD exchange-rate feed.
  3. Extracts the top headlines from the RSS XML and compiles the supplier’s KPIs plus external signals into a single dossier.
  4. Uses Groq LLM to generate a sentiment risk score, summary, mitigation actions, and an early-warning level from the combined dossier.
  5. Calculates a weighted composite risk score from the LLM score plus delay and rejection KPIs, then categorizes the supplier as High/Medium/Low risk.
  6. For High risk, uses Groq LLM to draft an urgent mitigation strategy, then sends a Slack alert and a detailed Gmail alert to procurement.
  7. For Medium risk, sends a Gmail watchlist notification, logs all supplier outcomes to a Google Sheets audit tab, and then emails a daily executive briefing summarizing today’s logged results.

Setup

  1. Connect credentials for Google Sheets, Groq, Slack, and Gmail (Google) in n8n.
  2. Update the Google Sheets document and sheet tabs so the supplier master contains fields like “Supplier Name”, “Delay Rate (%)”, “Rejection Rate (%)”, and “Category”, and create a “Risk_Audit_Logs” tab for appended logs.
  3. Set or replace the OpenSanctions API Authorization header value in the HTTP request and adjust the news query keywords if needed.
  4. Configure the Slack recipient (user or channel) and the Gmail recipient addresses/subjects for high-risk alerts, watchlist notifications, and the daily executive report.

Additional info

How To Customize Nodes

Add‑ons

Use Case Examples

Troubleshooting Guide

IssuePossible CauseSolution
Workflow fails at StartMissing Google Sheet headersEnsure “Supplier Name” and “Category” exist in your sheet.
AI Output is emptyGroq API quota reachedCheck your Groq dashboard or swap to a larger model like gpt-oss-120b.
No News FoundSearch query too specificLoosen the RSS URL parameters in the “Fetch Supplier News” node.
Report not sendingGmail OAuth expiredRe-connect your Google credentials in the n8n settings.

Need Help?

Setting up automated risk agents can be complex, especially when balancing AI prompts and external API integrations. If you need assistance configuring these Add-Ons, customizing the risk logic or building similar business automations, WeblineIndia is here to help. Contact us to hire n8n developers for building a robust, custom-tailored automation strategy for your enterprise.

đź”— Nodes Used

Google Sheets, HTTP Request, Slack, Gmail, Schedule Trigger, AI Agent

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup