How It Works

How AI Assistants Find and Cite Websites (A Field Guide)

Moonlit Tools teamUpdated 7 min read

Short answer

For most specific or current questions, AI assistants search a catalog of web pages, read the best matches and link to the pages they used. Your page has to pass five steps to get that link: fetched, stored, matched, read and chosen. Each step has its own common problem, from a blocked bot to a page that never actually answers the question.

  • Source links come from pages looked up live, not from what the AI learned in training.
  • Many AI bots don't run JavaScript, so your words need to be in the page itself.
  • Pages that answer the question in the first sentences are the easiest to cite.
  • Fix problems in order: access, indexing, readability, matching, then answer quality.
On this page
  1. First, Two Kinds of "Knowing"
  2. The Five Steps From Page to Citation
  3. What Makes a Page Easy to Cite
  4. When a Person Sends the Bot
  5. A Troubleshooting Order That Saves Time
  6. How to Watch It Happen
  7. Frequently Asked Questions
  8. Sources

Picture someone standing in their yard in October, phone in hand, asking an assistant: "When should I aerate my lawn?" A few seconds later they get a tidy two-sentence answer with little numbered links underneath.

Behind that answer is a real, step-by-step process. Bots fetched pages. Search indexes (giant catalogs of web pages) stored them. Something picked a handful of pages and read them. If a competitor gets that little link and you don't, the reason is almost always in one of those steps.

First, Two Kinds of "Knowing"

AI assistants know about websites in two very different ways.

TrainingLive lookup
What happensPages collected in the past help train the modelPages are looked up when someone asks a question
What it affectsThe model's general background knowledgeThe specific answer and its sources
Do you get a link?NoUsually yes, as a citation
Example botsGPTBot, ClaudeBotOAI-SearchBot, Claude-SearchBot, PerplexityBot

Training is like reading a lot of books years ago. A live lookup is like checking a book that's open on the table right now. Source links come from live lookups, so that's where your effort pays off.

The Five Steps From Page to Citation

Five stages left to right: crawled, indexed, retrieved, read, cited. Under each stage is the most common reason a page falls out: blocked by robots.txt or a firewall, not in the sitemap with no links to it, doesn't match how people ask, text hidden behind JavaScript, and no clear answer to quote. 1. Crawled A bot fetches your page 2. Indexed It's filed in a search index 3. Retrieved It matches a question 4. Read The assistant reads it 5. Cited ✦ You're linked as a source WHERE PAGES FALL OUT Blocked byrobots.txtor a firewall Not in thesitemap, nolinks to it Doesn't matchhow peopleask Text hiddenbehindJavaScript No clearanswer toquote

Step 1: Crawled

Before anyone asks anything, bots (often called crawlers) visit your site and download pages. Each assistant has its own search bot:

Where pages fall out: a robots.txt rule, a firewall, or a "block AI bots" switch at your CDN (a service that sits in front of your site to speed it up and filter traffic). Any of these can turn the bot away before it reads a word. Google's guidance for AI features says to check your CDN and hosting, not just robots.txt. Our robots.txt guide lists which bots to let in.

Step 2: Indexed

After a bot fetches a page, the page gets stored in a search index so it can be found later. "Indexed" just means listed in that catalog. For Google, it's the same index behind regular results. A page has to be indexed and allowed to show a preview snippet to appear as a link in AI Overviews.

Where pages fall out: pages that nothing links to, pages missing from your sitemap, duplicate pages, or pages accidentally tagged noindex (a tag that tells search engines not to list the page).

To check a page in Google:

  1. Open Google Search Console and pick your site.
  2. Paste the page's full address into the search bar at the top and press Enter.
  3. Read the result. URL is on Google means it's indexed. URL is not on Google means it isn't, and the report usually says why.

Step 3: Retrieved

Now someone asks a question. The assistant turns it into one or more searches and pulls back the best-matching pages. Bing calls these searches grounding queries, and you'll see that name in its reports.

This is where wording matters. If your customers ask "when should I aerate" and your page only ever says "core cultivation services," you've made the match harder than it needs to be.

Where pages fall out: the page is on the right topic but never uses the words people actually ask with. Headings that match real questions help a lot.

Step 4: Read

The assistant reads the text of those pages. Sometimes it uses the copy stored in the index. Sometimes a bot sent on a person's behalf, like ChatGPT-User, Claude-User or Perplexity-User, fetches the page fresh.

This step catches a lot of modern sites. In a December 2024 study of bot traffic, Vercel found that none of the major AI bots it measured ran JavaScript (the code that builds some pages in the browser). That included OpenAI's bots, ClaudeBot and PerplexityBot. Gemini, which uses Googlebot's systems, could.

