Predict supplier churn and generate retention plans with Notion, Slack, and Groq
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Notion, Basic LLM Chain, Groq Chat Model and Structured Output Parser and 1 more.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Supplier Data (Notion): get many (database page)
- Compute Supplier Risk Features (Code): runs custom JavaScript code
- Process Suppliers Sequentially (Loop Over Items (Split in Batches)): loops over the items in batches
- Rate Limit (Wait): pauses before continuing
- AI Churn Risk Predictor (Basic LLM Chain): sends a prompt to an LLM, with model: LLM; output parser: Parse Churn Prediction Output
- Normalize AI Risk Output (Edit Fields (Set)): sets 4 fields: churn_risk, risk_score, confidence…
- AI Retention Strategy Generator (Basic LLM Chain): sends a prompt to an LLM, with model: LLM(openai/gpt-oss-120b); output parser: Parse Retention Strategy Output
- Normalize Retention Plan (Edit Fields (Set)): sets 4 fields: priority, recommended_actions, owner…
- Check High Risk Supplier (If): checks a condition and branches into true / false
- Slack: uses Slack
…plus 1 more step. See the full node list below.
Services it uses
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.
Nodes used (11)
- Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Wait
n8n-nodes-base.wait - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
Quick overview This workflow runs weekly to pull supplier activity from Notion, engineer churn-risk features, and use Groq-hosted LLM prompts to classify supplier churn risk and generate retention plans. It updates each supplier record in Notion and posts a…