Analyze procurement spend with Google Sheets, Groq Llama 3.3, Notion, and Gmail
Ready for 3.0What this workflow does
This AI workflow has 18 nodes and runs on a schedule (every day at 09:00). Along the way it connects Groq Chat Model, Google Sheets, Gmail and Notion.
How it runs
Trigger: On a schedule (every day at 09:00).
- Workflow Config (Edit Fields (Set)): sets 4 fields: lookbackDays, minSpendForAI, priorityThreshold…
- Fetch Spend Data (Google Sheets): uses Google Sheets
- Normalize & Build Matrix (Code): runs custom JavaScript code
- Fragmentation, Overlap & Model Scenarios (Code): runs custom JavaScript code
- Compare, Score & Rank (Code): runs custom JavaScript code
- AI Pass 1: Spend Pattern Analyst (AI Agent): runs an AI agent, with model: Groq Llama 3.3 (Analyst)
- Parse AI Output (Code): runs custom JavaScript code
- High Priority Opportunity? (If): checks a condition and branches into true / false
- AI Pass 2: Playbook Strategist (AI Agent): runs an AI agent, with model: Groq Llama 3.3 (Strategist)
- Executive Rollup (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Groq + Google Sheets templates (156) · Other Groq + Gmail templates (125)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Aggregate
n8n-nodes-base.aggregate - Google Sheets
n8n-nodes-base.googleSheets - HTML
n8n-nodes-base.html - Gmail
n8n-nodes-base.gmail - Notion
n8n-nodes-base.notion - If
n8n-nodes-base.if - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow runs daily, reads procurement spend data from Google Sheets, calculates category-level savings and risk metrics, uses Groq (Llama 3.3) to generate Kraljic Matrix insights, logs results to Notion, appends metrics to a Google Sheets…