Where pages fall out: pages built with JavaScript that arrive as an empty shell. To a bot that skips JavaScript, there's nothing to read. Here's the two-minute test to see if that's you.

Step 5: Cited

Finally, the assistant writes its answer and links the sources it used. Nobody outside these companies knows exactly how sources are picked, and it changes. But cited pages tend to share one thing: a passage that answers the question clearly enough to repeat.

A mock chat window. The user asks when to aerate a lawn. The assistant answers in two sentences with small numbered citation markers, and below the answer three source cards are listed. The first source card, from a fictional lawn care company, is highlighted because its page answered the question in its opening line. ILLUSTRATIVE EXAMPLE When should I aerate my lawn? For cool-season grass, aerate in early fall while it's actively growing. [1] Warm-season grass does better in late spring. [2] SOURCES 1 · examplelawn.com When Should I Aerate My Lawn? Answer in the first line ✓ 2 · extension.example.edu Lawn Aeration Basics Clear, specific, dated ✕ not cited “Quality Lawn Care Since 2009!” Never answers the question

Where pages fall out: the page talks around the topic (company history, values, "quality service") without ever giving the answer.

What Makes a Page Easy to Cite

Hard to use

  • Answer buried in paragraph four
  • "Contact us for pricing"
  • Key info only inside an image or PDF
  • Headings like "Our Approach"
  • No date, no sources

Easy to use

  • Answer in the first two sentences
  • Real price ranges and timeframes
  • Important facts written as text
  • Headings like "How Much Does It Cost?"
  • A visible updated date and linked sources

Several of these come straight from Google's AI features guidance. Link to important pages from your other pages. Keep important content in text. Support it with good images and video. And keep your structured data (labels in your page's code that tell search engines what things are) matching what's visible on the page.

The rest is how people like to read, too. For more, see How to Write Answer-First Content.

A handy test

Pick any section of your page and imagine it pasted, alone, into someone else's answer. Does it still make sense? Is it still correct? If so, it's citation-ready.

When a Person Sends the Bot

Not every visit from an assistant is a bot on its own schedule. When someone pastes your web address into ChatGPT, Claude or Perplexity and asks about it, a bot fetches the page for that person.

These bots play by slightly different rules:

Either way, the fix is the same: if your words are in the page itself and the answer is clear, these visits go well.

A Troubleshooting Order That Saves Time

If you're not being cited, check in this order. Each step depends on the one before it.

  1. Access. Can OAI-SearchBot, Claude-SearchBot, PerplexityBot and Googlebot reach the page? Check robots.txt and any bot settings at your host or CDN.
  2. Indexing. Is the page in your sitemap, linked from other pages and showing as indexed in Search Console?
  3. Readability. Right-click the page and choose View Page Source. Is your main text there, or does it only appear after JavaScript runs?
  4. Matching. Do your headings and opening lines use the words customers actually use?
  5. Answer quality. Does the page state a clear, specific, current answer early on?
  6. Competition. If everything above is fine, look at who is being cited. Their page might simply be more specific. You can fix that too.

How to Watch It Happen

Where Moonlit Tools Fits

A Moonlit Tools scan checks the first steps of this chain on your own site: crawler access in robots.txt, snippet controls, and whether pages have text and headings a bot can read. On paid plans it also asks ChatGPT and Perplexity up to 5 of your questions each week and records whether the answers cite you. See it in the demo.

Frequently Asked Questions

No. GPTBot is OpenAI's bot for content that may be used to train its models. ChatGPT search uses OAI-SearchBot. You can block one and allow the other.

Does Google have a special crawler for AI Overviews?

No. Google says its AI features use the same Googlebot visits and the same index as regular Search. Google-Extended is a separate setting for how your content is used in other Google AI systems.

Why does an assistant cite a page that's worse than mine?

Sometimes the other page is easier to read or more specific. Sometimes your page got stuck on an earlier step, like a blocked bot or text that only appears with JavaScript. Work through the checklist above before rewriting anything.

How quickly do changes show up?

It depends on the bot. OpenAI says robots.txt changes for its search systems can take about 24 hours. Google says recrawling can take anywhere from a few days to a few weeks. Content changes usually take longer to show up than access fixes.

Sources

See What Google and AI Tools Can Read

Moonlit Tools reads your site the way search engines and AI assistants do, then tells you what to fix first and shows you why. Scan your own website free. No card needed.

Scan Your Site Free Or apply for 90 days of Launch free