Skip to content

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.

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

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

  1. Your shop sends each new order to ClickRuntime.

  2. Orders already alerted are ignored.

  3. The amount, product and customer are written into a short message.

  4. 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

RunsThe moment it happens
Get new sales on Telegram and WhatsAppjust nowSucceeded
Telegram · Orders🛒 New order 64.00 EUR · Linen apron x2 · Northwind Café

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 Telegram and WhatsApp Business 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_purchase_and_order_alerts_on_both.pyexample
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?
Any shop or payment tool that can send a webhook for new orders.
Can it skip small orders?
Yes. Set a minimum amount for alerts.
Why a WhatsApp template?
Unless you've messaged your business number in the last 24 hours, WhatsApp only delivers approved templates.
What permissions does it need?
bot token; whatsapp_business_messaging. 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 new sales on Telegram and WhatsApp” from your assistant

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