Skip to page contentGo to the request box

How to add an llms.txt file to a Shopify store

Shopify doesn't let you put a file at the root of your store, so you add an llms.txt file by uploading it to Shopify's Files and redirecting yourstore.com/llms.txt to it, or by serving it from a blank theme template, and an AI marketer like Kite can write the file from your collections, policies, and pages, give you the exact steps, and check that the live file works.

Part of Create an llms.txt file for your website

By Devon WellsDevon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself. and KiteUpdated

On this page

How do I add an llms.txt file to Shopify?

You add an llms.txt file to Shopify by putting the file somewhere Shopify can serve it and then redirecting yourstore.com/llms.txt to that place, because Shopify has no setting for adding a file to the root of your domain. llms.txt is a short Markdown file that tells AI systems what your business is and which pages are worth reading. Jeremy Howard of Answer.AI proposed the format in September 2024, and the specification lives at llmstxt.org. AI tools look for it at one fixed address, /llms.txt, so the file only helps if it answers there.

On most platforms you'd drop the file into your site's top folder. Shopify runs the storefront for you, and the only root-level text file it lets you edit is robots.txt, through a theme template. So store owners use one of three routes:

  1. Upload the file and redirect to it. Write your file and save it as llms.txt. In your Shopify admin, open Content, then Files, upload it, and copy the file's link. Then search for "URL redirects" in the admin, create a redirect from /llms.txt, and point it at the link you copied. This takes about five minutes and needs no code. The file itself lives on Shopify's file servers at a cdn.shopify.com address, so an AI tool that asks for yourstore.com/llms.txt gets sent there.
  2. Serve it from a theme template. In your theme's code editor, add a new page template, start it with {% layout none %} so Shopify leaves out your header, footer, and styling, and paste the text of your file below that line. Create a page that uses the template, then redirect /llms.txt to that page's address, such as /pages/llms. The file stays on your own domain, but every later change means editing theme code, and a theme switch can leave the template behind.
  3. Use an app. Several apps in the Shopify App Store build an llms.txt file from your products and collections and serve it for you. They're quick, but most list whatever they find, so you get a long catalog dump rather than a guide.

Whichever route you choose, check the result yourself. Open yourstore.com/llms.txt in a private browser window. You should land on plain text that starts with your store's name, not on your store's 404 page or a styled web page.

What should a Shopify store's llms.txt file say?

A Shopify store's llms.txt file should tell an AI system what you sell, who it's for, and which pages to trust for the questions shoppers ask before they buy. The format has four parts, in this order:

  • A heading with your store's name.
  • A one-to-three-sentence summary in a quote block, saying what you sell and where you ship.
  • Optional notes with anything an AI system must know to describe you correctly, such as "We only sell online" or "We don't ship outside the US."
  • Sections of links, each with a plain heading and a short description after every link.

For a store, the sections that earn their place are usually your collections, a handful of your most important products, your policies, and the pages that answer buying questions, such as your FAQ, size guide, and contact page. Shopify gives every store standard policy addresses, such as /policies/shipping-policy and /policies/refund-policy, and those are often the pages an AI tool most needs when someone asks whether you ship to them or take returns.

A store file looks like this in outline:

# Your store name

> One to three sentences on what you sell, who it's for, and where you ship.

## Collections

