Templates / Find broken external links in WordPress posts and email a report with Gmail

Find broken external links in WordPress posts and email a report with Gmail

Ready for 3.0

by Bincy Bhanu. S ✓ · 0 views · created 2026-10-16 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 11 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Gmail.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 6 fields: siteUrl, postsToScan, maxLinksPerRun…
  2. Get published posts (HTTP Request): calls an HTTP API (GET)
  3. Extract external links (Code): runs custom JavaScript code
  4. Check link (HTTP Request): calls an HTTP API (HEAD)
  5. Classify results (Code): runs custom JavaScript code
  6. Build report (Code): runs custom JavaScript code
  7. Send report email? (If): checks a condition and branches into true / false
  8. Email report with Gmail (Gmail): send (message)
  9. Report (not emailed) (Edit Fields (Set)): sets 5 fields: subject, checked, brokenCount…

Services it uses

Gmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick overview This workflow scans recent published WordPress posts for external links, checks each link with HTTP HEAD requests, and compiles an HTML report of broken links or links needing manual review, optionally sending the report via Gmail on a weekly…

Excerpt from Bincy Bhanu. S's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.