Monitor Have I Been Pwned breaches with Google Sheets, Gmail, and Slack
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls haveibeenpwned.com and slack.com over HTTP.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).
- Set Workflow Variables (Edit Fields (Set)): sets 10 fields: sheetId, sheetTabName, alertRecipient…
- Check for Header Row (HTTP Request): calls an HTTP API
- Header Row Missing? (If): checks a condition and branches into true / false
- Create Header Row (HTTP Request): calls an HTTP API (PUT)
- Fetch Latest Breach from Have I Been Pwned API (HTTP Request): calls haveibeenpwned.com
- Read Breach History from Google Sheet (Google Sheets): uses Google Sheets
- Check if Breach is New or Updated (Code): runs custom JavaScript code
- Score Breach Severity (Code): runs custom JavaScript code
- Save Scored Breach to Google Sheet (Google Sheets): append or update
- Above Alert Threshold? (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: haveibeenpwned.com, slack.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview Checks Have I Been Pwned daily for new breaches, scores each one against your own risk criteria and watchlist, logs every result to Google Sheets, and sends Gmail and Slack alerts only when a breach clears your configured threshold. How it…