The moment it happens
Announce subscriptions, cancellations and failed payments in Slack and Telegram
Every new subscription, cancellation and failed payment is posted to your revenue channel in Slack and sent to you on Telegram.
- Runs
- The moment it happens
- Apps
- Slack, Telegram
- AI
- Not needed
- Access
- Telegram bot token; Slack chat:write
Send this to your assistant
Create a ClickRuntime automation: when LemonSqueezy sends a subscription webhook, post it to #revenue in Slack and to my Telegram.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A two-founder SaaS business bills through LemonSqueezy. A failed card payment means a customer is about to lose access, and a cancellation is a chance to ask why. Both founders mean to check the billing dashboard daily, but in a busy week a failed payment goes unnoticed until the customer is already gone, and nobody asked the cancelling customer a single question.
Seeing every subscription event the moment it happens, in Slack for the team and on Telegram for the founder on the move, means failed payments get a friendly nudge and cancellations get a quick, personal follow-up.
What you get out of it
Save customers with failed payments
A failed payment alert lets you reach out before the customer loses access. A quick note about updating their card often keeps the subscription.
Learn why people cancel
Hearing about a cancellation right away is the best moment to ask for feedback. The answers point to what to fix next.
Celebrate new customers together
New subscriptions appear in the team channel as they happen. Everyone sees the business growing, not only whoever checks the dashboard.
On your phone when it matters
Telegram reaches you away from your desk. A failed payment from a large account does not wait until you are back at your laptop.
A daily count at a glance
Events are counted per day, and each message shows the running total. A day with unusual cancellations stands out immediately.
How it works
What happens, step by step
When LemonSqueezy reports a subscription change, ClickRuntime receives it straight away.
It checks the message came from your store and picks out the event, the customer and the plan.
It adds the event to today's count.
A short message is posted to #revenue in Slack and sent to you on Telegram.
Before it runs live
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
- Connect Telegram
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
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 Google Sheets
- Combine it with other Slack and Telegram steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, notify, state, verify
TELEGRAM_CHAT_ID = "your-telegram-chat-id"
ICONS = {"subscription_created": "🎉", "subscription_cancelled": "👋", "subscription_payment_failed": "⚠️", "subscription_payment_success": "🔁"}
@on_event
def handle(event):
if not verify.generic_hmac_sha256(event.body, event.header("X-Signature") or "", credentials.secret("LEMONSQUEEZY_SIGNING_SECRET")):
return {"skipped": "bad signature"}
body = event.json or {}
name = body.get("meta", {}).get("event_name", "")
a = body.get("data", {}).get("attributes", {})
state.increment_metric(name or "event", ttl_days=90)
points = state.query_metric(name or "event")
count = points[-1]["value"] if points else 1
text = f"{ICONS.get(name, '💳')} {name.replace('_', ' ')}: {a.get('user_name', '')} on {a.get('product_name', '')} {a.get('variant_name', '')} (#{count} today)"
notify.slack(text, channel="#revenue")
http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": TELEGRAM_CHAT_ID, "text": text})
return {"event": name}FAQ
Common questions
Which events are announced?
Is each webhook checked to be genuine?
Can I use a different billing platform?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Post GitHub pushes, pull requests and issues to Slack and Telegram
Activity from all your GitHub repositories appears in one Slack channel and on your Telegram, as it happens.
See how it worksSend error and status alerts to Slack and Telegram
Any failure or status change sent to your trigger link reaches both Slack and Telegram, with repeats filtered out.
See how it worksAnswer Telegram bot messages and escalate urgent ones to Slack
Every message to your Telegram bot gets an instant reply, and complaints or urgent requests are posted to your Slack support channel.
See how it worksKeep exploring
Set up “Announce subscriptions, cancellations and failed payments in Slack and Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.