Extract sitemap URLs in bulk via chat and export them to a CSV download link
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when a chat message arrives. It uses only n8n's built-in nodes. It also calls uguu.se over HTTP.
How it runs
Trigger: When a chat message arrives.
- Parse & Validate URLs (Code): runs custom JavaScript code
- Check for Validation Errors (If): checks a condition and branches into true / false
- Alert User: Invalid URLs (Chat): uses Chat
- Cache Validated URLs (Code): runs custom JavaScript code
- Fetch XML Data (HTTP Request): calls an HTTP API
- Format Successful Data (Code): runs custom JavaScript code
- Process Each Sitemap (Loop Over Items (Split in Batches)): loops over the items in batches
- Isolate Failed URLs (Split Out): splits a list into separate items
- Aggregate: combines items into one
- Parse XML Data (XML): converts between XML and JSON
…plus 13 more steps. See the full node list below.
HTTP calls to: uguu.se
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 (12)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Chat
@n8n/n8n-nodes-langchain.chat - Aggregate
n8n-nodes-base.aggregate - Wait
n8n-nodes-base.wait - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - XML
n8n-nodes-base.xml - Edit Fields (Set)
n8n-nodes-base.set - Convert to File
n8n-nodes-base.convertToFile
From the author
Extracting URLs from multiple XML sitemaps manually is tedious, and combining them into a single usable file is time-consuming. This workflow solves this by acting as an automated bulk extractor. You simply paste multiple XML sitemap URLs into the chat, and…