Skip to content

Every 5 minutes

Get Slack and Telegram alerts when your websites go down

Your websites are checked every 5 minutes, and you hear in both Slack and Telegram when one goes down or comes back.

Runs
Every 5 minutes
Apps
Slack, Telegram
AI
Not needed
Access
Slack chat:write; Telegram bot token

Send this to your assistant

Create a ClickRuntime automation: check my 5 websites every 5 minutes and alert Slack and Telegram when one goes down or comes back up.

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 two-person studio runs five websites for itself and its clients. During working hours they watch Slack, but evenings and weekends they only look at their phones, where Telegram is what they actually read. A site that goes down on Saturday morning can stay down until Monday because the alert sat in a work channel nobody opened.

This automation checks each site every five minutes and sends the alert to both places, so whoever is around sees it, at the desk or on the go. A second message says when the site is back.

What you get out of it

  • Alerts reach you wherever you are

    Slack covers the working day and Telegram covers your phone at other times. An outage is seen quickly whatever the hour.

  • Only changes are reported

    You get one message when a site goes down and one when it recovers, not an alert every five minutes. Long outages do not flood either app.

  • Outage length is clear

    The down and back-up messages are timestamped, so you know how long each outage lasted. That helps with client reports and hosting complaints.

  • No per-site fees

    Adding a site means adding one address to the list. Small client sites can be watched as closely as your own.

How it works

What happens, step by step

  1. Every 5 minutes, ClickRuntime visits each website on your list.

  2. It compares the result with the last check to see whether a site has gone down or come back.

  3. Only changes are reported, so you are not alerted again while a site stays down.

  4. Each change is posted to your Slack channel and your Telegram chat at the same time.

Before it runs live

  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Connect Telegram

What you get

RunsEvery 5 minutes
Get Slack and Telegram alerts when your websites go downtoday, 9:00Succeeded
Telegram · Site alertsDOWN: https://shop.northwind.example

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

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Slack 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.
website_uptime_monitor_with_slack_and_telegram_alerts.pyexample
from clickruntime import on_trigger, credentials, http, state, notify

SITES = ["https://northwind.example", "https://shop.northwind.example", "https://acme.example"]
TELEGRAM_CHAT_ID = "your-telegram-chat-id"

@on_trigger
def run(event):
    status = state.get("status") or {}
    changes = []
    for url in SITES:
        try:
            up = http.get(url, timeout=10).status_code < 500
        except Exception:
            up = False
        if url in status and status[url] != up:
            changes.append(f"{'Back up' if up else 'DOWN'}: {url}")
        status[url] = up
    if changes:
        text = "\n".join(changes)
        notify.slack(text, channel="#ops")
        http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage",
                  json={"chat_id": TELEGRAM_CHAT_ID, "text": text})
    state.set("status", status)
    return {"checked": len(SITES), "changes": len(changes)}

FAQ

Common questions

What counts as down?
A site that does not respond within ten seconds, cannot be reached or returns a server error such as 500 or 503. Normal pages and redirects count as up.
Can I alert only Telegram at night?
Yes. The script can check the time and skip Slack outside working hours, so night alerts only go to your phone.
How do I set up the Telegram side?
You create a bot with Telegram's BotFather, add it to your chat and save its token in your ClickRuntime dashboard. The chat ID tells it where to post.
What permissions does it need?
Slack chat:write; Telegram 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 each time it runs (every 5 minutes). Checks that find nothing to do and stop right away aren't counted.
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 Slack and Telegram alerts when your websites go down” from your assistant

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