Skip to content

Using AI · Agents

AI on your own website: a grounded assistant, llms.txt and AI search

How a website assistant grounded in your own pages works and what it costs (about $0.45 per 1,000 answers on Haiku 5.

By Oregon Healing Updated 9 min read Lesson 20 of 21 in Using AI Take the quiz Study guide

AI on your own website: a grounded assistant, llms.txt and AI search

AI meets your practice website in three ways. Visitors may ask questions of an assistant that lives on your site. AI search, such as Google's AI Overviews, may read your pages and quote them in its answers. And there is a small file called llms.txt that some people say every site needs. This lesson takes each in turn: how a grounded assistant works and what it costs, how to stay safe when the visitors are worried people, what AI search actually rewards, and an honest verdict on llms.txt.

I build and run sites with assistants on them, so I will use one of my own as the worked example, with the details that do not matter left out.

A grounded assistant: an open-book exam

A plain chatbot answers from whatever it absorbed in training. Ask it about your fees or your cancellation policy and it will guess, fluently. A grounded assistant is different. Before it answers, it searches your own pages, picks out the few passages that match the question and writes its answer from those passages only, with links back to them. The technical name is retrieval-augmented generation, usually shortened to RAG. The picture I use is an open-book exam where the book is your website.

A flow of six steps. A visitor asks a question in the Ask box. It goes to your server, where the API key lives, never in the page. A safety screen checks it: crisis words get a fixed answer, 988 and 911, with no AI involved. Otherwise the server searches your pages to find the few passages that match the question. The model writes from those passages only and names its sources. The answer comes back with links to the pages it used. A dashed note says the assistant is not intake: a line above the box asks people not to share health details. At Haiku 5.5 prices, about 45 cents per 1,000 answers, as of November 2026.
How a grounded answer is made. The crisis check comes before any AI, and the key never leaves the server.

Here is how the assistant on one of my sites handles a single question, step by step:

  • The question goes to my server, not straight to an AI company. The key that pays for the AI lives on the server. If it sat in the web page, anyone could copy it and run up my bill.
  • A safety screen runs first. If the question contains crisis language, the visitor gets a fixed, written answer pointing to 988 and 911. No model is called. A person in crisis should never wait on a machine's best guess.
  • It searches the published pages. Only public pages and lessons are searched. Nothing private is in the book.
  • The model writes from what it found. It is told to answer only from those passages, to say so when they do not cover the question, and to give general information, never a diagnosis.
  • The answer comes back with links, so the visitor can read the source and judge it.

Two quieter choices matter as much. The assistant keeps its own small database, separate from anything that holds people's details, and question logs are deleted after 90 days. And it does not depend on one AI company. If the first model it tries returns any error, it moves to the next one on a short list, so the box keeps working when one company has a bad day.

The instructions that keep it honest

Every assistant runs with a set of standing instructions that the visitor never sees, usually called the system prompt. For a grounded assistant on a counseling site, these instructions do most of the safety work after the screen. Mine say, in plain words, something close to this:

  • Answer only from the passages provided. If they do not cover the question, say so and suggest the page or the contact form that might help.
  • Give general information, never a diagnosis, a treatment plan or a judgment about a particular person.
  • Never claim to be a clinician, and never say that a person should or should not seek a particular kind of care.
  • Name the page each part of the answer came from.
  • Keep answers short. A visitor on a phone wants a paragraph, not an essay.

Instructions are advice, as the lesson on hooks put it, so they are not the only guard. The crisis screen runs in code before any model sees the question, and the search step means the model only ever sees public text. The instructions shape the tone. The code holds the lines that must not move.

Test it the way a worried visitor would use it, not the way you would. Ask it the vague question, the question that sounds like a symptom, the question about a medication, the question at two in the morning. Read every answer as if a stranger wrote it about your practice.

What it costs

Running an assistant through an API means paying per token: a meter, not a subscription. Lesson 2 explained tokens; roughly, a short web page is a couple of thousand of them. A typical grounded answer reads about 3,000 tokens of your pages and writes about 300. At Anthropic's published prices as of November 2026, that works out to:

  • Claude Haiku 5.5 ($0.10 per million tokens in, $0.50 out): about $0.45 per 1,000 answers.
  • Claude Sonnet 5.5 ($2 in, $10 out): about $9 per 1,000 answers.
  • Claude Opus 5.5 ($4 in, $20 out): about $18 per 1,000 answers.

For answering questions about your own pages, the smallest model is usually enough, because the hard part, finding the right passage, happens before the model is called. A small practice site might see a few hundred questions a month. On Haiku, that is pennies.

The money risk is not the average month. It is a key that leaks, or a script that hammers your assistant overnight. Five habits close that gap:

  • Set a spend limit on the day you create the account. Anthropic lets you set your own monthly limit below the one your account tier allows.
  • Use one workspace per project, each with its own limit.
  • Keep the key on the server, never in the page.
  • Use one key per app, so you can cancel one without breaking the rest.
  • Watch the usage page daily for the first week.

Privacy: the assistant is not intake

On a counseling site, the people typing into a question box are sometimes having a hard day. Some will type things they would only tell a clinician. Plan for that from the start.

The rule I hold to is simple: a public site's assistant answers from public pages and is not intake. It does not book appointments, take symptoms or collect names. Around that rule sit a few practical habits:

  • Say it on the box. A line above the input: "Please don't share health details here."
  • Route through your own server, so you control exactly what reaches the AI company.
  • Keep logs short, or turn them off.
  • Use a vendor that signs a BAA for anything that collects symptoms, appointment requests or who someone is. That is a different product from a public question box, and it belongs inside your practice systems. The lesson on HIPAA-safe AI tools covers BAAs.

The federal guidance behind this caution is the HHS Office for Civil Rights bulletin on online tracking technologies, which warns regulated entities against tools on their sites that disclose protected health information to vendors. A 2024 court ruling narrowed one part of it, but law-firm commentary from July 2026 reads the bulletin as still standing for the most part. I looked for 2026 HHS guidance written specifically about AI chat widgets and did not find any. That is an absence, not a green light. Treat a chat box with the same care as any other tool that sends visitors' words to a third party.

AI search: what it actually rewards

The second way AI meets your site is from the outside. When someone asks Google a question, an AI Overview may summarize an answer and cite a few pages. AI Mode does the same at greater length. Google's documentation says both run on its core ranking systems, and both use "query fan-out," quietly running several related searches to build one answer. Traffic from them shows up in your normal Search Console totals.

The practical meaning is reassuring: no special trick is required. Google says you do not need new markup or special files to appear in these answers. What helps is what always helped:

  • Pages that each answer one real question a client would ask, in plain words.
  • Who you are, where you practice and how you work, stated clearly on the page.
  • Fast pages that work well on a phone.
  • Not blocking the crawlers of the AI services you want to be cited by.

A page titled "What happens in a first counseling session" that walks through it honestly will do more for you in AI search than any file or plugin.

llms.txt: an honest verdict

llms.txt is a proposed standard: a plain Markdown file at the root of your site that lists your most important pages for AI tools, a bit like a table of contents written for machines. You will see it recommended as essential. The evidence says otherwise.

  • Google's AI optimization guide, published May 15, 2026, lists llms.txt among the things you do not need for AI Overviews or AI Mode. A Google search engineer said the same publicly in July 2025.
  • Ahrefs studied llms.txt files on 137,210 domains and found that 97% of them received zero requests from AI services in May 2026.

My verdict: harmless, ten minutes of work, and do not expect traffic from it. I keep one on my sites because it costs nothing and takes no upkeep. I would never pay anyone to write one or put it ahead of a single good page.

Should your practice have an assistant?

Probably not yet, if your site has ten pages. A grounded assistant is only as good as the book it reads. With a handful of pages, a clear FAQ answers the same questions faster and with no privacy risk at all. An assistant starts to earn its place when you have dozens of pages of useful material and visitors who clearly cannot find what they need.

If you do build one, or hire someone to, ask these questions first: where does the key live, what does it say to someone in crisis, which pages can it read, what is logged and for how long, and what happens when the AI company has an outage?

Try it

Open your own site and list the five questions new clients ask you most often. For each, find the page that answers it. Where there is none, that is your next page to write. Then search Google for one of those questions with your town's name. Look at whether an AI Overview appears and which sites it cites. Those are the pages you are competing with, and the answer to beating them is a clearer page, not a file.

Further reading

Facts and prices in this lesson checked November 24, 2026.

Sources

  1. “Pricing.” Anthropic. Per-million-token prices: Haiku 5.5 $0.10 in and $0.50 out (prompts up to 100k tokens), Sonnet 5.5 $2 and $10, Opus 5.5 $4 and $20. Per-answer figures are my arithmetic for 3,000 tokens in and 300 out. https://platform.claude.com/docs/en/about-claude/pricing (accessed Nov 24, 2026).
  2. “Rate limits.” Anthropic. Usage tiers, your own lower spend limit, and separate limits per workspace. https://platform.claude.com/docs/en/api/rate-limits (accessed Nov 24, 2026).
  3. “AI features and your website.” Google Search Central. AI Overviews and AI Mode use core ranking systems and query fan-out; their traffic counts in Search Console. https://developers.google.com/search/docs/appearance/ai-features (accessed Nov 24, 2026).
  4. “AI optimization guide.” Google Search Central, May 15, 2026. No special markup or files needed; llms.txt is not used for AI Overviews or AI Mode. https://developers.google.com/search/docs/fundamentals/ai-optimization-guide (accessed Nov 24, 2026).
  5. “llms.txt study.” Ahrefs. 97% of llms.txt files on 137,210 domains got zero AI requests in May 2026. https://ahrefs.com/blog/llmstxt-study/ (accessed Nov 24, 2026).
  6. “Use of online tracking technologies by HIPAA covered entities and business associates.” U.S. Department of Health and Human Services, Office for Civil Rights. The tracking-technology bulletin. No 2026 HHS guidance specific to AI chat widgets was found. https://www.hhs.gov/hipaa/for-professionals/privacy/guidance/hipaa-online-tracking/ (accessed Nov 24, 2026).
  7. “How health care companies can use AI and website tracking while protecting patient data.” Phelps. Law-firm commentary: the bulletin still stands for the most part after a 2024 ruling narrowed it. https://www.phelps.com/insights/how-health-care-companies-can-use-ai-website-tracking-while-protecting-patient-data.html (accessed Nov 24, 2026).
  8. “Managing HIPAA compliance when using AI chatbots.” Paubox. Practical cautions for chat tools on health sites. https://www.paubox.com/blog/managing-hipaa-compliance-when-using-ai-chatbots (accessed Nov 24, 2026).
  9. “Should Your Website Have llms.txt?.” Crazy Eye Marketing (YouTube), Nov 14, 2026. The video on this lesson. https://www.youtube.com/watch?v=ozU0XVhiPiU (accessed Nov 24, 2026).

Study guide

Key terms

  • Grounded assistant (RAG): searches your pages first, then answers from those passages with links
  • Safety screen: a check before any AI runs that gives crisis questions a fixed answer
  • API key: the password that bills your account; it lives on the server only
  • Spend limit: a monthly cap you set on API costs
  • AI Overview and AI Mode: Google's AI answers in search, built on its normal ranking
  • Query fan-out: several related searches run behind the scenes to build one AI answer
  • llms.txt: a proposed file listing your key pages for AI tools

Facts that move (checked November 24, 2026)

  • Haiku 5.5: $0.10 in, $0.50 out per million tokens; about $0.45 per 1,000 answers of 3,000 in and 300 out (Anthropic pricing)
  • Sonnet 5.5 about $9 and Opus 5.5 about $18 per 1,000 such answers (Anthropic pricing)
  • Google does not use llms.txt for AI Overviews or AI Mode (Google, May 2026)
  • 97% of llms.txt files on 137,210 domains got zero AI requests in May 2026 (Ahrefs)
  • The HHS tracking-technology bulletin still stands for the most part (Phelps, July 2026)

Questions to ask before any site assistant goes live

  • Where does the key live?
  • What does it say to someone in crisis?
  • Which pages can it read?
  • What is logged, and for how long?
  • What happens when the AI company has an outage?
  • Is there a spend limit?

Open the study guide on its own page

Check what you learned

10 questions from this lesson. Answers are checked as you go; nothing is recorded.

  1. 1 / 10

    What makes an assistant "grounded"?

    Hint

    An open-book exam.

  2. 2 / 10

    Why should the API key live on your server rather than in the web page?

    Hint

    Who can see the page?

  3. 3 / 10

    In my example, what happens when a question contains crisis language?

    Hint

    No machine guesswork.

  4. 4 / 10

    About how much do 1,000 grounded answers cost on Claude Haiku 5.5, as of November 2026?

    Hint

    The smallest model.

  5. 5 / 10

    Which is the best first habit when you create an API account?

    Hint

    Day one.

  6. 6 / 10

    What should a public site's question box NOT do?

    Hint

    It is not intake.

  7. 7 / 10

    What did I find about 2026 HHS guidance specifically on AI chat widgets?

    Hint

    Absence is not a green light.

  8. 8 / 10

    According to Google, what do AI Overviews and AI Mode run on?

    Hint

    The same as search.

  9. 9 / 10

    What did Ahrefs find about llms.txt files in May 2026?

    Hint

    Almost nobody reads them.

  10. 10 / 10

    For a ten-page practice site, what usually beats an AI assistant?

    Hint

    Small book, short answer.