Skip to content

The moment it happens

Get a Slack alert with the MRR lost when a customer cancels

Every cancellation is flagged with how much monthly revenue it removes, so account owners can step in.

Runs
The moment it happens
Apps
Chargebee
AI
Not needed
Access
read-only

Send this to your assistant

Create a ClickRuntime automation: when a Chargebee subscription is cancelled, post the customer, plan and the MRR we lose to #churn in Slack.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Subscription businesses on Chargebee do not lose revenue in one dramatic event. They lose it through small cancellations and downgrades spread across the month, each recorded in Chargebee and none announced to the people who could do something about it. A customer who downgrades from the Business plan to Starter is a warning that nobody reads until the revenue report shows the dip.

When a Chargebee subscription is cancelled or its plan changes to a lower one, Chargebee notifies ClickRuntime straight away and a message goes to your channel. It carries the customer, the plan and the type of change, so the team knows who left or shrank and when, without opening Chargebee.

Customer success and finance teams in SaaS and membership businesses watch this feed more closely than any report.

What you get out of it

  • Save attempts happen while the customer is reachable

    A personal reply within hours of a cancellation, or even before it takes effect, can change a mind. A discount or a quick call recovers a share of customers who would otherwise be gone for good.

  • Downgrades are treated as early warnings

    A customer moving to a cheaper plan often signals trouble, such as low usage or budget pressure. Reaching out then is far better than waiting for a full cancellation. That makes pacing against targets possible before month end, when corrective action still counts.

  • Revenue impact is visible immediately

    Seeing each change as it happens shows the real pace of churn. Finance learns of shrinking recurring revenue during the month, not weeks later. Contacting someone shortly after they cancel gives a much better chance of learning the real reason, and honest feedback about price or missing features guides product decisions.

  • Reasons can be collected promptly

    Contacting someone soon after they cancel gives a much better chance of learning why. Honest feedback about price, missing features or support guides product decisions. Product and sales can respond to a pattern, such as a pricing change or a weak feature, and not only to single accounts.

  • Patterns are noticed across customers

    Several cancellations on the same plan or from the same segment stand out in a channel. Product and sales can respond to the pattern, not just to individual losses. A short note from the right person can still bring back a customer who was only comparing options.

How it works

What happens, step by step

  1. When a customer cancels a subscription in Chargebee, Chargebee tells ClickRuntime straight away.

  2. ClickRuntime works out how much monthly recurring revenue the cancellation loses.

  3. A message goes to your #churn Slack channel with the customer, the plan and the revenue lost.

Before it runs live

  • Connect Chargebee
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Get a Slack alert with the MRR lost when a customer cancelsjust nowSucceeded
Slack · #churn📉 Acme Corp cancelled *growth-USD-monthly*. MRR lost: USD 199.00

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Chargebee steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
churn_alert.pyexample
from clickruntime import on_event, credentials, notify

def from_chargebee(event):
    return event.header("Authorization") == credentials.secret("CHARGEBEE_WEBHOOK_AUTH")  # "Basic ..." set on the webhook

@on_event
def handle(event):
    if not from_chargebee(event):
        return {"posted": False, "reason": "unauthorised"}
    body = event.json
    if body["event_type"] != "subscription_cancelled":
        return {"posted": False}
    c, sub = body["content"]["customer"], body["content"]["subscription"]
    name = c.get("company") or f"{c.get('first_name', '')} {c.get('last_name', '')}".strip() or c["email"]
    plan = sub["subscription_items"][0]["item_price_id"]
    notify.slack(f"📉 {name} cancelled *{plan}*. MRR lost: {sub['currency_code']} {sub.get('mrr', 0) / 100:,.2f}",
                 channel="#churn")
    return {"subscription": sub["id"]}

FAQ

Common questions

Does it alert on cancellations scheduled for the end of a billing period?
Chargebee can record a cancellation that takes effect later. Which webhook events fire depends on how the cancellation is made and on your settings, so test with a sample. The alert follows the events your account actually sends.
How is a downgrade detected?
The workflow compares the plan or price in the change event with the previous one and flags it as a downgrade when the new plan is cheaper. Plans with unusual pricing may need a rule, such as a list of plans ranked by tier.
Can I limit it to high-value customers?
Yes. If the event includes the plan or amount, a condition can post only changes above a certain value, or send big accounts to a separate channel. Say what threshold you want to your AI assistant and review it first.
What permissions does it need?
read-only. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get a Slack alert with the MRR lost when a customer cancels” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.