Automation library · Chat assistants

Predict supplier churn and generate retention plans

Started by an event in a connected app, and works across Notion and Slack. It hands the judgement calls to Groq. 16 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

MediumCalls a model: Groq

16 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Model 6Logic 6Service 3

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

  1. 1LLMLm Chat GroqModel
  2. 2Parse Churn Prediction OutputOutput Parser StructuredModel
  3. 3LLM(openai/gpt-oss-120b)Lm Chat GroqModel
  4. 4Parse Retention Strategy OutputOutput Parser StructuredModel
  5. 5Start WorkflowManual triggerStarts it
  6. 6AI Churn Risk PredictorChain LlmModel
  7. 7AI Retention Strategy GeneratorChain LlmModel
  8. 8Fetch Supplier DataNotionService
  9. 9Normalize AI Risk OutputSetLogic
  10. 10Normalize Retention PlanSetLogic
  11. 11Compute Supplier Risk FeaturesCodeLogic
  12. 12Check High Risk SupplierIfLogic
  13. 13Process Suppliers SequentiallySplit In BatchesLogic
  14. 14Slack High Risk AlertSlackService
  15. 15Update Supplier IntelligenceNotionService
  16. 16Rate LimitWaitLogic

How it's built

Starts on
An event in a connected app
Steps
16, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Notion, Slack
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Notion 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 an event in a connected app.

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?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

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 16 steps before you point it at anything that matters.