Guide

How to add llms.txt to a Shopify store

What llms.txt is, what to put in it, and the common ways to serve it from a Shopify store so ChatGPT, Perplexity and Gemini can understand your brand.

llms.txt is a plain text file at the root of your site that tells AI assistants what your brand sells and where the key pages are. It is a proposed convention, not a guarantee of anything, but it costs little and helps assistants find the right pages.

What to put in it

  • A one-line summary of the brand and what it sells
  • Links to your main collections and best-selling products, each with a one-line description
  • Links to your shipping, returns and contact pages
  • Your location and contact details

Serving it from Shopify

Shopify does not let you upload a file to the root of your store. Common workarounds are to create a page that holds the text, then add a URL redirect from /llms.txt to that page, or to use an app that serves the file. Check that /llms.txt opens in a browser and returns plain text.

Also check

  • robots.txt: make sure it does not block OAI-SearchBot, ChatGPT-User or PerplexityBot. Shopify lets you edit it through the robots.txt.liquid template.
  • Sitemap: Shopify creates /sitemap.xml for you.
  • Product data: price, availability, brand and description as structured data on each product page.

No one can promise an assistant will recommend you. These steps make sure your store can be read.

Run the free AI readiness checker