Chapter 2 of 7

How AI Answer Engines Work

What happens between someone asking a question and an AI tool answering with sources, and where your website fits in.

  • 6 min read
  • Updated 2 Dec 2026

You don’t need to understand machine learning to do AEO and GEO well. You do need a rough picture of what happens between someone typing a question and an AI tool giving an answer with three sources underneath. Most of the advice in later chapters only makes sense once you’ve seen that picture.

This chapter walks through it step by step and points out where your website and your brand can come into it.

Two places an answer can come from

An AI assistant can answer from two different places, and most modern tools mix them.

What the model already “knows”. Large language models are trained on huge amounts of text collected up to a certain date, called the training cutoff. From that text they learn facts, associations and how language fits together. If your brand was written about often and consistently before the cutoff, the model may know who you are without looking anything up. If it wasn’t, it may know nothing, or guess.

What it looks up right now. When a question needs current or specific information, many tools run a web search first, read some of the pages they find and write the answer from those. This is usually called retrieval, grounding, or RAG (retrieval-augmented generation). The pages it read are the ones that show up as citations.

Why this matters to you

The two need different work. Getting into the model’s memory is slow and indirect: it comes from being mentioned widely over time. Getting picked during retrieval is closer to SEO: your page has to be findable, readable and the best match for the question at that moment.

What happens when someone asks a question

Every tool does this a bit differently and none of them publish the full recipe, but the broad steps look similar.

  1. The question is read and rewritten. The tool works out what’s being asked, often taking the earlier conversation into account. “What about for a team of ten?” means nothing without the previous message.
  2. It’s split into several searches. A question like “best CRM for a small agency that also does invoicing” might become separate searches about CRMs for agencies, CRMs with invoicing, pricing and reviews. Google calls this “query fan-out” when describing how AI Mode works.
  3. Pages are retrieved. The tool pulls results from a search index. Google’s AI features use Google’s own index. Other tools use their own crawlers, partner search engines, or both.
  4. Useful passages are picked out. The model doesn’t read every page from top to bottom the way a person would. It looks for the parts that best answer each sub-question, often a paragraph, a list or a table.
  5. The answer is written. The model combines those passages with what it already knows and writes a reply in its own words.
  6. Sources are attached. Many tools link the pages they used, either inline as numbers or in a list under the answer. Some only show sources when asked.

Your page can drop out at any of these steps. It might not be in the index at all. It might be in the index but not match any of the sub-searches. It might match, but the passage the model needed was buried in a long paragraph about something else. Later chapters deal with each of these in turn.

Who uses which index

This changes often, so check each company’s own documentation before making big decisions. As of late 2026, the broad picture is:

ToolWhere it looks things up
Google AI Overviews and AI ModeGoogle’s search index, crawled by Googlebot
GeminiGrounds answers with Google Search
Microsoft CopilotBing’s index
ChatGPT searchOpenAI’s own search crawler plus third-party search providers
PerplexityIts own crawler and index, plus other sources
ClaudeWeb search when switched on, plus Anthropic’s own crawlers

Two practical points come out of this table. Being indexed properly in both Google and Bing covers a lot of ground. And blocking AI crawlers you haven’t looked into can quietly remove you from tools your customers use. Chapter 5 lists the crawlers by name and what each one does.

How sources get picked

Nobody outside these companies knows the exact formula, and it changes. What we can say is which things consistently make a page more likely to be used, based on how retrieval systems work and on what shows up in real answers.

  • A close match to the question. The passage answers the specific thing asked, in words close to how it was asked.
  • An answer that stands on its own. A paragraph that makes sense when lifted out is easier to use than one that depends on the three paragraphs before it.
  • Clear structure. Headings that say what follows, short sections, lists and tables where they fit.
  • Specific facts. Numbers, dates, names and prices are easier to quote than general statements.
  • Trust in the source. Pages from sites that are well established, well linked and well regarded on a topic tend to be preferred, much as in classic search.
  • Freshness, where it matters. For prices, rules, rankings and anything that changes, newer pages have an edge.
  • Agreement with other sources. If five sites say one thing and yours says another, the model is more likely to go with the five, unless yours is clearly the authority.

Why the same question gets different answers

Ask an AI tool the same question twice and you may get two different answers, with different brands and different sources. That’s normal. The writing step involves some randomness, search results shift, and tools take account of things like location, earlier messages and sometimes the user’s settings or memory.

This has two consequences. First, one screenshot of ChatGPT mentioning (or ignoring) you proves very little. Second, when you track visibility you need to run the same questions several times and look at patterns. Chapter 7 shows how.

Where the model’s memory comes in

Even when a tool searches the web, what the model already believes about a topic shapes the answer. It decides which searches to run, how to read what it finds and what to fill in around the sources. If the model has seen your brand linked with “accounting software for law firms” in hundreds of places, that link tends to show up in its answers.

You can’t edit a model’s memory directly. What you can do is make sure the things written about you around the web are accurate, consistent and frequent enough to leave a mark over time. That’s the main subject of Chapter 6.

Key terms from this chapter
Training data
The text a model learned from, collected up to its training cutoff date.
Retrieval / grounding / RAG
Looking up pages at answer time and writing the answer from them.
Query fan-out
Splitting one question into several searches to cover its different parts.
Passage
A short piece of a page, such as a paragraph, list or table, that can be used on its own.
Index
The stored copy of the web that a search engine or AI tool searches through.
In short
  • AI answers come from the model’s memory, from live web searches, or both.
  • Questions get rewritten and split into several searches before pages are retrieved.
  • Your page has to be indexed, match a sub-search and contain a passage that stands on its own.
  • Answers vary from run to run, so judge visibility on patterns, not single screenshots.

Next, Chapter 3 covers how to find the questions your buyers actually ask, so you know which answers to compete for.

Want to practise this, not just read it?

Our free AEO & GEO course turns this guide into 20 modules with quizzes and tasks you run on your own site.

See the free course