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.
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
Your shop or payment tool tells ClickRuntime about each new sale.
It reads the amount, product and buyer's email from the sale, and ignores repeat deliveries of the same sale.
You get a Telegram message with the amount and buyer.
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
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 Outlook and Telegram steps into one automation
Under the hood
The code that runs this automation
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?
Can I change the thank-you email?
Will refunds or test payments send a thank-you?
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 e-books to your Kindle from Telegram
Forward an e-book to your Telegram bot and it arrives on your Kindle a few minutes later.
See how it worksSend this week's Outlook events to a Telegram group
Each morning your Telegram group gets today's, tomorrow's and the rest of the week's events from Outlook.
See how it worksSort your Outlook inbox and get urgent emails on Telegram
New emails are labelled by topic, and the urgent ones reach your phone on Telegram with a one-line summary.
See how it worksKeep exploring
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.