Learning Center
How to Add llms.txt to Squarespace
Squarespace doesn't let you upload raw text files to your site root — but there are practical workarounds to get your AI summary file accessible to ChatGPT, Perplexity, and other AI assistants.
The Challenge
Why Squarespace Makes This Tricky
Squarespace is a closed platform — you can't access the server or upload files to arbitrary paths. There's no file manager like WordPress has. But AI doesn't strictly require the file to be at /llms.txt — it just needs to find your business summary somewhere accessible.
Your Options on Squarespace
- Option 1: Create a hidden page with your llms.txt content (easiest)
- Option 2: Use a code block on a blank page to output plain text
- Option 3: Host the file externally and link to it from your site
Option 1 (Recommended)
Create a Hidden Page With Your Content
The simplest approach: create a page on your Squarespace site with your llms.txt content, set the URL slug to "llms-txt", and hide it from your navigation. AI bots can still find and read it.
Create a New Blank Page
In your Squarespace dashboard, go to Pages → click the + button → choose "Blank Page." Don't use a template with lots of design elements — keep it minimal.
Set the URL Slug
Click the gear icon on your new page → go to the "General" tab → change the URL slug to "llms-txt". This makes the page accessible at yoursite.com/llms-txt.
Add Your Content
Add a single Text Block to the page and paste your entire llms.txt content. Use a plain font, no colors or styling. Just the text.
Hide From Navigation
Drag the page into the "Not Linked" section of your page list. This removes it from your menu but keeps it publicly accessible via direct URL — exactly what AI bots need.
Disable the Page Title & Header
In page settings, uncheck "Enable Page Title" so the page shows just your content without a big heading. This keeps it clean for AI to read.
Option 2
Use a Code Block for Cleaner Output
If you want the content to look more like a raw text file (monospace font, no styling), you can use Squarespace's Code Block instead of a regular text block.
Code Block Method
Add a Code Block to your page and wrap your content in a pre tag:
<pre style="font-family: monospace;
white-space: pre-wrap; font-size: 14px;
line-height: 1.6; color: #333;
background: #fff; padding: 2rem;">
# Your Business Name
> Your one-line description here.
Your overview paragraph goes here.
## Services
- Service 1: Description
- Service 2: Description
## Pricing
- Starting at $X/month
## Contact
- Phone: (555) 123-4567
- Website: https://yoursite.com
</pre>Option 3
Host Externally & Link to It
If you want a true .txt file, you can host it elsewhere and reference it from your Squarespace site.
External Hosting Options
- GitHub Pages: Create a free GitHub repository, add your llms.txt file, and enable GitHub Pages. You get a URL like yourusername.github.io/repo/llms.txt
- Cloudflare Pages: Similar to GitHub Pages but with a custom domain option
- Any static host: Netlify, Vercel, or even an S3 bucket can serve a single text file
- Then add a link to this external file from your Squarespace site's footer or a hidden page
Important Notes for Squarespace
- Don't password-protect the page — AI bots need public access
- Don't enable the "SEO Hide" option (noindex) — you want bots to find this
- The /llms-txt URL (with a dash) works fine — AI will find it through your sitemap
- Add a link to this page in your site's footer or in your sitemap for discoverability
- Test by visiting yoursite.com/llms-txt in an incognito window