Skip to content

The moment it happens

Ping Telegram and text the customer on every new sale

Each new sale or lead pings you on Telegram, and the customer gets a thank-you text within seconds.

Runs
The moment it happens
Apps
Telegram, Twilio
AI
Optional
Access
Telegram bot; Twilio messaging

Send this to your assistant

Create a ClickRuntime automation: when a new sale or lead comes in, message me on Telegram with the details and send the customer a short SMS.

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

A small online shop owner wants to know the moment an order lands, but doesn't want to sit in an email inbox all day. Customers, meanwhile, like a quick text confirming their order went through, especially for local pickups and bookings.

Each new sale or lead now does both: a Telegram message tells you who bought what, and the customer gets a short, friendly SMS from your Twilio number.

What you get out of it

  • Know about every sale as it happens

    A Telegram ping on your phone is hard to miss and easy to glance at, without opening a dashboard.

  • Customers hear from you straight away

    A text arriving seconds after checkout reassures people that the order or enquiry was received.

  • Leads followed up while they're warm

    A quick SMS to a new lead starts the conversation before they have moved on to someone else.

  • One event, two messages, no copying

    Nobody has to retype a phone number or order total into another tool.

How it works

What happens, step by step

  1. Your shop or form sends ClickRuntime the new sale or lead.

  2. You get a Telegram message with the name, item and amount.

  3. If the customer left a phone number, they get a short thank-you text from your Twilio number.

  4. Each sale is handled once, even if your shop sends the same event twice.

Before it runs live

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

What you get

RunsThe moment it happens
Ping Telegram and text the customer on every new salejust nowSucceeded
Telegram · Sales botNew sale: Acme Studio bought the Pro bundle ($129). Thank-you SMS sent.

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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Telegram and Twilio 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_sale_or_lead_telegram_ping_and_sms.pyexample
from clickruntime import on_event, credentials, http, state
from twilio.rest import Client

@on_event
def handle(event):
    if state.get(event.event_id):
        return {"duplicate": True}
    sale = event.json or {}
    token = credentials.secret("TELEGRAM_BOT_TOKEN")
    http.post(f"https://api.telegram.org/bot{token}/sendMessage",
              json={"chat_id": "123456789", "text": f"New sale: {sale.get('name')} bought {sale.get('item')} ({sale.get('amount')})"})
    if sale.get("phone"):
        first = (sale.get("name") or "there").split(" ")[0]
        sms = Client(credentials.secret("TWILIO_ACCOUNT_SID"), credentials.secret("TWILIO_AUTH_TOKEN"))
        sms.messages.create(to=sale["phone"], from_="+15550199",
                            body=f"Thanks {first}! We've got your order for {sale.get('item')}.")
    state.set(event.event_id, True)
    return {"notified": True, "sms": bool(sale.get("phone"))}

FAQ

Common questions

Where do sales and leads come from?
Any tool that can send a webhook, such as your shop, checkout or form builder. You paste the trigger link from your ClickRuntime dashboard into its webhook settings.
Can the SMS mention what they bought?
Yes. The text can include their first name and the product or service, and AI can tidy it into a natural sentence if you like.
What if the customer gave no phone number?
You still get the Telegram message, marked as having no number, and no SMS is attempted.
What permissions does it need?
Telegram bot; Twilio messaging. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “Ping Telegram and text the customer on every new sale” from your assistant

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