A user pastes a URL into an AI chat window and types a question about it. Two seconds later, an answer appears. The page was read, the relevant passage was found, and the response is grounded in the actual content on that URL.
What happened in those two seconds is where most mental models of “how websites work” have quietly broken.
The reader expected a crawler. What actually ran was a pipeline of four distinct steps, any of which could have failed, and most of which look nothing like the Googlebot model that developers and SEOs grew up with.
This post walks through that pipeline end to end. It covers how an AI agent in 2026 fetches a single URL, decides whether to render JavaScript, extracts readable content, fits it into a context window, and turns it into an answer. It also covers where that pipeline breaks, and what site owners can actually do to be legible to this new kind of visitor.
What You’ll Learn
This guide covers the mechanics of a single real-time AI agent fetch, from the moment the agent receives a URL to the moment it returns a grounded answer.
Readers will finish with a concrete mental model of the four stages involved: the HTTP request, the rendering decision, the content extraction step, and the context-window fit. They will also see the common failure modes at each stage and the specific changes a site owner can make to stop those failures from happening.
The goal is not a tool roundup or a build-your-own-crawler tutorial. It is a clear picture of what the other side of an AI-driven visit actually looks like, and why the old SEO playbook only partially applies.
From Crawler to Agent: Two Mental Models of a Website Visit
For two decades, the default mental model of a non-human website visitor was the search engine crawler. Googlebot arrived on a schedule, downloaded pages, stored them in an index, ranked them against other pages, and served cached snippets in response to queries. The visit was long-running, exhaustive, and batched. A site owner could watch crawl stats accumulate over weeks, then over months.
The 2026 AI agent visit is a different animal.
When a user asks an AI assistant about a page, the agent typically fetches that single URL in real time, during the same request cycle as the user’s question. There is no schedule. There is no stored index to fall back on. The content has to arrive, be cleaned up, and be squeezed into the agent’s context window in a matter of seconds, because the user is waiting for an answer in a chat interface.
Both patterns still exist. Training-oriented crawlers like GPTBot and ClaudeBot still sweep the web in the background, and traditional search crawlers still run their schedules. But the traffic that matters most for understanding AI visibility is the real-time fetch, because that is what determines whether a user’s question about a specific page gets answered accurately.
The rest of this post focuses on that real-time path.
Step 1: The HTTP Fetch Layer
The first thing an AI agent does when handed a URL is exactly what a browser does: it makes an HTTP GET request.
The request carries a user agent string that identifies the fetcher. In 2026, the common user agents include GPTBot and ChatGPT-User from OpenAI, ClaudeBot and Claude-User from Anthropic, PerplexityBot from Perplexity, Google-Extended for Google’s AI products, and Applebot-Extended for Apple Intelligence. The distinction that matters most is the one between training crawlers and real-time browsing agents.
GPTBot, ClaudeBot, and their peers exist to collect training data at scale. ChatGPT-User and Claude-User, by contrast, show up one request at a time because a specific human just asked a specific question. The two traffic patterns behave differently and should be treated differently.
Site owners who want to distinguish them can do so in robots.txt. Blocking GPTBot does not block a real-time ChatGPT browsing session, and allowing ChatGPT-User does not opt a site into any training corpus. This distinction is one of the most frequently confused points in the entire space, and getting it wrong can either leak content into training data unintentionally or cut a site off from the real-time agents that drive useful AI referral traffic.
Rate limiting also behaves differently. A training crawler pulls many pages on a loose schedule and respects crawl budgets across a whole site. A real-time agent fetches one or two URLs and leaves. Aggressive per-IP rate limits configured for the old crawler model can block the new agent entirely, because the agent has no retry strategy beyond telling the user the page could not be reached.
Cache headers are worth setting honestly. An agent that sees a sensible Cache-Control value can skip a redundant fetch when it has already read a page recently. One that sees no guidance will refetch every time, which costs the site bandwidth and the agent latency.
Step 2: Rendering the Page
Once the response comes back, the agent has to decide whether the content is actually present in the HTML it just received.
Most agent fetchers start with a plain HTTP GET and inspect the result. If the returned HTML already contains recognizable article content (headings, paragraphs, body text) the agent moves straight to extraction. This is the fast path. It uses very little compute and completes in milliseconds.
If the returned HTML is mostly empty, with a thin shell of script tags and a single root <div id="app">, the agent has a decision to make: give up, or escalate to a headless browser.
Escalation means spinning up something like Chromium via Playwright or Puppeteer, running the page’s JavaScript, waiting for network idle or for a known content selector to appear, and only then reading the DOM. It is significantly more expensive than a plain GET, both in latency and in infrastructure cost. Some agent fetchers escalate by default for any page that looks empty. Others refuse, because the cost of rendering every JavaScript-heavy page in real time would be prohibitive at agent scale.
Single-page applications sit at the painful end of this tradeoff.
An agent that does not escalate sees an empty shell. An agent that does escalate still has to contend with client-side routing, deferred fetches, and components that only mount after a user scrolls. Lazy-loaded images never load, because the agent never scrolls. Infinite scroll lists never advance past their first page. Shadow DOM content can be invisible to DOM-walking extractors that do not know to traverse shadow roots.
The practical upshot is that a page which renders beautifully in a user’s browser can look, to an agent, like a blank document with a spinner. The user who asked the question never sees what the agent saw. They only see the answer the agent produced, which in this case is an apologetic “I could not read that page.”
Step 3: Extracting the Readable Content

