Skip to main content

Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts

Workflow preview

Workflow preview
100%
Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts preview
Open on n8n.io

1. Workflow Overview

How it works This workflow automatically detects at risk customers by listening for inactivity signals from Mixpanel, scoring their churn risk, syncing everything to HubSpot, creating a prioritized...

Best for

  • CRM automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.hubspot, n8n-nodes-base.clickup, n8n-nodes-base.slack, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Avkash Kakdiya.

Original n8n.io source

1.1 Workflow description

Title
Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts
Workflow name
Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts

How it works

This workflow automatically detects at-risk customers by listening for inactivity signals from Mixpanel, scoring their churn risk, syncing everything to HubSpot, creating a prioritized ClickUp follow-up task, and alerting the customer success team on Slack — all without any manual effort.

Step-by-step

  • Trigger & parse

  • Mixpanel Webhook – Receives POST events from Mixpanel when a customer inactivity event is fired (e.g. user_inactive_30_days). Supports both single events and batch arrays.

  • Parse Mixpanel Payload – Normalizes the raw Mixpanel payload, extracting email, name, user ID, company, plan, MRR, inactive days, last active date, last feature used, total sessions, location, and CSM assignment. Skips records with no identifying information.

  • Event validation

  • Is Churn Event – Confirms the event name matches user_inactive_30_days, has no parse errors, and includes a valid email before proceeding.

  • Risk scoring

  • Enrich User Data – Calculates churn score (Medium / High / Critical) and task priority based on inactive days, sets a due date of 24 hours and a follow-up date of 3 days, and builds the alert subject line with risk level.

  • CRM lookup

  • HubSpot Find Contact – Searches HubSpot for an existing contact by email, retrieving name, company, lifecycle stage, owner, lead status, and phone.

  • Contact Found – Routes to the full retention flow if a contact exists, or to a Slack fallback alert if no contact is found.

  • Slack Contact Not Found – Posts a Slack warning to the team for manual action when no HubSpot contact matches the churn event email.

  • Deal management

  • HubSpot Get Deals – Fetches all deals associated with the found HubSpot contact via the CRM Associations API.

  • Deal Exists – Routes to update the existing deal or create a new one based on whether an associated deal is found.

  • HubSpot Update Deal – Updates the existing deal stage to appointmentscheduled and sets the close date to the follow-up date.

  • HubSpot Create Deal – Creates a new churn risk deal linked to the contact, with annual value (MRR × 12), deal name, and follow-up close date.

  • Set Deal ID – Normalizes the deal ID from either the update or create branch for consistent downstream use.

  • CRM logging & task creation

  • HubSpot Log Note – Posts a detailed churn risk note on the HubSpot contact record linked to both the contact and the deal, including all churn signals and MRR data.

  • ClickUp Create Task – Creates a prioritized CS follow-up task with a full action checklist covering outreach, Mixpanel review, discovery call scheduling, and escalation criteria. Due within 24 hours.

  • Slack CS Alert – Posts a comprehensive churn risk alert to the CS Slack channel with customer details, revenue impact, churn signals, risk score, HubSpot links, and a full action checklist.

Why use this?

  • Automatically catches every at-risk customer the moment Mixpanel detects inactivity — no manual monitoring needed
  • Three-tier risk scoring (Medium / High / Critical) ensures the CS team prioritizes the highest-value accounts first
  • Keeps HubSpot fully in sync by creating or updating deals and logging churn risk notes directly on the contact record
  • Auto-creates ClickUp tasks with a structured action checklist so every churn risk has an owner and a deadline
  • Alerts the team instantly on Slack with full context — revenue, signals, CRM links, and next steps — so they can act within hours

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Mixpanel Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Parse Mixpanel Payload

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Is Churn Event

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 4 - Enrich User Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Contact Found

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 6 - Deal Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 7 - HubSpot Update Deal

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2

Block 8 - HubSpot Create Deal

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2

Block 9 - ClickUp Create Task

Type / Role
n8n-nodes-base.clickUp - clickUp
Config choices
Version 1

Block 10 - Slack CS Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 11 - Slack Contact Not Found

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.2

Block 12 - HubSpot Get Deals

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 13 - HubSpot Find Contact

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2

Block 14 - HubSpot Log Note

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 15 - Set Deal ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts
Complexity advanced
Nodes 23
Categories CRM, AI Summarization
Author Avkash Kakdiya
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15877/15877.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Detect Mixpanel churn and create HubSpot, ClickUp, and Slack retention alerts do?

How it works This workflow automatically detects at risk customers by listening for inactivity signals from Mixpanel, scoring their churn risk, syncing everything to HubSpot, creating a prioritized...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, AI Summarization use case.