Skip to main content
NewNMC’s advertising guidelines for doctors are in force from 6 Oct 2026. See what to change, and get a free compliance auditNew NMC advertising rules for doctors: what to change
AI Search

llms.txt for Hospital Websites: What It Does, What It Does Not and a Template

An honest look at the evidence for llms.txt, a minimal file a hospital can publish in an afternoon, and what to list for doctors and services without creating a maintenance burden.

llms.txt for Hospital Websites: What It Does, What It Does Not and a Template

This article is for hospital web managers and marketing leads who have been asked, usually by a board member or a vendor, whether the hospital website needs an llms.txt file. It gives a short answer, the evidence behind it, a minimal template and a maintenance rule that keeps the file from becoming a liability.

The short answer is that the file is cheap to publish, there is little public evidence that major AI search products use it to select or rank sites, and it should not displace work on the pages themselves. If you publish one, publish a small and accurate one.

What llms.txt is

The proposal at llmstxt.org was put forward by Jeremy Howard of Answer.AI in September 2024. It describes a markdown file named llms.txt placed at a site's root, or at a subpath, that gives language models a curated guide to the site. The only required element is an H1 with the site or project name. Optional parts follow in a set order: a blockquote summary, short explanatory paragraphs without headings, and H2 sections containing lists of links in the form [name](url) with optional notes. A section named "Optional" marks links an agent can skip when it needs less context. The proposal also suggests clean markdown versions of pages at the same URL with .md appended.

The page presents this as a proposal, hosted in a community repository, and not as a ratified standard. That framing is accurate. No standards body governs it, and no search engine has committed to following it.

It is also different from robots.txt. Robots.txt tells crawlers what they may fetch. An llms.txt file does not grant or deny access; it offers a reading list.

What the evidence says

Be specific about what is known.

Google. Google's guidance on AI features in Search says you do not need to create new machine-readable files, AI text files or markup to appear in AI Overviews or AI Mode, and that there are no additional technical requirements beyond being indexed and eligible for a snippet. On 17 June 2025 John Mueller of Google wrote on Bluesky that no AI system currently uses llms.txt, and later added that consumer chatbots fetch regular pages but not the file, as reported by Search Engine Roundtable. That is one Google employee's observation about server logs at a point in time. It is not a policy for every AI product.

Other providers. We could not find an official statement from OpenAI or other major assistants committing to read llms.txt for ranking or citation. Absence of a statement is not proof of absence of use, so we make no claim either way.

Developer documentation. The place where the file has the clearest use case is software documentation, where an agent already on a site wants a structured index of pages and a coding assistant can fetch clean markdown. A hospital site is a different case. The user is a patient, the content is clinical and the retrieval systems that matter are web search products that work from indexed pages.

Treat all of this as current to October 2026 and check it again before you commit resources. This area changes quickly.

Why a hospital might still publish one

Three modest reasons hold up.

  1. It forces a content inventory. Writing the file means deciding which twenty pages best describe the hospital. That is a useful exercise for a site with thousands of URLs.
  2. It is a clean reference for agents that do use it. Some tools and developer-built agents read it. If a partner, researcher or internal team builds an assistant over your public content, the file is a convenient index.
  3. It costs almost nothing. A static file at the root takes an hour.

Reasons that do not hold up: that it will raise your position in AI answers, that it replaces schema or good page structure, or that a vendor's audit score proves it works.

What it does not do

  • It does not control access. Use robots.txt and server rules for that.
  • It does not make a page indexable or eligible for Google's AI features. Normal crawling and indexing do.
  • It does not verify claims. If the file says your hospital holds an accreditation, it is a claim, not evidence.
  • It does not replace entity work: consistent names, structured data, listings and independent mentions.
  • It does not fix thin pages. If a department page says little, listing it in a file will not improve it.

A minimal template for a hospital

Below is the structure, shown line by line. Replace every placeholder with real, current values, and write each entry as a markdown link with a full absolute URL on your own domain (shown here as name and path in brackets). The hospital is hypothetical.

  • # Example Hospital, Pune
  • > Multi-specialty hospital in Pune, Maharashtra. This file lists the pages that describe our departments, doctors and patient information. Content is reviewed by the treating clinicians named on each page.
  • ## About
  • - [About the hospital] {/about}: ownership, locations, accreditations with certificate numbers
  • - [Contact and locations] {/contact}: addresses, phone numbers, visiting hours
  • ## Departments
  • - [Cardiology] {/cardiology}: services, tests, conditions treated
  • - [Orthopaedics] {/orthopaedics}: services, joint replacement, sports injury
  • ## Doctors
  • - [Find a doctor] {/doctors}: directory with registration details and specialties
  • ## Patients
  • - [Insurance and cashless] {/insurance}: accepted insurers and process
  • - [Health information] {/health-library}: reviewed patient education articles
  • ## Optional
  • - [News and events] {/news}

