Automation library · Chat assistants

Triage supplier capacity risk with Groq and Gmail

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

LargeCalls a model: Groq

22 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 4Logic 11Service 6

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

  1. 1LLM Risk EngineLm Chat GroqModel
  2. 2LLM Action GeneratorLm Chat GroqModel
  3. 3Daily TriggerSchedule triggerStarts it
  4. 4Classify Supplier Risk (AI)AgentModel
  5. 5Generate Mitigation ActionsAgentModel
  6. 6Initialize Risk ConfigSetLogic
  7. 7Validate & Merge Risk OutputCodeLogic
  8. 8Format Action RecommendationsCodeLogic
  9. 9Get Supplier Performance DataHttp RequestService
  10. 10Check High Risk ConditionIfLogic
  11. 11Combine Actions & Backup DataMergeLogic
  12. 12Check Valid OrdersIfLogic
  13. 13Get Backup Supplier OptionsHttp RequestService
  14. 14Prepare Non-Critical LogCodeLogic
  15. 15Prepare Alert PayloadCodeLogic
  16. 16Normalize Supplier DataCodeLogic
  17. 17ormat Backup Supplier ListCodeLogic
  18. 18Log Low/Medium EventGoogle SheetsService
  19. 19Send Email NotificationGmailService
  20. 20Compute Risk MetricsCodeLogic
  21. 21Send Slack NotificationSlackService
  22. 22Log High Risk EventGoogle SheetsService

How it's built

Starts on
A clock
Steps
22, with 2 branches
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 22 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 22 steps before you point it at anything that matters.