Welcome to FlowZap, the App to diagram with Speed, Clarity and Control.

API health monitoring (Cron → HTTP Request → IF → Slack + log)

An n8n cron-based workflow that pings your API healthcheck endpoint every 15 minutes and evaluates the HTTP response status code. Failed checks trigger an immediate Slack failure alert, while successful responses post a recovery notice. Every check — pass or fail — is appended to a Google Sheets uptime log for SLA monitoring and incident trend analysis.

Full FlowZap Code

schedule { # Schedule
n1: rectangle label:"Cron - Every 15 minutes" system:"n8n"
n2: rectangle label:"HTTP Request - Healthcheck Endpoint" system:"API"
n1.handle(right) -> n2.handle(left) [label="Ping"]
}

decision { # Decision
n3: diamond label:"IF: Response OK?" system:"n8n"
schedule.n2.handle(right) -> decision.n3.handle(left) [label="Status code"]
}

notify { # Notify
n4: rectangle label:"Slack - Post Failure Alert" system:"Slack"
n5: rectangle label:"Slack - Post Recovery Notice" system:"Slack"
decision.n3.handle(bottom) -> notify.n4.handle(top) [label="No → Alert"]
decision.n3.handle(right) -> notify.n5.handle(left) [label="Yes → OK"]
}

audit { # Audit
n6: rectangle label:"Google Sheets - Append Row (Uptime log)" system:"Google Sheets"
notify.n4.handle(bottom) -> audit.n6.handle(top) [label="Log incident"]
notify.n5.handle(bottom) -> audit.n6.handle(top) [label="Log OK"]
}

Visualize your current n8n JSON with our n8n Visualizer

Related templates

Back to all examples