Skip to content

The moment it happens

Get a Telegram ping for each sale and thank the buyer by email

Every sale pings your phone on Telegram and the customer gets a thank-you email from your Outlook address.

Runs
The moment it happens
Apps
Outlook, Telegram
AI
Not needed
Access
Mail.Send; bot token

Send this to your assistant

Create a ClickRuntime automation: when a sale or paid invoice comes in, send me a Telegram message with the amount and buyer, and email the customer a thank-you from my Outlook.

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

For a one-person shop or a freelancer, every sale matters, but checkout emails get buried and the customer only ever hears from a no-reply payment system. A personal note builds the kind of relationship that brings repeat orders.

A Telegram message tells you the moment money arrives, and a thank-you from your own address does the personal touch for you, even when the sale happens at midnight.

What you get out of it

  • Know about every sale

    The ping arrives on your phone as soon as the sale happens. You don't have to keep a payment dashboard open.

  • A personal thank-you

    Customers hear from your real email address, not a no-reply system. They can reply to it, which often starts a conversation.

  • More repeat business

    A prompt, friendly email makes buyers more likely to come back. It's also a natural place to mention what else you offer.

  • Works with your sales tool

    Any shop, payment or invoicing tool that can send a webhook can feed it. You keep the tools you already use.

How it works

What happens, step by step

  1. Your shop or payment tool tells ClickRuntime about each new sale.

  2. It reads the amount, product and buyer's email from the sale, and ignores repeat deliveries of the same sale.

  3. You get a Telegram message with the amount and buyer.

  4. The customer gets a thank-you email from your Outlook address.

Before it runs live

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

What you get

RunsThe moment it happens
Get a Telegram ping for each sale and thank the buyer by emailjust nowSucceeded
Telegram · Sales bot💰 $149.00 from ops@acme.example for Annual plan

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 Outlook and Telegram 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.
sale_or_invoice_telegram_ping_and_outlook_thank_you.pyexample
GRAPH = "https://graph.microsoft.com/v1.0"
TG = "https://api.telegram.org"
from clickruntime import on_event, credentials, http, state

MY_CHAT_ID = 123456789

@on_event
def handle(event):
    sale = event.json or {}
    if state.get(event.event_id):
        return {"skipped": "duplicate"}
    buyer, amount, item = sale.get("email"), sale.get("amount"), sale.get("product", "your order")
    bot = f"{TG}/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}"
    http.post(f"{bot}/sendMessage", json={"chat_id": MY_CHAT_ID, "text": f"💰 {amount} from {buyer} for {item}"})
    if buyer:
        h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
        mail = {"message": {"subject": "Thank you for your order",
                            "body": {"contentType": "Text", "content": f"Thanks for buying {item}. Reply to this email if you have any questions."},
                            "toRecipients": [{"emailAddress": {"address": buyer}}]}}
        http.post(f"{GRAPH}/me/sendMail", headers=h, json=mail).raise_for_status()
    state.set(event.event_id, True)
    return {"buyer": buyer}

FAQ

Common questions

Which sales tools can trigger it?
Anything that can send a webhook when a sale or payment happens, such as your shop, payment provider or invoicing tool.
Can I change the thank-you email?
Yes. It's plain text you write, and it can include the customer's name and what they bought.
Will refunds or test payments send a thank-you?
Only events you choose trigger it. Filter on paid sales, and test events can be ignored.
What permissions does it need?
Mail.Send; bot token. 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 a Telegram ping for each sale and thank the buyer by email” from your assistant

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