Keep the summary factual. Avoid superlatives, awards claims and anything an advertising regulator would object to. A file that says "the best hospital in Pune" is a promotional claim published in a new place.

Want this applied to your practice? Get a free ai search audit.

Book my free audit

What to include for doctors and services

Doctors. Link to the directory and to a small number of key specialty pages rather than listing every doctor. A file that names two hundred clinicians will be out of date within a quarter. If you do name individuals, include only those whose profile pages are complete, with qualifications, state medical council registration and clinical review dates. Cross-check names against the Indian Medical Register, which allows searches by name, registration number and state council.

Services. Link to department hubs and the most important treatment pages. Add a one-line note on what each page contains, because the note is what a reader or agent uses to choose.

Policies. If the hospital publishes pricing guidance, patient rights, privacy notices or a grievance route, list those. They are the pages an assistant is most likely to need to answer a factual question accurately.

Exclude. Leave out admin pages, internal tools, login pages, PDFs that duplicate web pages and any page you would not want quoted. If a page is sensitive, it should not be public in the first place.

Maintenance rule

The risk of a hand-written file is drift. A link to a retired department page or a doctor who has left is worse than no file. Three simple rules:

  1. Assign a named owner, usually the web manager.
  2. Generate or check the file from the CMS where possible, so removal of a page removes the link.
  3. Add the file to the quarterly content audit and test every link.

Also record the decision. A one-paragraph note saying why the hospital published the file and what evidence would make you change that decision will save a repeat debate.

How to find out whether anyone reads yours

Do not rely on a vendor's score. Your own server logs answer the question. After publishing, filter access logs for requests to /llms.txt and group them by user agent and IP range over eight to twelve weeks. Separate known search and AI crawlers from monitoring tools, SEO audit tools and your own testing, since audit tools request the file precisely to report on it. If the only requesters are audit tools, you have your answer for now. If a particular assistant or agent fetches it regularly, note the user agent and review what it then requests.

Record the result next to the original decision. If the evidence changes, for example a provider announces support, revisit the file and expand it. If it does not, leave the file small and stop spending hours on it.

Answers for the board

Three questions come up repeatedly.

"Our competitor has one. Are we behind?" Not in any way that has been shown. Check whether theirs lists accurate pages and whether their visibility differs for reasons unrelated to the file.

"Will it stop AI companies using our content?" No. It is a reading list. Access control belongs in robots.txt, authentication and legal terms.

"Can we put our clinical claims in it?" You can describe what a page contains. Do not use the file to make claims you could not publish on a page, since the same advertising and accuracy rules apply wherever the text appears.

Do the higher-value work first

Before spending time here, make sure these are in place: crawlable and indexable department and doctor pages, consistent organisation details, accurate Business Profiles, sensible structured data and independent mentions. Our AI search optimisation service and the schema markup service cover this. If your site is multilingual, the pages you list should follow the structure described in translating the patient journey, not just the copy, with each language version linked.

Where to start

  • Decide whether to publish, and record who decided.
  • Choose twenty pages that best describe the hospital and confirm each is indexable, current and clinically reviewed.
  • Write the file using the template, with factual wording only.
  • Save it at the site root and fetch it in a browser to confirm it loads as plain text.
  • Put the file on the audit calendar and re-check the evidence on platform support every six months.

If you manage citation and publishing workflows for AI search more broadly, AiLLMz organises citations and publication workflows that support visibility across AI search and LLMs, and the file is a small piece of that wider programme.

Filed underllms.txtllms.txt for hospitalsllms.txt templatedoes llms.txt workllms.txt healthcare website

About the author

Co-Founder & CTO · Gurugram, India

Arush builds the systems the rest of the company runs on — the patient-acquisition pipelines, the AI chatbots, the analytics that tie a single click to a booked appointment. If a campaign reports a number, it's because something his team built is tracking it.

Free guide · 17 pages

The Patient Acquisition Blueprint

A 90-day plan from first search to booked appointment.

The Pioneers Brief — one essay, three benchmarks, one teardown, every Thursday. Subscribe free →

Free ai search audit

Your next chapter starts with a conversation.

Three quick questions. We come prepared with a plan for your specialty and city.

  • A 30-minute call with a healthcare specialist
  • Your top three growth opportunities, in writing
  • Honest advice — even if that means not hiring us
  • No obligation and no hard sell
You’ll speak with a senior strategist
Consultations are hosted by Arush Thapar’s team.
Step 1 of 3Takes 30 seconds

What do you want to improve first?

Details stay privateNo obligationReply within 1 working day

Client portfolio · Healthcare websites

Work relevant to llms txt for hospital websites what it does what it does not and.

Explore client work →