How to Add llms.txt to a Shopify Store and Check Whether ChatGPT or Perplexity Mention You
When someone asks ChatGPT, Perplexity or Gemini "where can I buy hand-thrown ceramic mugs that ship to Spain?", the assistant can only describe shops whose facts it can find and read. If it can't find yours, it either leaves you out or, worse, guesses: wrong shipping countries, invented return policies, products you discontinued.
An llms.txt file is one practical step: a short, plain-text summary of your shop at a predictable address. This guide shows how to write one, how to get it onto a Shopify store, and how to measure — honestly — whether assistants mention you before and after.
A caveat up front: llms.txt is a proposed convention (see llmstxt.org), not an official standard that every AI company has committed to read. Nothing you publish can guarantee that an assistant names you. Treat it as making your facts easy to read, alongside a clear site, and measure the result.
What goes in an llms.txt file
The format is Markdown with a fixed order:
- An H1 with your shop's name.
- A blockquote with a one- or two-sentence summary.
- Optional plain paragraphs with key facts.
- H2 sections containing lists of links, each with a short note.
Here is an example for a fictional shop:
# Tidewater Ceramics
> Small-batch stoneware mugs and plates, handmade in Valencia, Spain.
> We ship to the EU and the UK. We do not ship to the US.
- Delivery: 2–4 working days in Spain, 4–8 days elsewhere in the EU.
- Returns: 30 days, unused items, buyer pays return postage.
- We do not offer custom orders or wholesale.
## Products
- [Mugs](https://tidewater.example/collections/mugs): 350 ml stoneware, dishwasher safe
- [Plates](https://tidewater.example/collections/plates): 21 cm and 27 cm
## Policies
- [Shipping](https://tidewater.example/policies/shipping-policy)
- [Refunds](https://tidewater.example/policies/refund-policy)
Three rules make the file useful rather than risky:
- Only state facts that already appear on your live site. If the file says "ships to the UK" and the shipping page doesn't, you've created a contradiction for an assistant to resolve.
- Say what you don't do. "We do not ship to the US" prevents a confident wrong answer.
- Keep it short and current. Update it when prices, markets or delivery times change.
How to publish llms.txt on Shopify
Shopify doesn't let you upload arbitrary files to the root of your domain, so there are three practical options. Menu names in the Shopify admin change from time to time, so look for the equivalent if a label differs.
Option 1: Upload the file and redirect /llms.txt to it
- Save your file as
llms.txt(plain text, UTF-8). - In the Shopify admin, open Content → Files and upload it. Copy the file URL it gives you.
- Open Online Store → Navigation → URL redirects and create a redirect from
/llms.txtto the file URL.
This is quick and needs no theme code. The downside is that the file is reached through a redirect to another domain, and not every crawler follows redirects the same way. When you update the file, upload the new version and update the redirect target if the URL changes.
Option 2: Serve it from your theme
Developers can serve a text template from the theme so the content lives on your own domain and can pull live data such as product titles and collection links with Liquid. The AI Search Visibility Kit offers this as an alternative to publishing a static file: it ships a Shopify Liquid theme file, templates/agents.md.liquid. Always back up the theme before editing code.
Option 3: Use an app
Several Shopify apps generate an llms.txt file. If you go this route, read the output: generated files often list every product but leave out the facts that matter most — markets, delivery times, and what you don't offer.
Check that it works
Whichever option you choose, test from a terminal:
curl -sIL https://yourstore.com/llms.txt
You want to end on a 200 status with a text/plain content type, and the body should be your file, not your theme's 404 page.
Don't block AI crawlers by accident
An llms.txt file doesn't help if the assistant's crawler is blocked. Shopify generates robots.txt for you and lets you customise it with a robots.txt.liquid theme template. Open https://yourstore.com/robots.txt and check that there's no Disallow: / under user agents such as GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot or Google-Extended. Also check any firewall or bot-protection app: some block these crawlers by default.
How to check if ChatGPT or Perplexity mention you
You can't fix what you don't measure, and one search proves nothing — answers vary by session, location and model. Use a small, repeatable test.
1. Write 8 prompts a real customer might type
Mix generic and specific prompts. Don't put your shop name in most of them; you want to know whether you're found, not whether the assistant can repeat a name you gave it.
| # | Prompt type | Example |
|---|---|---|
| 1 | Category + market | "Where can I buy handmade stoneware mugs in Spain?" |
| 2 | Category + constraint | "Dishwasher-safe handmade mugs that ship to Germany" |
| 3 | Comparison | "Best small ceramic shops in Valencia" |
| 4 | Gift | "Gift ideas: handmade mug under €40, EU shipping" |
| 5 | Brand facts | "Does Tidewater Ceramics ship to the UK?" |
| 6 | Brand policy | "What is Tidewater Ceramics' return policy?" |
| 7 | Negative fact | "Does Tidewater Ceramics ship to the US?" |
| 8 | Alternatives | "Shops like Tidewater Ceramics" |
2. Run each prompt the same way every time
Use a fresh chat for each prompt, note whether you were logged in, and note whether web search was on. In Perplexity and ChatGPT search, look at the cited sources: which of your URLs (if any) were used?
3. Score the answers
A simple four-level score keeps results comparable:
| Score | Meaning |
|---|---|
| 0 | Not mentioned |
| 1 | Mentioned, no details |
| 2 | Mentioned with correct facts |
| −1 | Mentioned with wrong facts (shipping, prices, policies) |
A −1 is the most important result. It tells you which fact is missing or contradicted on your site.
4. Log, change, re-test
Record date, assistant, prompt, score and cited URL in a spreadsheet. That's your baseline. Then publish llms.txt, fix contradictions, wait a few weeks, and run the same prompts again. Compare totals, not single answers.
A realistic checklist
- llms.txt published at
/llms.txt, returns 200, matches the live site. - Shipping, returns and contact pages are plain HTML text, not only images.
- Product pages state materials, sizes, prices and delivery clearly.
- robots.txt doesn't block AI crawlers you want to read your shop.
- A baseline of 8 prompts across at least two assistants is logged.
Tools that help
The free 10-Point AI Visibility Checklist gives you a printable checklist with a 0–100 readiness score and a fill-in llms.txt starter — a first pass takes about twenty minutes.
For the full audit, the AI Search Visibility Kit adds a 50-point auto-scored checklist, llms.txt and agents.md templates plus the Shopify Liquid version, a robots.txt snippet, 36 test prompts with a logging spreadsheet and scoring method, and a before/after report template. Like this guide, it does not promise that any assistant will name you.
Frequently asked questions
Does Shopify support llms.txt?
Shopify doesn't let you upload a file directly to your domain root. You can upload the file under Content → Files and redirect /llms.txt to it, serve it from a theme template, or use an app.
Will llms.txt make ChatGPT recommend my store?
No file can guarantee that. llms.txt makes accurate facts easy to read. Assistants still decide what to mention, so measure before and after with the same prompts.
What should I not put in llms.txt?
Anything that doesn't already appear on your live site, discount codes that will expire, and claims you can't back up, such as "best in Spain".
How do I check if Perplexity mentions my shop?
Run a fixed set of customer-style prompts in fresh chats, look at the cited sources, and score each answer: not mentioned, mentioned, mentioned with correct facts, or mentioned with wrong facts.
How often should I re-test?
Every few weeks, or after a significant change to your site, using the same prompts so results are comparable.