Built by SEO
llms.txt21 May 20266 min read

How to add llms.txt to your HubSpot website

HubSpot doesn't let you drop files into your site root the way a traditional CMS does. But there are two ways to get an llms.txt file live on your HubSpot domain — the manual route and the automated route. Here's how both work.

Paul Lovell

Paul Lovell

SEO Consultant

The manual way

If you want full control and don't mind doing some ongoing maintenance, you can create and host your llms.txt file manually and point your HubSpot domain to it using a URL redirect.

Step 1 — Create your llms.txt file

Create a plain text file called llms.txt. The format is straightforward — a title, an optional description in a blockquote, and sections listing your pages:

# Your Site Name

> A short description of what your site is about.

## Pages

- [Home](https://yoursite.com/)

- [About](https://yoursite.com/about)

- [Services](https://yoursite.com/services)

## Blog Posts

- [Your Blog Post Title](https://yoursite.com/blog/post-slug)

You'll need to list every page you want AI tools to know about. Keep it to your most important, published content — don't include thank-you pages, drafts, or pages you'd put in robots.txt.

Step 2 — Host the file somewhere accessible

Because HubSpot doesn't let you upload arbitrary files to your domain root, you need to host your llms.txt file externally. Options include:

  • A GitHub Gist (raw URL)
  • A Cloudflare Worker that returns the file contents
  • Any static hosting service like Vercel or Netlify
  • An S3 bucket or similar object storage with a public URL

Step 3 — Create a URL redirect in HubSpot

In HubSpot, go to Marketing → Website → URL Redirects and create a new redirect:

  • Original URL: /llms.txt
  • Redirect to: the URL where your file is hosted
  • Redirect type: 302 (temporary, so you can change the target later)

Once saved, visiting yoursite.com/llms.txt will redirect to your hosted file.

The problem with the manual approach

⚠️ Your llms.txt goes stale the moment you publish something new.

Every time you publish a new blog post, create a landing page, or add a new site page — your llms.txt file needs to be manually updated. Miss an update and AI tools are working from an outdated picture of your site. On an active HubSpot portal publishing multiple times a week, this becomes a real maintenance burden.

The automated way

The alternative is to use an app that generates your llms.txt file dynamically — pulling directly from your HubSpot portal every time the file is requested, so it always reflects your latest published content. No manual updates, ever.

That's exactly what our llms.txt for HubSpot app does. Here's how it works:

Step 1 — Install the app

Install llms.txt from the HubSpot Marketplace. You'll be asked to authorise access to your HubSpot portal via OAuth — this gives the app permission to read your published pages and blog posts.

Step 2 — The redirect is created automatically

For portals on Professional or Enterprise plans, the app automatically creates the /llms.txt URL redirect on your HubSpot domain — no manual setup needed. For Starter plan portals, you'll be shown a one-time setup guide to add the redirect yourself.

Step 3 — Your llms.txt stays current automatically

Every time an AI tool requests yoursite.com/llms.txt, the app fetches your latest published pages and blog posts from HubSpot in real time and returns a fresh, up-to-date file. Publish a new blog post at 9am — it's in your llms.txt by 9:01am.

You can also customise what appears in the file — add a site description, include extra links, exclude specific URLs, and set different configurations per domain — all from the app home page inside HubSpot.

Manual vs automated — at a glance

ManualAutomated (our app)
Setup time30–60 mins~5 mins
Updates when you publish❌ Manual only✅ Automatic
Always up to date❌ Only if you remember✅ Always
Multi-domain support❌ One file per setup✅ Built in
Per-domain customisation
CostFree$10/month

Which should you choose?

If you have a small site that rarely changes and you're comfortable with a bit of technical setup, the manual approach works. But if you're publishing regularly on HubSpot — blog posts, landing pages, new site pages — the manual approach will quickly become a chore and your llms.txt will drift out of date.

The automated approach means you set it up once and never think about it again. Your llms.txt is always current, always complete, and you can focus on publishing rather than maintaining a text file.

Add llms.txt to HubSpot automatically

Install once and your llms.txt stays up to date with every publish — no manual work, no maintenance, no stale content.

Get started — $10/month →