Quick overview
Quick overview This workflow runs weekly to scan a WordPress site’s post sitemap for broken pages, checking each URL’s HTTP status and sending a consolidated alert to Telegram when errors are found. How it works Runs weekly on a schedule trigger. Requests the WordPress sitemap index at /wp-sitemap.xml and then fetches the posts sitemap at /post-sitemap.xml. Parses the posts sitemap XML and extracts each post URL. Sends an HTTP request to each URL and captures the full response status without failing the workflow on errors. Flags URLs as broken when the HTTP status code is 400 or higher and prepares a record with the URL, status code, status message, and check timestamp. Aggregates all broken-link records into a single list and sends a formatted Telegram message to the configured chat ID with the results. Setup Set the websiteUrl value to your WordPress site base URL (for example, https://yourdomain.com). Add Telegram credentials in n8n and replace telegramChatId with the destination Telegram chat ID. Ensure your WordPress site exposes the default sitemaps at /wp-sitemap.xml and /post-sitemap.xml, or update the sitemap URLs in the HTTP requests to match your setup. An n8n automation workflow template by liweida.
liweida
web
free
Others in the same category, ranked by how often they are opened.