Skip to content

The moment it happens

Announce new Chargebee subscriptions in Slack

Each new subscription is posted with the customer, plan and amount as soon as it's created.

Runs
The moment it happens
Apps
Chargebee
AI
Not needed
Access
read-only key; admin sets webhook

Send this to your assistant

Create a ClickRuntime automation: when a Chargebee subscription is created, post the customer name, plan and amount to #new-customers 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

Somebody has to notice when a customer actually subscribes. In many companies the news sits in a Chargebee dashboard that sales, customer success and the founder rarely open, so a new annual plan from a long-chased prospect can go unremarked for days, and the welcome call or onboarding invite is late.

When Chargebee sends a subscription created event, this posts a message to the Slack channel you pick the moment it arrives. The message carries the plan name and the amount, so the channel reads like a live scoreboard without anyone exporting a report.

It suits small revenue teams who want a visible win log, and finance teams who want a quick cross-check that every new subscription is a real one. Each post is generated from the event itself, so it is accurate the moment it appears and nobody has to type up the news or remember to share it.

What you get out of it

  • Celebrate and follow up the same hour

    A subscription shown in Slack within seconds lets customer success send the welcome note while the buyer is still thinking about your product. Waiting for a weekly report means the best moment for a personal touch has already passed.

  • Put plan and amount where people look

    Showing the plan and price in the message means nobody has to open Chargebee to understand the deal. A rep sees at a glance whether it was the starter tier or the enterprise plan, and reacts accordingly.

  • Catch odd subscriptions early

    If a plan appears that you retired, or an amount is far lower than list price, the channel makes the mistake visible within minutes. Fixing a misconfigured checkout link right away is far cheaper than reconciling it at month end.

  • Keep a running record of signups

    Scrolling the Slack channel gives a dated, searchable list of every new subscription. It is handy when someone asks which week a big customer joined, without querying billing data. It also settles later arguments about who joined and when, since the channel shows the order of events with timestamps.

  • Protect the webhook with basic auth

    The event endpoint requires basic authentication, so only Chargebee can post to it. That keeps spoofed messages out of your sales channel and means the alerts can be trusted at face value.

How it works

What happens, step by step

  1. When a new subscription is created in Chargebee, Chargebee tells ClickRuntime straight away.

  2. ClickRuntime reads the customer name, the plan and the price.

  3. A message goes to your #new-customers Slack channel with the customer, the plan and the amount.

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
Announce new Chargebee subscriptions in Slackjust nowSucceeded
Slack ยท #new-customers๐ŸŽ‰ New subscription: Northwind Traders on *growth-USD-monthly*, 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.
new_subscription_alert_chargebee.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_created":
        return {"posted": False}
    c, sub = body["content"]["customer"], body["content"]["subscription"]
    item = sub["subscription_items"][0]
    name = f"{c.get('first_name', '')} {c.get('last_name', '')}".strip() or c.get("company") or c["email"]
    notify.slack(f"๐ŸŽ‰ New subscription: {name} on *{item['item_price_id']}*, "
                 f"{sub['currency_code']} {item.get('amount', 0) / 100:,.2f}", channel="#new-customers")
    return {"subscription": sub["id"]}

FAQ

Common questions

Does it fire for trials and renewals as well?
It is set up for new subscriptions. Chargebee sends separate events for renewals, cancellations and trial changes, and only the subscription created event triggers this message. If you also want trial starts, ask for a second event type to be added.
Can I post only plans above a certain price?
Yes. The message already contains the amount, so a filter such as only posting subscriptions over $500 a month can be added as a step. Your AI assistant will show you the revised flow to approve before it replaces the current one.
What do I set up in Chargebee?
You add a webhook in Chargebee's settings that points at the endpoint ClickRuntime gives you, using the basic auth credentials shown there. After that, each new subscription arrives as an event and the Slack post follows within seconds.
What permissions does it need?
read-only key; admin sets webhook. 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 โ€œAnnounce new Chargebee subscriptions in Slackโ€ from your assistant

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