Assuming the agent has HTML that contains real content, the next step is pulling the content out of the page.
A raw HTML document is mostly not content. Navigation menus, sidebars, footers, advertisements, cookie banners, related post widgets, newsletter prompts, and tracking scripts typically make up the majority of the bytes on a modern web page. The content an AI agent actually needs, the article body or the documentation section, is usually less than twenty percent of the total.
Extraction is the step that isolates that twenty percent.
The dominant approach is Readability-style scoring, the same idea that powers Firefox Reader View. The extractor walks the DOM, scores each node based on factors like text density, link density, tag type, and the behavior of sibling elements, and returns the highest-scoring subtree. Mozilla’s Readability.js is the reference implementation. On the Python side, Trafilatura has become the standard for the same reason: it handles a wide variety of page layouts without per-site tuning.
Semantic HTML makes this step dramatically more reliable. A page that uses <main>, <article>, <nav>, and <aside> correctly tells the extractor exactly where the content lives. Structured data in JSON-LD format can also act as a booster, giving the extractor a parallel track of unambiguous information about author, publication date, and article body without having to guess.
Once the relevant subtree is identified, it is almost always converted to Markdown before it goes any further. Markdown is the de facto intermediate format for LLM input because it preserves the semantic structure (headings, lists, code blocks, links) while throwing away the presentational noise. A 50KB HTML page that would have cost 12,000 to 15,000 tokens raw typically lands between 1,500 and 2,500 tokens after extraction and Markdown conversion.
For site owners who want to audit how their own pages compress, running a URL through CopyMarkdown produces exactly the kind of clean output an agent would end up with. Developers building their own extraction pipelines for batch ingestion, rather than real-time agent work, will find a deeper treatment in the guide on how to prepare web content for RAG pipelines.
Step 4: Fitting the Content Into the Context Window
Clean Markdown is progress, but it is not the end. The agent still has to fit the content into its context window alongside everything else it is already carrying.
Context windows in 2026 are larger than they used to be, with flagship models typically operating in the 200,000 token class and some Gemini configurations pushing into the one million range. On paper, that sounds like room to spare for a single article. In practice, the window is already partially full before the page arrives.
The agent’s system prompt, tool definitions, prior conversation history, retrieved context from earlier turns, and the current user question all occupy tokens. A long-running chat session can easily spend 30,000 to 60,000 tokens on context unrelated to the current fetch. Adding a full documentation page on top of that is not free, and on usage-based APIs it is measurably expensive.
This is why extraction quality is a cost decision as well as a quality one. Every token of navigation chrome that survives extraction pushes something useful out of the window, or adds to the bill, or both.
When a fetched page is too large to fit comfortably, the agent typically falls back to one of three strategies: summarize the page down to a shorter representation before reasoning over it, chunk the page and retrieve only the chunks most relevant to the user’s question, or selectively quote the sections that look most on-topic. Each strategy introduces its own risk of missing the actual answer, which is why smaller, cleaner, better-structured pages consistently outperform larger ones in practical agent use.
Where Agents Get Stuck
The pipeline above describes the happy path. In the wild, agents fail to read pages all the time, and the failure modes are rarely visible from a site owner’s analytics dashboard.
Cloudflare and anti-bot challenges. An agent arriving at a page protected by Cloudflare Bot Management or a similar service often receives a challenge page instead of content. The response code may be 200 or 403, but the body is an interstitial asking for a browser check. A Readability extractor looking at that HTML finds nothing meaningful. From the user’s perspective, the agent simply reports that the page could not be accessed.
Paywalls and metered access. A paywall that swaps the article body for a “subscribe to continue” prompt leaves an agent extracting the prompt instead of the article. Soft paywalls that load the full content and then cover it with a modal at the JavaScript layer can still be readable by an agent that takes the plain HTML path, but will fail for agents that render through a headless browser and respect the overlay.
Login walls. Content that requires authentication is simply not available to an agent, full stop. There is no mechanism for a real-time fetcher to sign in on a user’s behalf on an arbitrary site.
Geographic blocks. An agent fetcher running from a data center in one region may be blocked from content that a user in another region can read freely. Neither party sees the mismatch directly. The user assumes the agent failed; the agent reports that the content was inaccessible.
Aggressive rate limits. A single real-time fetch should not trip a rate limiter, but shared IP infrastructure means one user’s question can land on an IP that a different user’s earlier question already used. Strict per-IP thresholds designed for old crawler models can silently degrade agent access.
Lazy loading that never triggers. Images, embedded media, and sometimes whole content sections that load only on scroll will not load at all for an agent that never scrolls. The content simply does not exist in the DOM the extractor sees.
Cookie banners that gate the DOM. Pages that inject their real content only after a cookie consent click produce empty extractions for agents that do not click anything. The banner becomes the content, as far as the extractor is concerned.
Each of these failures looks, from the agent’s side, like “the page had nothing useful on it.” The agent reports that to the user, and the page’s owner never hears about it.
What Site Owners Can Do to Be Agent-Legible
The constructive turn of this post is that most of the failures above are fixable, and the fixes align with things site owners already have reason to care about.
Render important content on the server. Progressive enhancement, the practice of delivering working HTML from the server and layering interactivity on top, is the single highest-leverage change a JavaScript-heavy site can make for agent legibility. An agent that sees the article body in the initial HTML response never has to pay the rendering cost, and the page becomes accessible to fetchers that do not escalate to headless browsers at all.
Use semantic HTML landmarks. Wrapping the article body in <main> and <article>, using real heading levels instead of styled <div> elements, and keeping navigation in <nav> elements makes Readability-style extraction nearly deterministic. The extractor does not have to guess where the content starts and stops.
Publish JSON-LD structured data where appropriate. Article schema, Product schema, and FAQ schema all give extractors a parallel track of unambiguous information. When DOM extraction is uncertain, JSON-LD settles the question.
Maintain an llm.txt file. An llm.txt file tells agents which pages on a site actually matter and in what order. It does not solve rendering or extraction problems, but it dramatically reduces the number of wasted fetches an agent has to perform to understand a site’s structure. The background, specification, and design rationale are covered in the llm.txt explainer, and the practical, step-by-step setup lives in the guide on how to create an llm.txt file for your website.
Serve Markdown versions of key pages. The llm.txt specification includes a complementary recommendation: provide a Markdown version of each important page at a predictable URL, usually the original path with .md appended. An agent that finds a Markdown twin can skip extraction entirely and consume the clean version directly, at a fraction of the token cost.
Relax rate limits for known agent user agents. A per-IP rate limit that was sensible when the traffic was Googlebot can be actively harmful when the traffic is Claude-User or ChatGPT-User, because those fetchers do not retry. Allowing a higher rate for documented agent user agents protects access without meaningfully increasing load.
Do not block headless Chromium at the edge. A Cloudflare rule that blocks all headless browser fingerprints will block a meaningful slice of real-time agent traffic. Site owners who do not want to be read by agents can make that choice explicitly in robots.txt, which is the right layer for it. Blocking at the fingerprint layer fails silently and opaquely, and tends to punish legitimate agents while letting determined scrapers through anyway.
These tactics are the technical layer of a broader discipline now called the generative engine optimization stack, which covers how content gets found, read, and cited by AI answer engines like ChatGPT, Perplexity, and Google AI Overviews.
For SEO practitioners sizing up what this means against an existing organic program, the dedicated dimension-by-dimension GEO vs SEO comparison walks through the mechanical differences and the workflow implications without declaring either discipline dead.
A Day in the Life of an Agent Fetch
Putting it all together, a single successful agent read of a single URL looks roughly like this.
A user asks an AI assistant a question that references a specific page. The agent selects the URL and issues an HTTP GET, identifying itself with a real-time user agent like ChatGPT-User or Claude-User. The origin server accepts the request and returns an HTML response, ideally server-rendered and containing the article body in the initial payload.
The agent inspects the response. If the body looks substantial, it skips the rendering step. If it looks empty, it escalates to a headless Chromium instance and waits for the page to finish rendering.
Once the agent has a DOM, it runs a Readability-style extractor to isolate the main content. It reads JSON-LD if present for structured hints about the article. It converts the extracted HTML to Markdown, dropping the boilerplate and preserving the semantic structure.
The agent estimates the token cost of the Markdown. If it fits in the remaining context window, it is passed directly to the model. If it does not fit, the agent summarizes, chunks, or selectively quotes to make room.
The model then generates an answer grounded in the fetched content and returns it to the user, sometimes with a citation pointing back to the original URL. For site owners wondering how to make that citation happen consistently, the process starts with passage structure and evidence the engine can extract.
Total elapsed time: usually under three seconds. Total points of possible failure: at least a dozen. Every one of them is invisible to the user unless the agent decides to mention it, which is why most site owners only notice the problem when their traffic starts quietly shifting toward the sites that got the pipeline right.
See What Your Own Pages Look Like to an Agent
The fastest way to build intuition for all of this is to run a few pages through the same kind of extraction an agent would use, and compare the result to the original.
CopyMarkdown converts any webpage to clean, LLM-ready Markdown in one click. The extracted output is close to what a Readability-based agent fetcher ends up with after its own pipeline runs. Patterns jump out quickly: headings that got lost because they were styled <div> elements instead of real <h2> tags, article bodies that vanished because the content was client-rendered, navigation that bled into the main content because the markup did not clearly separate them.
Once the problems are visible, the fixes are the ones described in the previous section: server-side rendering for important content, semantic HTML, structured data, and a maintained llm.txt file for the pages that matter most. Readers ready for the llm.txt step can start with the llm.txt explainer and then work through the step-by-step creation guide.
Making a website agent-legible is no longer an edge case. It is part of being on the web in 2026.
Related reading: For the operational response to these mechanics, including a sequenced two-week engineering plan, what SaaS teams can actually do about this.
For the repo-side of the same pattern, where coding agents read a markdown instructions file from the project root, see how AI coding agents read CLAUDE.md, AGENTS.md, and GEMINI.md.