- [Collection name](https://yourstore.com/collections/collection-handle): What this collection contains and who it suits.

## Policies

- [Shipping policy](https://yourstore.com/policies/shipping-policy): Where you ship, how long delivery takes, and what it costs.
- [Refund policy](https://yourstore.com/policies/refund-policy): How long customers have to return an item and how refunds are paid.

## Help

- [FAQ](https://yourstore.com/pages/faq): Answers to the questions shoppers ask most before buying.

## Optional

- [Blog](https://yourstore.com/blogs/news): Buying guides and store news.

Three choices separate a useful store file from a generated one. First, it links collections rather than every product, because a catalog of hundreds of products buries the pages that matter. Second, it leaves out prices and stock, because those change and the product page always has the current figure. Third, it keeps out the addresses that help nobody, such as the cart, the account pages, search results, filtered collection pages, and links to a single product variant.

Writing the file takes an afternoon, and placing it takes a few minutes. Keeping it true is the part that slips, because every new collection, renamed page, or retired product can leave the file sending AI tools to the wrong place. Kite does that work for you. It writes the file, tells you exactly how to put it in place on your store, checks the live result, and updates it as your store changes.

How to get started

Start by asking Kite in plain words, in the Kite web app or in Slack:

"Write an llms.txt file for our Shopify store and tell me how to add it."
Send this to Kite

Or start from a file you already have:

"Our Shopify llms.txt was made by an app and it's just a list of products. Rewrite it properly."

Kite is an AI marketer. It researches your business, builds a growth strategy, and ships the work that brings you new customers. By the time you ask, it already knows what you sell, who buys it, where you ship, and how your store is organized from its research on your business, so it can draft the file without a long brief.

You don't have to connect anything for Kite to write the file, because it can read your store's public pages and sitemap. Connecting your Shopify store through OAuth, which is a sign-in screen where you approve access, lets Kite read your store pages, blog posts, collections, and products directly, and rewrite a thin page the file depends on once you approve it. Kite can't upload files to your store, create redirects, or edit your theme's code, so you put the file in place yourself, using Kite's steps.

How Kite adds an llms.txt file to a Shopify store

  1. What does your store serve at /llms.txt today?

    Kite starts by requesting yourstore.com/llms.txt the way an AI tool would and reading what comes back, because the right next step depends on it. Most stores return their 404 page, which means there's nothing there yet. Some return a file an app created, and Kite reads it to see what it lists and whether its links still open. Kite checks both the address with "www" and the one without, so a redirect that works on one doesn't hide a gap on the other.

    It also reads your store's robots.txt. Shopify's default rules leave AI crawlers free to read your storefront, but a store that has edited its robots.txt template sometimes blocks them, and a perfect llms.txt file can't help a tool that isn't allowed to read your pages. If Kite finds a block like that, it tells you which crawlers are affected and what to change.

  2. What is in your store, and what matters most?

    Kite builds the file from the pages your store actually has, so every link points to something real. It reads your store's sitemap, which Shopify keeps for every store and which lists your products, collections, pages, and blog posts. With your Shopify store connected, it also reads your store pages and blog articles, finds your collections by name, and searches your products.

    Then it decides what deserves a place. Kite favors your main collections, the policy pages shoppers check before buying, and the pages that answer buying questions, such as an FAQ, a size guide, care instructions, or a wholesale page. For products, it picks the few that define your store, such as your best sellers or the product people search for by name, rather than listing the whole catalog. With your store connected, Kite can read your recent orders to see which products actually sell, so the choice rests on your sales rather than a guess.

    Kite leaves out the addresses that would only confuse an AI tool:

    • Your cart, checkout, and customer account pages.
    • Search results and collection pages filtered by tag.
    • Links to a single product variant, such as one size or color.
    • Your password page and any landing page made for a promotion that has ended.
    • Pages you've hidden from search, and duplicates of the same collection.
  3. What does each line of the file say?

    Kite writes every description to say what the page is the best source for, because that line is what an AI system reads to decide whether to open the page. "Shipping policy" tells a model nothing it couldn't guess. "Where we ship, how long delivery takes, and when shipping is free" tells it this is the page to trust when someone asks. Kite uses the words your customers use, which it knows from its research on your business and from what people search for in your category.

    The summary at the top gets the same care. Kite writes one to three sentences on what you sell and who it's for, and adds the facts an AI system would otherwise guess at, such as whether you have a physical shop, which countries you ship to, or a product you deliberately don't carry. It only includes facts your store or your business's own information supports. If your store shares a name with another business, Kite says so in the notes so AI tools don't mix the two up.

    Kite also adds a short section of guidance for AI agents. It tells them to check the product page for current prices and stock, where to send someone asking about wholesale or custom orders, and which page answers questions about returns.

  4. Which route should your store use?

    Kite recommends a route based on how your store is run, then gives you the exact steps for that route. For most stores, it recommends uploading the file to Files and adding a redirect, because anyone on your team can do it in a few minutes and replace the file later without touching code. When you'd rather keep the file on your own domain and someone on your team is comfortable in the theme code editor, it gives you the template route instead, with the template's full contents ready to paste.

    If an app already serves a file for your store, Kite tells you whether to keep the app and improve what it lists, or turn the app off and replace its file, depending on whether the app lets you edit the text. Kite hands you the finished file in the conversation, along with the address to redirect from and where to find each setting in your Shopify admin.

  5. Is the live file working?

    Once you've put the file in place, Kite checks the live address to confirm that AI tools get the file, not a web page. It requests yourstore.com/llms.txt, follows the redirect, and confirms that what comes back is plain text that starts with your store's name. A theme page with your header and footer, a 404 page, or a redirect that loops all count as failures, and Kite tells you which one it found and how to fix it.

    Then Kite opens every link in the file and confirms each one reaches a real page on your store. It also runs its readiness scan, which tests how well AI agents can find and use your site across 24 checks. The llms.txt checks look at whether the file is there, whether it follows the format, and whether its links open.

  6. Keeping the file current

    Kite keeps the file in step with your store by checking it again on a schedule you choose, such as the first Monday of every month. Each check compares the file with your store's current collections, pages, and blog posts. When a collection is new, a page has moved, or a link no longer opens, Kite writes the updated file, tells you exactly what changed, and reminds you how to swap it in. If you uploaded the file to Files and the new version gets a different link, Kite tells you to point the redirect at the new one.

    Sometimes the file shows that a page is missing or too thin to be worth linking, such as a shipping page that never says where you ship. With your store connected, Kite can rewrite that page or create an FAQ page in Shopify, and publish it once you approve it, so the file has something worth pointing to.

  7. What Kite reports back

    When the work is done, Kite posts a summary in the conversation where you asked. It includes the finished file, the route it recommended and the steps for it, and the results of its checks on the live address. It lists the pages it included and why, the pages it left out and why, and any problem it found along the way, such as a robots.txt rule that blocks an AI crawler or a policy page that's empty.

What the finished work contains

When Kite finishes, your store answers at /llms.txt with a short guide that describes your business accurately and points AI tools to the pages that answer shoppers' questions.

From KiteAdd an llms.txt file to a Shopify store.Ready for your yes
  • The summary One to three sentences on what you sell, who it's for, and where you ship, plus any fact an AI tool would otherwise guess.
  • Collections and key products Your main collections and the few products that define your store, each with a line on what it contains.
  • Policies and help pages Your shipping and refund policies, FAQ, size guide, and contact page, each described by the question it answers.
  • Agent guidance A short section telling AI agents to check product pages for current prices and stock, and where to send wholesale or custom requests.
  • The setup steps The exact Shopify steps for the route Kite recommended, with the file and the redirect address ready to use.
  • The check results Confirmation that the live address returns the file as plain text and that every link in it opens.
  • Ongoing updates An updated file and a note on what changed whenever a scheduled check finds that your store's collections, pages, or blog posts have changed.

Common questions

Does the redirect stop AI tools from reading the file?

No. Most AI tools and agents follow a redirect the same way a browser does, so a request for yourstore.com/llms.txt still ends at your file. Kite checks this directly when it tests your live address. If you'd rather the file never leave your own domain, the theme template route keeps it there.

Should my llms.txt list every product?

No, not for most stores. A file with hundreds of products reads like a sitemap and buries the pages an AI tool needs most. List your collections, a few products that define your store, and your policy and help pages. If your catalog changes often, linking collections also keeps the file accurate for longer, because a collection page stays put while individual products come and go.

What's the difference between llms.txt and Poppy?

An llms.txt file tells AI systems what your store is about and which pages to read. A Poppy file, published at /.well-known/poppy.json, tells visiting AI agents who you are and what they can do on your site. How to add Poppy to your website explains where that file goes.

About the author

Devon Wells leads product marketing at Kite, the AI marketer. He spent a decade marketing industrial AI, from self-driving trucks to computer vision, but now Kite handles most of the work itself.

Source /how-to/how-to-add-an-llms-txt-file-to-a-shopify-store.md

You decide what matters. Kite does the work.

Your privacy choices

We use necessary cookies to keep the site working, plus optional cookies for analytics and marketing.

You can choose what to allow. You can read our Cookie Policy.