Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Автоматизация эл. почты

Автоматизация эл. почты

Monitor supplier diversity and ESG spend with Google Sheets, Groq and Notion

On a schedule, it handles email with Groq and OpenAI / ChatGPT using Groq, Gmail, Google Sheets, Notion.

Что делает

# Supplier Diversity & ESG Spend Monitor This workflow provides an end-to-end procurement monitoring pipeline that evaluates YTD supplier spend against diversity and ESG targets. It calculates deterministic metrics in Code, then uses a Groq LLM only to recommend FROM → TO spend shifts when a target is missed. Validated recommendations are written to a Notion scorecard and emailed as a CPO briefing. High-impact shifts are flagged for human review — the workflow does not wait for approval. ## How it Works: 1. Runs every Monday, reading Suppliers, Procurement Spend, and Targets from Google Sheets. 2. Joins spend to the supplier master, then scores diverse / women-owned / minority-owned / ESG-qualified spend vs configurable targets. 3. If all targets are met, skip rebalancing and go straight to the executive summary. 4. If any target is missed, Code finds underused qualified suppliers and category gaps; Groq proposes shifts; Code validates, caps, and falls back if the AI output is invalid. 5. Prepare a CPO-ready payload, create a Notion scorecard page, and send a Gmail briefing. ## Setup Steps: * Set Config: Paste company_name, Google Sheet ID, tab names, Notion database ID, CPO email, and period. This is the only node most users need to edit. * Google Sheets: Authenticate and import suppliers.csv,transactions.csv, and targets.csv into the three tabs named in Set Config. * Notion: Create database Weekly Diversity Scorecard. Select options must match exactly: Overall Status ON_TRACK | NEEDS_ATTENTION | NO_DATA; metric Status MET | BELOW_TARGET; Priority HIGH | MEDIUM | LOW; Review Flag NONE | HUMAN_REVIEW. * Groq: Connect Groq credentials for both AI chains (openai/gpt-oss-20b). * Gmail: Connect Gmail so the weekly briefing can send. * Trigger: Default is Monday 09:00. Adjust Trigger Every Monday if needed. ESG-qualified spend = supplier esg_score ≥ minimum_esg_score. Primary objective is supplier diversity; ESG and risk are constraints.

Шаги

  1. Set Config
  2. Get Suppliers
  3. Get Procurement Spend
  4. Normalize Data
  5. Calculate Spend Metrics
  6. Targets Met?
  7. Find Rebalancing Opportunities
  8. Groq Chat Model
  9. Validate Recommendations
  10. Groq Chat Model Summary
  11. Prepare Results
  12. Create Notion Scorecard
  13. Send Weekly Briefing
  14. AI - Analyze Opportunities

Всего шагов: 18.

Похожие автоматизации