Email Automation
Score customer churn risk and trigger CS follow-ups with Postgres, Mixpanel, Zendesk
On a schedule, it handles email using ClickUp, Gmail, Postgres, Slack.
What it does
## 📉 Customer Churn Risk Scoring Agent – Automated CS Intervention ### How it works Every 6 hours, this workflow pulls signals from four data sources in parallel: product usage from your database, engagement scores from Mixpanel, NPS scores from your database, and recent support tickets from Zendesk. All four streams are merged into a single customer object. A code node computes a churn risk score per customer based on days since last login, engagement percentile, NPS score, and open ticket count. Customers above the risk threshold are routed: medium risk gets a personalised check-in email via Gmail; high risk additionally triggers a Calendly booking link, a ClickUp CS task, and a Slack escalation to the account manager. Every intervention is logged back to the database. ### Setup steps 1. Connect Postgres to Get Product Usage (DB) and Get Latest NPS Scores — replace with your DB connection. 2. Connect HTTP Request to Get Mixpanel Engagement — add your Mixpanel API key. 3. Connect Zendesk to Get Recent Support Tickets — set your Zendesk subdomain. 4. Adjust the score thresholds in Calculate Churn Risk Score to match your business definition of risk. 5. Connect Gmail OAuth2 to Send Check-in Email. 6. Connect Calendly API to Book CS Call and set the event URI. 7. Connect ClickUp API to Create CS Task (ClickUp) — replace the list ID. 8. Connect Slack OAuth2 to Escalate to Account Manager — set the account manager's channel. 9. Connect Postgres to Log Intervention. 10. Activate the schedule trigger.
The steps
- Every 6 Hours1
- Get Product Usage (DB)1
- Get Mixpanel Engagement1
- Get Latest NPS Scores1
- Get Recent Support Tickets1
- Merge Usage + Mixpanel1
- Merge + NPS1
- Merge + Tickets1
- Calculate Churn Risk Score1
- Is Churn Risk?1
- Is High Risk?1
- Send Check-in Email1
- Book CS Call1
- Create CS Task (ClickUp)1
16 steps in total.
Similar automations
CRM & Sales PipelineSend WhatsApp win-back offers to at-risk gym members with OpenAI and ClickUp30 stepsEmail AutomationScore customer health and flag churn risk with Stripe, Zendesk, OpenAI, Slack and HubSpot24 stepsEmail AutomationSend AI appointment reminders and follow-ups with Calendly, Gmail, OpenAI, and Google18 stepsCRM & Sales PipelineScore customer churn risk from PostgreSQL data and alert Slack with Gemini17 steps