Templates / Generate llms.txt from a website sitemap using forms and HTTP requests

Generate llms.txt from a website sitemap using forms and HTTP requests

Ready for 3.0

by isaWOW ✓ · 7 views · created 2026-07-10 · 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-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”).

  1. 2. Set Config (Edit Fields (Set)): sets 4 fields: siteName, siteDescription, sitemapUrl…
  2. 3. Fetch Sitemap (HTTP Request): calls an HTTP API
  3. 4. Resolve Leaf Sitemaps (Code): runs custom JavaScript code
  4. 5. Fetch Leaf Sitemaps (HTTP Request): calls an HTTP API
  5. 6. Extract Page URLs (Code): runs custom JavaScript code
  6. 7. Fetch Page HTML (HTTP Request): calls an HTTP API
  7. 8. Build llms.txt File (Code): runs custom JavaScript code
  8. 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)

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…

Excerpt from isaWOW'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.