Automation library · Chat assistants

Assess procurement inflation risk with Groq and Google Sheets

Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Groq. 23 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Groq

23 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 11Service 7

The steps in the order they run, from what starts it.

  1. 1Groq Chat ModelLm Chat GroqModel
  2. 2Groq Chat Model1Lm Chat GroqModel
  3. 3Weekly Risk RefreshSchedule triggerStarts it
  4. 4AI: Margin Impact AnalystAgentModel
  5. 5AI: Supply Chain StrategistAgentModel
  6. 6Fetch Historical SpendGoogle SheetsService
  7. 7Fetch Category BudgetsGoogle SheetsService
  8. 8Get World Bank Inflation DataHttp RequestService
  9. 9Get Live USD/INR FX RatesHttp RequestService
  10. 10Format AI Report for SheetSetLogic
  11. 11Slack: Urgent Overspend AlertSlackService
  12. 12Join Spend & BudgetMergeLogic
  13. 13Join Inflation & FX RatesMergeLogic
  14. 14Sync Results to DashboardGoogle SheetsService
  15. 15Combine Master Data RecordMergeLogic
  16. 16Email: Individual Category UpdateGmailService
  17. 17Standardize Variable NamesSetLogic
  18. 18Process Each CategorySplit In BatchesLogic
  19. 19Calc: Inflation Adjusted SpendCodeLogic
  20. 20Calc: Budget Variance AnalysisCodeLogic
  21. 21Calc: Margin Leakage RiskCodeLogic
  22. 22Check: Over Budget?IfLogic
  23. 23Check: High Inflation?IfLogic

How it's built

Starts on
A clock
Steps
23, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Slack
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Groq. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.