Recipe
Shopify Order Notifications in Telegram, or as a Push on Your Phone
Shopify's order emails are fine until there are many of them. If what you want is a short message on your phone for the orders that matter, a webhook, a filter and a Telegram bot will do it, and none of them need installing in your store.
17 November 2026 · 3 min read
What you will end up with
A message like this, in a private chat or a team group, within a second or two of the order:
🛒 New order #1042
284.00 EUR · 3 item(s)
Maya Okafor · Lisbon
First item: Walnut desk shelfStep 1: a Telegram bot
- In Telegram, message @BotFather, send
/newbotand follow the prompts. You get a token that looks like123456789:AAE…. - Send your new bot any message, or add it to a group and send a message there.
- Open
https://api.telegram.org/bot<TOKEN>/getUpdatesin a browser and findchat.idin the reply. That number is where messages will go. Group IDs are negative.
The token lets anyone send messages as your bot. Keep it out of screenshots.
Step 2: a Shopify webhook
- Create a webhook.stream URL.
- In the Shopify admin open Settings → Notifications → Webhooks and create a webhook: event Order creation, format JSON, and your URL.
- Use Send test notification, or place a test order. The request arrives in the inspector with Shopify recognised and the topic shown as
orders/create.
Step 3: the automation
Select the captured order, open Automations and choose Notify Telegram. The destination is https://api.telegram.org/bot<TOKEN>/sendMessage with your token in place.
When
| Field | Operator | Value |
|---|---|---|
headers.x-shopify-topic | equals | orders/create |
body.total_price | is greater than | 200 |
Shopify sends prices as text, such as "284.00". The comparison treats it as a number. Drop the second condition if you want every order.
Turn it into
{
"chat_id": "YOUR_CHAT_ID",
"text": "🛒 New order {{body.name}}\n{{body.total_price}} {{body.currency}} · {{body.line_items | length}} item(s)\n{{body.customer.first_name}} {{body.customer.last_name}} · {{body.shipping_address.city | default: \"no shipping address\"}}\nFirst item: {{body.line_items[0].title}}"
}Two details in that template:
line_items | lengthcounts the items. Templates cannot loop over them, so the message names the first and says how many there are.- There is no
parse_mode. With Telegram's Markdown mode, one unescaped full stop or hyphen in a product title makes Telegram reject the whole message. Plain text never fails that way.
Step 4: test and save
Press Send test. Telegram answers with the message it created, or with a description of what was wrong: chat not found means the chat ID is off or the bot has not been messaged yet.
The same thing as a phone push, with ntfy
If you do not use Telegram, ntfy sends push notifications to its phone app from a plain HTTP request. Install the app, subscribe to a topic with a long random name, and choose Push with ntfy with https://ntfy.sh/your-long-random-topic as the destination.
New order {{body.name}}: {{body.total_price}} {{body.currency}}, {{body.line_items | length}} item(s)Title: Shopify order
Priority: high
Tags: shopping_cart
Click: {{body.order_status_url}}Header values are templates as well, so tapping the notification opens that order's status page. Keep customer names in the body: headers only carry plain ASCII reliably. On the public ntfy server, anyone who knows a topic name can read it, which is why the name should be long and random.
Things worth knowing
- Shopify expects an answer within five seconds and removes webhooks that keep failing. The URL acknowledges immediately, whatever Telegram is doing, so the subscription stays healthy.
- Deliveries are not retried. If Telegram is briefly unreachable, that message is missed. The order still shows in the inspector with the failed attempt beside it.
- Orders contain personal data. Captured requests are stored until the URL expires and are visible to anyone with the dashboard link. Send the chat only what it needs, and do not share the link widely.
- Some fields can be absent. Orders without shipping have no
shipping_address. Usedefaulton anything optional.
Variations
- Cancellations or refunds: create a second Shopify webhook for Order cancellation on the same URL and filter on
orders/cancelled. - Only tagged orders:
body.tagscontainswholesale. - Team chat instead: the same conditions work with Slack or Discord.
For Shopify's headers, topics and signature, see the Shopify webhook guide.
Start with a test order
Create a URL, add it under Shopify's webhook settings and send a test notification. Build the message from the order that arrives.
Keep reading
Stripe webhooks to Slack
Post Stripe failed payments, new disputes and large checkouts to a Slack channel in plain language, with filters and message templates. No app to install and no code to host.
ReadWebhook filtering
Filter webhooks by event type, amount, branch, header or path before they reach a channel or an API. How conditions work, ten patterns worth copying, and how to express OR.
Read