Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Оценка рисков снабжения с Groq, Notion, Slack и Gmail
Работает по расписанию: загружает данные о поставщиках, материалах, логистике и заводах, оценивает единые точки отказа с помощью прокси-показателя VaR, записывает аналитическую сводку рисков с ИИ в Notion и отправляет оповещения в Slack или Gmail.
Что делает
# Supply Chain Flow Visualization — Procurement Risk Control Loop This workflow provides an end-to-end procurement risk control pipeline that continuously ingests supplier, material, logistics, and plant data, builds a supply-chain graph, and scores single points of failure (SPOFs) with a Value-at-Risk (VaR) proxy. It then uses a Groq-powered LangChain agent to produce an executive risk brief, renders a visual risk map, publishes results to Notion, and routes Slack/Gmail alerts when severity crosses configured thresholds—while always writing a full audit trail to Google Sheets. ## How it Works: 1. Runs on a weekly schedule and loads thresholds (varThreshold, spofCountThreshold, alert emails) plus a unique runId. 2. Reads four Google Sheets tabs in parallel (Suppliers, Materials, Logistics, Plants) and merges them into one payload. 3. Validates that data exists, then normalizes rows into a graph of nodes/edges and scores SPOFs + VaR. 4. If the graph is empty, it notifies Slack with a failure reason and stops; otherwise a Groq risk analyst returns structured JSON (summary, top SPOFs, mitigations). 5. Renders an SVG risk map, uploads it to Google Drive, creates a Notion risk-run page, and: - Critical/high risk: posts Slack + Gmail digests. - Lower risk: skips alerts. - *Both paths log the run outcome to Google Sheets.* ## Setup Steps: * Google Sheets: Connect OAuth and point each Read node at the N-204 workbook tabs (Suppliers, Materials, Logistics, Plants) plus the runlogs audit sheet. * Thresholds: Adjust varThreshold, spofCountThreshold, and alertEmails in Set Workflow Config. * LLM Integration: Provide your Groq API key for the LangChain risk analyst agent. * Notion Dashboard: Connect Notion and select the Supply Chain Risk Runs database. * Google Drive: Authenticate Drive so SVG risk maps can be uploaded and linked. * Alerts: Connect Slack (channel) and Gmail for critical-risk digests. * Trigger Scheduling: Keep or change the Monday 08:00 cron on Schedule Trigger.
Шаги
- Set Workflow Config
- Read Suppliers
- Read Materials
- Read Logistics Lanes
- Read Plants Sites
- Merge Supply Chain Data
- IF Data Present
- IF Graph Built
- Set Failure Context
- Slack Notify Failure
- AI Agent Risk Analyst
- Groq Chat Model
- Code Parse Groq Payload
- Set Visualization Payload
Всего шагов: 28.
Похожие автоматизации
Автоматизация эл. почтыTriage employee leave requests with Google Sheets, Groq API, and GmailШагов: 17Код, Git и инструменты разработчикаUpdate and roll back WordPress plugins and themes via SSH with Groq analysisШагов: 31ИИ-агенты и ассистентыОтбор и оценка резюме с помощью ИИ-агента GroqШагов: 11Задачи и управление проектамиСортировка заявок на закупку из Airtable с помощью Groq, Google Sheets и SlackШагов: 16