# Monitor HTTP endpoints and send state-change alerts: n8n workflow

> Started by a clock, and works across Google Sheets and Slack. 25 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/monitor-http-endpoints-and-send-state-change-alerts (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Monitor HTTP endpoints and send state-change alerts

Started by a clock, and works across Google Sheets and Slack. 25 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-http-endpoints-and-send-state-change-alerts)

**25 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 15 Service 7

The steps in the order they run, from what starts it.

- 1 **Every 5 minutes** Schedule trigger *Starts it*
- 2 **Run once now** Manual trigger *Starts it*
- 3 **Every morning at 08:00** Schedule trigger *Starts it*
- 4 **Endpoints to watch** Code *Logic*
- 5 **Read what happened** Code *Logic*
- 6 **Split endpoints** Split In Batches *Logic*
- 7 **Build digest** Code *Logic*
- 8 **Ping endpoint** Http Request *Service*
- 9 **Anything worth sending?** If *Logic*
- 10 **Judge response** Code *Logic*
- 11 **Send daily digest** Slack *Service*
- 12 **Quiet day, say nothing** No Op *Logic*
- 13 **Healthy?** If *Logic*
- 14 **Track state change** Code *Logic*
- 15 **Wait 30 seconds** Wait *Logic*
- 16 **What happened?** Switch *Logic*
- 17 **Still down long enough to escalate?** If *Logic*
- 18 **Second attempt** Http Request *Service*
- 19 **Compose down message** Set *Logic*
- 20 **Compose recovery message** Set *Logic*
- 21 **Escalate to on-call** Slack *Service*
- 22 **Confirm outage** Code *Logic*
- 23 **Alert: went down** Slack *Service*
- 24 **Append to outage log** Google Sheets *Service*
- 25 **Alert: recovered** Slack *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 25, with 4 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Slack
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-http-endpoints-and-send-state-change-alerts)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Track inventory levels with Gmail and Slack** 25 steps · Gmail, Slack](https://millionrounds.com/workflow/track-inventory-levels-with-gmail-and-slack)
- [**Monitor Cloudflare incidents and alert with Slack and Telegram** 25 steps · calls a model · Google Sheets, Jira](https://millionrounds.com/workflow/monitor-cloudflare-incidents-and-alert-with-slack-and-telegr)
- [**Monitor Clutch categories for new agencies with BrowserAct** 25 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/monitor-clutch-categories-for-new-agencies-with-browseract)
- [**AI-Powered WhatsApp Business Assistant with Claude** 24 steps · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-whatsapp-business-assistant-with-claude)
- [**Automate multi-step onboarding with Google Sheets and Gmail** 26 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-multi-step-onboarding-with-google-sheets-and-gmail)
- [**Daily affirmations & weekly gratitude digest with Notion** 24 steps · Discord, Email](https://millionrounds.com/workflow/daily-affirmations-and-weekly-gratitude-digest-with-notion)
