Search and AI

What llms.txt does for a practice website

A plain guide to llms.txt, the short file that tells AI assistants who a practice is, what the file is not, and the other things that help them read a site.

A patient may ask an AI assistant which doctor to see, or for a clinic’s opening hours. To answer, the assistant reads websites much as a search engine does, except that it is looking for facts it can repeat. A file called llms.txt is one small way to hand it those facts directly; it is not the only way, and it is not a way of being recommended.

Key points

  • llms.txt is a short plain-text summary of a website, at /llms.txt, written for machines that read for facts.
  • For a practice it says who you are, what you do, where and when, in which languages, and where each is explained in full.
  • It is one signal among several: structured data, a robots.txt that turns no one away by accident, pages that read without scripts, buttons with names.
  • It does not make an assistant recommend you; it gives one that reads it your facts in one place.
  • You can check your own website from a browser, with no tools.

What the file is

llms.txt is a plain-text file at the root of a website, at an address such as yourpractice.com/llms.txt. It is written in Markdown, the simple format used for notes and documentation, and follows a public proposal published at llmstxt.org, which gives it a fixed shape: a heading with the name of the site, a short summary in a quoted block, a few lines of detail, then lists of links to the pages worth reading, with a note on each.

It is a proposal, not an official standard, and each assistant decides for itself whether to read it. It gives the ones that do read it a clear summary instead of a guess. On a site in more than one language there is one file per language, each at a subpath such as /ar/llms.txt that covers the pages beneath it.

What goes in it, for a practice

For a medical practice, a useful llms.txt is short. It says:

  • who you are: your name, your specialty and your qualifications;
  • what you do, in plain words;
  • where you practise, with your address and opening hours;
  • which languages you see patients in;
  • how to get in touch or book;
  • and where on the website each of these is explained in full.

It says nothing the website does not also say: it is a summary of the site, not a second one, and a claim that would not be allowed on a page is not allowed in the file.

What the file is not

It is not a ranking signal for Google, and it is not a way to be recommended. The proposal does not oblige any assistant to read it, and one that does decides for itself what to say. Nor can it repair a website whose pages say something different. Treat it as a courtesy to the reader, human or not, and not as a lever. A good file is one a stranger could read in a minute and know what you do and how to reach you.

Structured data, in plain words

Structured data is a block of labels in the code of a page, written in a shared vocabulary called schema.org, that tells a machine what the page is about. Google recommends a form called JSON‑LD and insists that the labels describe what a visitor can see and nothing hidden.

For a practice the labels say “this is a medical clinic” (or a physician, or a dentist) and give the specialty, services, address, phone number, hours and whether new patients are accepted. Google’s guidance for local businesses asks for the name and address at least and says plainly that the labels make a page eligible for richer results without promising them. The same facts belong on the practice’s Google Business Profile, written the same way; a machine that finds two versions of a name has a reason to trust neither.

A Markdown copy of every page

The proposal suggests one more thing: a clean Markdown copy of each page worth reading, at the page’s address with .md added, or with index.html.md for an address that ends in a slash. The copy has the page’s heading, description and text, with the navigation, the cookie notice and the scripts stripped away.

Every page of this website that search engines may list has such a copy, kept at index.md under the page’s address: the copy of /blog/ is /blog/index.md. The page points to it in its code as an alternate version in Markdown, and to the llms.txt that covers it; the lists in the file at /llms.txt on this website link to the copies rather than to the pages. Each copy is served as Markdown text with its character set declared, as the Markdown media type requires.

Crawlers, scripts and buttons with names

A website’s robots.txt file tells crawlers which addresses they may visit. It is a request, not a lock: the standard that defines it says its rules are not a form of access authorisation, and well-behaved crawlers choose to honour them. A line reading “Disallow: /” under the name of a crawler asks it to stay away from the whole site, and a site can turn away the crawlers that AI assistants use without anyone meaning to. Google adds that a page blocked by robots.txt can still appear in search results, with no description.

An assistant visiting on a patient’s behalf also needs pages whose text is present without running code, and buttons and forms whose purpose is written down. The accessibility guidelines ask for the same: a control has a name that describes its purpose, and the purpose of a link can be told from its text. What helps a screen reader helps an assistant; the post on what a private practice website needs lists the rest.

How to check your own website

Type your website’s address into a browser followed by /llms.txt: a page of plain text about your practice means you have one, an error page means you do not. Then try /robots.txt, where a line beginning “Disallow: /” under the name of a crawler means that crawler is being turned away. Then open any page and add index.md, or index.html.md, to the end of its address: plain text is the Markdown copy, an error means there is none. Structured data is harder to see; ask whoever looks after your website to show you the block.

Common questions

Does llms.txt improve our position on Google?

No. It is addressed to AI assistants, not to search engines; Google’s guidance for search rests on the pages themselves, their structured data and robots.txt.

Do we need one in every language of the site?

Yes, one per language, each in its own language, at /llms.txt and at the equivalent address under each language’s path.

What if the file says something the website does not?

Then the file is wrong, and it should be corrected whenever the page is. Nothing appears in it that a patient could not also find on a page.

This is part of the search and AI discovery work on every website we look after.

References

  1. The /llms.txt file. llmstxt.org. 2024. Available from: llmstxt.org [cited ].
  2. MedicalClinic. schema.org. Available from: schema.org/MedicalClinic [cited ].
  3. Intro to How Structured Data Markup Works. Google Search Central. Available from: developers.google.com/search/docs/appearance/structured-data/intro-structured-data [cited ].
  4. Local Business (LocalBusiness) structured data. Google Search Central. Available from: developers.google.com/search/docs/appearance/structured-data/local-business [cited ].
  5. RFC 9309: Robots Exclusion Protocol. IETF. 2022. Available from: rfc-editor.org/rfc/rfc9309.html [cited ].
  6. Introduction to robots.txt. Google Search Central. Available from: developers.google.com/search/docs/crawling-indexing/robots/intro [cited ].
  7. RFC 7763: The text/markdown Media Type. IETF. 2016. Available from: rfc-editor.org/rfc/rfc7763.html [cited ].
  8. Web Content Accessibility Guidelines (WCAG) 2.2. W3C. 2024. Available from: w3.org/TR/WCAG22 [cited ].

See your new homepage before you decide

Ask for a free preview

We build your new homepage first and send you a private link. Free, with no obligation; we reply within one working day.

We use these details to reply and to build your preview. Privacy policy

  • Reply within one working day
  • No obligation to go ahead
  • No minimum term

NETWORK OF DOCTORS LTD, company 17341369

  1. Send us your current website, or tell us about your practice.
  2. We build your new homepage first and send you a private link.
  3. You decide. Nothing is owed either way.

How the free preview works