How to add llms.txt to Webflow
Webflow doesn't host arbitrary root files. The standard workaround is a CMS page bound to a custom 'llms-txt' template, or a Cloudflare Worker in front of your site that rewrites the response.
Before you start
- ✓Workspace permissions to create CMS collections and templates
- ✓Site Hosting plan that supports 301 redirects
- ✓Optional: Cloudflare in front of the Webflow domain for full header control
Install in 4 steps
- 1
Create a CMS collection for AI files
Add a collection 'ai-files' with a slug field and a long-text field. Add an item with slug 'llms-txt' and your content.
- 2
Make a minimal template
On the CMS template page, delete all HTML wrappers and bind the body to the long-text field only.
- 3
Add a redirect
In Site Settings → Hosting → 301 redirects, redirect /llms.txt → /ai-files/llms-txt.
- 4
Verify
Use a curl test. If you can't strip the HTML, run a Cloudflare Worker that rewrites the response to text/plain.
Troubleshooting
Webflow CMS templates always emit some HTML chrome. Front the domain with Cloudflare and rewrite the response body and Content-Type in a Worker.
Free Webflow plans cap redirects. Upgrade or set the redirect at the Cloudflare layer instead.
Common gotchas
- • Webflow's CMS templates always emit HTML — Cloudflare in front is the most reliable fix
- • Free Webflow plans cap redirects — verify you can add one
Generate your llms.txt in 30 seconds
Use the free OptimAIze generator, then follow the steps above to deploy on Webflow.
Frequently asked questions
Does Webflow need both llms.txt and robots.txt?
Yes. robots.txt grants crawler permission; llms.txt curates which pages matter. Together they form the minimum AI-search setup on any Webflow site.
Will adding llms.txt slow down my site?
No. It's a tiny static text file fetched once and cached aggressively. Page-load impact is effectively zero.
How often should I update llms.txt?
Whenever your canonical content set changes — new docs section, new product line, new pricing page. A monthly review is a sensible cadence for most sites.
Can I see whether AI engines read my llms.txt?
Check your server logs for user agents like GPTBot, ClaudeBot, PerplexityBot, and Google-Extended hitting /llms.txt. Most sites see traffic within days of publishing.