Block 1 - When clicking ‘Execute workflow’
- Type / Role
- n8n-nodes-base.manualTrigger - manualTrigger
- Config choices
- Version 1
This workflow automatically generates an file (following the llmstxt.org specification) for any given website. It uses ScrapegraphAI to crawl and scrape pages, an OpenAI chat model to process conte...
n8n-nodes-base.manualtrigger, n8n-nodes-base.wait, n8n-nodes-scrapegraphai.scrapegraphai, n8n-nodes-scrapegraphai.scrapegraphaitool, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide Boizza.
Original n8n.io sourceThis workflow automatically generates an llms.txt file (following the llmstxt.org specification) for any given website. It uses ScrapegraphAI to crawl and scrape pages, an OpenAI chat model to process content, and finally uploads the generated file via FTP.
llms.txt GenerationThe workflow fully automates the creation of a compliant llms.txt file, eliminating the need for manual documentation and reducing maintenance time.
Using OpenAI and ScrapeGraphAI, the system intelligently analyzes:
This produces a high-quality output specifically optimized for AI systems and LLM indexing.
The crawler automatically extracts all internal links from the website, making the workflow scalable for:
Pages are automatically grouped into meaningful sections such as:
This improves readability and machine interpretability.
The workflow preserves the original language of the website content, ensuring consistency and localization for international projects.
After generation, the workflow converts the output into a .txt file and uploads it directly to an FTP server or CDN, enabling instant deployment without manual intervention.
The entire process — from crawling to publishing — is automated inside n8n, significantly reducing operational effort for SEO teams, developers, and AI optimization workflows.
The generated llms.txt file helps:
The workflow is built with reusable components:
This makes it easy to extend, customize, or integrate into larger automation systems.
The process begins when the workflow is manually triggered. It then:
Scraper tool (via ScrapegraphAI) to scrape each URL’s content.llms.txt) following the official spec.The AI agent is explicitly forbidden from inventing content – it must call the Scraper tool for every URL before describing it. The output is pure Markdown, starting with #.
To use this workflow in n8n, follow these steps:
gpt-5.4-mini – note: this may be a custom/typo; usual models are gpt-4o-mini or gpt-4).Go to Credentials in n8n and add:
ScrapegraphAI API
Name: ScrapegraphAI account
API Key: your ScrapegraphAI API key
OpenAI API
Name: OpenAi account (Eure)
API Key: your OpenAI API key
FTP
Name: FTP BunnyCDN
Host, Port, Username, Password (or SSH key) for your FTP server
In the Set domain node, change the your_domain to your target domain (e.g., example.com).
Do not include https:// – only the domain name.
In the Wait node, change the amount (default 20) to a higher value if the target site is large or slow to crawl.
In the Upload to FTP node, update the path field.
Currently it is:
=/YOUR_PATH/{{$binary.data.fileName}}
Change YOUR_PATH to the actual remote directory (e.g., /public_html/).
The file will be saved as llms.txt.
The prompt inside the LLMS.txt Agent node can be adapted for:
Check your FTP server for the generated llms.txt.
Test it by opening in a text editor – it should be pure Markdown starting with # Site name.
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Contact me for consulting and support or add me on Linkedin.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Generate & Upload llms.txt for websites GEO optimization 🕸️🌐 with ScrapegraphAI |
|---|---|
| Complexity | advanced |
| Nodes | 18 |
| Categories | Document Extraction, AI Summarization |
| Author | Davide Boizza |
| Published | 07 May 2026 |
Use the JSON export at /data/workflows/15525/15525.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This workflow automatically generates an file (following the llmstxt.org specification) for any given website. It uses ScrapegraphAI to crawl and scrape pages, an OpenAI chat model to process conte...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.