Generate llms.txt from a website sitemap using forms and HTTP requests
Ready for 3.0Ready 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-10-19.
What this workflow does
This workflow has 9 nodes and runs when someone submits an n8n form (“llms.txt Generator”). It uses only n8n's built-in nodes.
How it runs
Trigger: When someone submits an n8n form (“llms.txt Generator”).
- 2. Set Config (Edit Fields (Set)): sets 4 fields: siteName, siteDescription, sitemapUrl…
- 3. Fetch Sitemap (HTTP Request): calls an HTTP API
- 4. Resolve Leaf Sitemaps (Code): runs custom JavaScript code
- 5. Fetch Leaf Sitemaps (HTTP Request): calls an HTTP API
- 6. Extract Page URLs (Code): runs custom JavaScript code
- 7. Fetch Page HTML (HTTP Request): calls an HTTP API
- 8. Build llms.txt File (Code): runs custom JavaScript code
- 9. Show Result Page (n8n Form): shows the next form page
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 (5)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - n8n Form
n8n-nodes-base.form
From the author
Quick overview This workflow uses an n8n Form and HTTP requests to read a website sitemap, fetch each listed page, extract the page title and meta description, and generate an llms.txt file that you can preview, copy, or download. How it works 1. Receives a…