Visualize supply chain procurement risk with Groq, Google Sheets, Notion, Slack and Gmail
Needs changesWhat this workflow does
This AI workflow has 28 nodes and runs on a schedule (cron 0 8 * * 1). Along the way it connects Google Sheets, Slack, Groq Chat Model and Google Drive and 2 more.
How it runs
Trigger: On a schedule (cron 0 8 * * 1).
- Set Workflow Config (Edit Fields (Set)): sets 6 fields: varThreshold, spofCountThreshold, alertEmails…
- Read Suppliers (Google Sheets): uses Google Sheets
- Read Materials (Google Sheets): uses Google Sheets
- Read Logistics Lanes (Google Sheets): uses Google Sheets
- Read Plants Sites (Google Sheets): uses Google Sheets
- Merge: merges the data from its input branches
- If: checks a condition and branches into true / false
- Normalize (Code): runs custom JavaScript code
- Set Failure Context (Edit Fields (Set)): sets 2 fields: failureReason, failedAt
- SPOF VaR Scoring (Code): runs custom JavaScript code
…plus 16 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent Risk Analyst (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent Risk Analyst (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - Notion
n8n-nodes-base.notion - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This scheduled workflow pulls supply-chain master data from Google Sheets, builds a supplier–material–plant–logistics graph, scores single points of failure (SPOFs) with a VaR proxy, and uses Groq (LLM) to generate a risk brief before…