Predict customer churn daily using ML or LLM models and notify via Slack/email
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 16 nodes and runs on a schedule (cron 0 2 * * *). Along the way it connects Postgres.
How it runs
Trigger: On a schedule (cron 0 2 * * *).
- Fetch active customer profiles (HTTP Request): calls an HTTP API
- Fetch customer activity logs (30 days) (HTTP Request): calls an HTTP API
- Fetch transaction history (90 days) (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Engineer behavioral features (Code): runs custom JavaScript code
- Call ML churn prediction model (HTTP Request): calls an HTTP API (POST)
- Score and classify churn risk (Code): runs custom JavaScript code
- Route by risk level (Switch): routes items into 3 branches
- Create retention campaign task (HTTP Request): calls an HTTP API (POST)
- Store churn predictions in database (Postgres): uses Postgres
…plus 5 more steps. 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 (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - Postgres
n8n-nodes-base.postgres - Filter
n8n-nodes-base.filter - Send Email
n8n-nodes-base.emailSend
From the author
This n8n workflow runs daily to analyze active customer behavior, engineers relevant features from usage and transaction data, applies a machine learning or AI-based model to predict churn probability, classifies risk levels, triggers retention actions for…