preferly

Blog

llms.txt example for a small business, with a template to copy

By the Preferly team · Published

Short answer: an llms.txt file is a short Markdown file at yourdomain.com/llms.txt that tells AI tools who you are and which pages to read. For a small business, a good one is 15 to 30 lines: your name, a one-line summary, a few key facts, and links to your services, prices, service area, booking and contact pages. Below is a complete example for a local business, a template to copy, and an honest note on what it will and won't do for you.

Why owners ask for an example

Maybe your web designer mentioned it, or an SEO tool flagged "llms.txt missing". You look up the llms.txt proposal and find examples for software documentation, full of API references. Not much help if you fix leaky pipes or run a bakery. So here's one written for a local business. (For the background on what the file is, see what is llms.txt?)

The format in 60 seconds

The proposal at llmstxt.org (version 2.1) sets out a simple order:

  1. An H1 with your name (# Your Business). This is the only required part.
  2. A blockquote summary (> ...), with the key facts someone needs to understand the rest.
  3. Optional detail: short paragraphs or lists. Lower-level headings (###) are fine here; H1 and H2 are reserved.
  4. Sections under H2 headings (## Services), each a list of links in the form - [Page name](URL): short note.

That's it. It's plain Markdown, readable by people and parseable by software.

A complete example: a local plumbing company

This is a fictional business. Swap in your own facts.

# Harbor Plumbing & Drain

> Family-run plumbing company serving Northgate and the east side since 2009.
> Licensed and insured. Emergency service 24/7; office hours Mon-Fri 7am-6pm.

Base URL: https://example.com/

Key facts:

- Service area: Northgate, Lakeview, Eastport and Millbrook
- Services: leak repair, drain cleaning, water heaters, repiping, sewer camera inspection
- Pricing: flat-rate quotes before work starts; no charge for estimates
- Booking: online at /book or by phone at (555) 010-0199
- Not offered: commercial new construction, septic systems

## Services

- [Water heater repair and replacement](services/water-heaters): tank and tankless, same-day in most cases
- [Drain cleaning](services/drain-cleaning): kitchen, bathroom and main lines
- [Leak detection and repair](services/leaks): including slab leaks
- [Emergency plumbing](services/emergency): 24/7, what counts as an emergency

## Prices and booking

- [Pricing](pricing): flat-rate price ranges for common jobs
- [Book a visit](book): online booking, next available times
- [Service area](service-area): towns and zip codes we cover

## About

- [About us](about): license numbers, insurance, team
- [Reviews](reviews): what customers say, with links to our review profiles
- [Contact](contact): phone, email, office address and hours

What makes it work:

  • The summary carries the facts AI gets wrong most often: where you work, when you're open and how to reach you.
  • "Not offered" is there on purpose. It's the kind of detail that stops an AI tool from sending you the wrong jobs.
  • Every link has a note. The proposal recommends "brief, informative descriptions" so a reader knows which page to open.
  • The Base URL: line lets the links stay short. Without it, links are read relative to where the llms.txt file sits, so full URLs work too.

A shorter version for a restaurant

# Rosa's Kitchen

> Neighborhood Mexican restaurant in downtown Northgate. Dine-in, takeout
> and catering. Open Tue-Sun 11am-10pm; closed Mondays.

- Vegetarian and gluten-free options marked on the menu
- Reservations for 6 or more; walk-ins welcome

## Visit

- [Menu and prices](https://example.com/menu): lunch, dinner and drinks
- [Reservations](https://example.com/reservations): how to book a table
- [Catering](https://example.com/catering): packages, minimums, lead times
- [Hours and location](https://example.com/visit): address, parking, holiday hours

A template to copy

# [Business name]

> [What you do] in [town or area]. [One standout fact.]
> [Hours, or "By appointment".] [How to book or call.]

- Service area: [towns or zip codes]
- Main services: [3 to 6, in customers' words]
- Pricing: [how you price, or a link]
- Not offered: [common requests you don't take]

## Services

- [Service page](https://yourdomain.com/...): [one-line note]

## Booking and contact

- [Book or request a quote](https://yourdomain.com/...): [note]
- [Contact and hours](https://yourdomain.com/...): [note]

Keep it short. Use the same hours, phone number and service list as your website and listings. If they disagree, you've given AI one more version to choose from.

Where to put it

The file goes at the root of your site, so it loads at yourdomain.com/llms.txt. Check before you write one, because your platform may already make it:

  • Shopify says every store automatically serves /llms.txt, /llms-full.txt and /agents.md, which you can customize with Liquid templates (Shopify's help page).
  • Wix generates an llms.txt for every Wix site, according to the llmstxt.org integrations list.
  • WordPress: the Yoast SEO and AIOSEO plugins can generate one, per the same list. Or upload a plain text file to your site's root folder.
  • Other builders: if you can't upload files to the root, ask your developer or host.

Then open the URL in a browser. You should see plain text, not a 404 or your home page. To check the format, run it through the free llms.txt checker.

What llms.txt does, and what it doesn't

Be clear-eyed about this one.

What it does. It gives AI agents a short, clean map of your site, which is easier for them to use than a page full of menus and scripts. The proposal says agents read it "on demand", when they need information while helping someone, and that it's used most heavily today by coding agents reading software documentation. Chrome's Lighthouse now checks for one as part of its agentic browsing checks, according to llmstxt.org.

What it doesn't do.

So treat llms.txt as a 15-minute extra once the basics are done, not as the fix.

The AEO order of operations

For answer engine optimization, the order is: let AI crawlers in, put your facts on your pages as plain text, make your listings match, then add extras like llms.txt and schema markup. An llms.txt on a site AI can't read is a signpost to a locked door.

Check the basics first

Preferly's free AI crawler check shows whether ChatGPT, Claude, Perplexity, Gemini and other AI crawlers can reach your site. The free check asks 3 AI models 5 customer questions and shows whether you're named. The full $99 AI visibility audit adds every claim AI makes about you checked against your website, and a fix list that can include an llms.txt drafted from your own pages, paid once.

Questions

What should a small business put in llms.txt?

Your business name as a heading, a one or two sentence summary in a quote block, a few plain facts (what you do, where, hours, how to book), then short lists of links to the pages that answer customers' questions: services, prices, service area, booking and contact. Nothing you wouldn't put on the website.

Where does the llms.txt file go?

At the root of your site, so it loads at yourdomain.com/llms.txt. Some website builders create one for you: Shopify serves one for every store, Wix generates one for every Wix site, and WordPress SEO plugins such as Yoast SEO and AIOSEO can generate one.

Will llms.txt get my business into ChatGPT or Google AI Overviews?

There's no evidence it does on its own. Google says Google Search ignores llms.txt files, so it neither helps nor harms rankings there. ChatGPT search depends on OpenAI's crawler being able to read your pages. llms.txt is a cheap extra, not a substitute for a readable website.

Is llms.txt the same as robots.txt?

No. robots.txt tells crawlers what they may fetch. llms.txt is a short guide for AI tools to read; it can't allow or block anything.

How do I test my llms.txt?

Open yourdomain.com/llms.txt in a browser to make sure it loads as plain text. Check the format with a free llms.txt checker. The llmstxt.org proposal also suggests asking an AI agent questions about your business with only the llms.txt as a starting point.

Sources

Start free check

3 AI models, 5 customer questions, about a minute. Or check whether AI crawlers can reach your site.

Check your site free

No email. It reads your robots.txt and homepage, the way AI crawlers do.