Monitor API rate limits and alert with Slack, Gmail and Google Sheets
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs on a schedule (every minute). Along the way it connects Slack, Gmail and Google Sheets.
How it runs
Trigger: On a schedule (every minute).
- Fetch Rate Limit Status (HTTP Request): calls an HTTP API
- Parse Usage Data (Code): runs custom JavaScript code
- Score Severity (Edit Fields (Set)): sets 4 fields: severity, severityEmoji, isBreach…
- Threshold Breached (If): checks a condition and branches into true / false
- Is Critical (If): checks a condition and branches into true / false
- Slack: uses Slack
- Slack: uses Slack
- Email On-Call (Gmail): uses Gmail
- Log to Sheets (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow runs on a recurring schedule to check an API’s rate-limit status via HTTP, calculates usage and severity, sends Slack and Gmail alerts when thresholds are breached, and logs each check to Google Sheets for tracking. How it works…