How to add llms.txt to HubSpot CMS
HubSpot supports custom file uploads via the Design Tools file manager. Upload llms.txt and map the URL with a 301 redirect.
Before you start
- ✓CMS Hub Starter or above
- ✓Design Tools file manager access
- ✓An llms.txt body ready to upload
Install in 3 steps
- 1
Upload via File Manager
Marketing → Files and Templates → Files. Upload llms.txt and copy the CDN URL.
- 2
Add a URL redirect
Settings → Website → URL Redirects: add /llms.txt redirecting to the CDN file URL.
- 3
Verify
Curl your domain's /llms.txt. Confirm the final response is text/plain.
Troubleshooting
Purge the file in File Manager after each edit. CDN propagation is usually under 5 minutes.
Upgrade to CMS Hub Starter — Free Hub doesn't permit custom file hosting.
Common gotchas
- • HubSpot CDN returns the file with caching headers — purge after edits
- • Free CMS Hub plans limit file uploads — check quota
Generate your llms.txt in 30 seconds
Use the free OptimAIze generator, then follow the steps above to deploy on HubSpot CMS.
Frequently asked questions
Does HubSpot CMS 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 HubSpot CMS 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.