The moment it happens
Get new sales on Telegram and WhatsApp
Every new sale or order pings you on both Telegram and WhatsApp with the amount and what was bought.
- Runs
- The moment it happens
- Apps
- Telegram, WhatsApp Business
- AI
- Not needed
- Access
- bot token; whatsapp_business_messaging
Send this to your assistant
Create a ClickRuntime automation: when my shop sends a new order to my trigger link, message me on Telegram and WhatsApp with the amount, product and customer.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Owners of small shops like to know the moment an order comes in, to pack it the same day or just to see that the marketing is working. Shop apps send notifications, but they're easy to miss among everything else on a phone.
A short message on both Telegram and WhatsApp means you see each order on whichever app you're in, and a business partner can follow along on theirs.
What you get out of it
Never miss an order
Each sale reaches you on two apps.
Ship the same day
Knowing straight away helps you pack and post orders sooner.
Share with a partner
One of you can follow on Telegram and the other on WhatsApp.
Duplicates ignored
If the shop sends the same order twice, you only hear once.
How it works
What happens, step by step
Your shop sends each new order to ClickRuntime.
Orders already alerted are ignored.
The amount, product and customer are written into a short message.
The message goes to your Telegram chat and, as a template, to your WhatsApp.
Before it runs live
- Connect Telegram
- Connect WhatsApp Business
- 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 Slack
- Combine it with other Telegram and WhatsApp Business steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, state
MY_CHAT = 123456789
MY_PHONE = "447700900123"
WA = "https://graph.facebook.com/v20.0/your-phone-number-id/messages"
def wa_template(to, name, params):
body = {"messaging_product": "whatsapp", "to": to, "type": "template", "template": {"name": name, "language": {"code": "en"},
"components": [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}]}}
return http.post(WA, headers={"Authorization": f"Bearer {credentials.secret('WHATSAPP_TOKEN')}"}, json=body).json()
TG = "https://api.telegram.org"
def tg(chat_id, text):
http.post(f"{TG}/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": chat_id, "text": text})
@on_event
def handle(event):
o = event.json or {}
oid = str(o.get("id") or event.event_id)
if state.get(f"order:{oid}"):
return {"skipped": "duplicate"}
text = f"{o.get('total')} {o.get('currency', '')} · {o.get('product', 'order')} · {o.get('customer', '')}"
tg(MY_CHAT, f"🛒 New order {text}")
wa_template(MY_PHONE, "new_order", [text])
state.set(f"order:{oid}", True)
return {"order": oid}FAQ
Common questions
Which shops work?
Can it skip small orders?
Why a WhatsApp template?
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
Send error alerts to WhatsApp and Telegram
When a job fails, you get an alert on both WhatsApp and Telegram, with repeats held back.
See how it worksRun one support bot on WhatsApp and Telegram
Customers get the same answers whether they message your WhatsApp number or your Telegram bot, and questions the bot can't answer come to you.
See how it worksTell people on WhatsApp or Telegram when a Notion item changes status
When an item in your Notion database changes status, the person responsible is messaged on their preferred app.
See how it worksKeep exploring
Set up “Get new sales on Telegram and WhatsApp” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.