How to make an AI agent friendly website
The practical changes that help AI agents and AI search read your site, in the order we'd make them, with the checks that tell you they've worked.
Beitrag von
Darren Stewart
You make an AI agent friendly website by letting the right AI crawlers in, putting your main content in the first HTML response, and marking it up so a machine can tell what each page is. Then add an llms.txt file, keep pages stable and test the result with Lighthouse and a real agent.
An AI agent friendly website is one that ChatGPT, Claude, Gemini and browsing agents can fetch, read and act on without guessing. The llms.txt proposal puts it plainly: a coding agent fetches documentation to get an API call right, and a chat assistant with search reads pages to answer questions about a product (llms.txt, 2026). For a B2B SaaS company, those pages are your product, pricing and docs.
This how-to is part of our guide to agentic marketing for B2B SaaS and covers who can read your site. Running the site with agents is covered in what an agentic website is.
What do you need before you start?
You need access to the files and settings that decide what a machine sees, plus two free tools to check the result.
- Your robots.txt file, and the bot or firewall settings in your CDN or host.
- A developer, or CMS access that lets you change templates as well as page copy.
- Google Search Console, verified for the site, to spot crawling and indexing problems.
- Chrome with Lighthouse, which now has an Agentic Browsing category.
- An AI assistant that can browse, such as ChatGPT or Claude, for the final test.
How do you build an AI agent friendly website, step by step?
An AI agent friendly website comes from eight changes, made in order: access first, then content, then structure, then testing. There's little point marking up pages that a crawler is blocked from fetching.
1. Check which AI crawlers you let in
Open robots.txt and look for rules that name AI crawlers, then check your CDN's bot settings. Google puts allowing crawling in robots.txt and in any CDN or hosting setup first on its list of SEO basics for its AI features (Google Search Central, 2025).
Each AI company runs more than one bot, and each does a different job. OpenAI says OAI-SearchBot decides whether a site shows in ChatGPT search answers, while GPTBot is for model training, and each setting is independent (OpenAI, 2026). Anthropic runs ClaudeBot for training, Claude-SearchBot for search and Claude-User for fetches a person asks for (Anthropic, 2026). Decide on training and search separately, and write a rule for each bot.
2. Serve your main content in the first HTML response
View the page source, not the rendered page, and check that your headings, body copy, prices and navigation are in it. Vercel's crawler research found that none of the major AI crawlers it tested rendered JavaScript, including OpenAI's and Anthropic's, and it recommends server-rendering main content, meta information and navigation (Vercel, 2024).
If your pricing table only appears after a script runs, an agent reading the raw HTML gets an empty page.
3. Put the answer in plain text near the top
Write each page so its main point appears in text, early, in a sentence that still makes sense on its own. Google's guidance for AI features includes “making sure that important content is available in textual form” (Google Search Central, 2025).
That rules out key facts living only in images, PDFs, video or a chat widget. Our guide to AI search for B2B SaaS covers how to write pages that get cited.
4. Use semantic HTML and labelled controls
Use real headings in order, real lists, real tables and buttons with names. Chrome's Lighthouse team says agents “rely on the accessibility tree as their primary data model”, and its agentic checks test that every interactive element has a programmatic name and that roles are valid (Chrome for Developers, 2026).
That makes it the same work as accessibility. A demo form an agent can't fill in is usually one a screen reader user can't fill in either.
5. Add structured data that matches the page
Mark up each page type with schema.org structured data: Organization on the homepage, SoftwareApplication or Product on product pages, Article on posts and FAQPage where the questions are visible. Google recommends JSON-LD as the format and says structured data should match the visible text on the page (Google Search Central, 2025).
If the schema says one price and the page says another, a machine can't tell which to trust.
6. Publish an llms.txt file
Add a Markdown file at /llms.txt that tells agents what your site is and where the useful pages are. The llms.txt proposal asks for an H1 with the site's name (the only required part), a short summary in a blockquote, then sections under H2 headings that list links with a note on each (llms.txt, 2026). It also suggests a clean Markdown version of key pages at the same address with .md added.
Keep it short and curated. SaaS Hackers publishes one, built from its content, with sections for the directory and review methodology, the top lists, the guides, the handbook and the templates.
7. Keep links crawlable and pages stable
Link important pages from your navigation and from each other with normal anchor links. Google names internal links as one of the SEO basics that still apply to its AI features (Google Search Central, 2025).
Watch layout shift too. Lighthouse says shifts from ads, images without dimensions or injected content “can move elements between the time an agent identifies them and the time it attempts an interaction” (Chrome for Developers, 2026).
8. Test with Lighthouse and a real agent
Run Lighthouse in Chrome and open the Agentic Browsing category. It shows a ratio of checks passed rather than a score out of 100, and covers WebMCP, the accessibility tree, layout shift and llms.txt (Chrome for Developers, 2026).
Then ask ChatGPT or Claude to read a page and answer a buyer's question, such as what a plan includes. The llms.txt proposal suggests the same test for that file: give an agent only the llms.txt and see whether it can answer (llms.txt, 2026). Fix whatever it gets wrong and run it again.
What mistakes stop AI agents reading a site?
Most AI reading problems come from settings nobody checked. These four come up most.
- Blocking every AI bot with one rule. A rule aimed at training also catches the search bots. Disallowing GPTBot while allowing OAI-SearchBot tells OpenAI not to train on your content and keeps you eligible for ChatGPT search (OpenAI, 2026).
- Treating llms.txt as a Google ranking factor. Google says a page needs to be indexed and eligible for a snippet to appear in AI Overviews or AI Mode, and “there are no additional technical requirements” (Google Search Central, 2025). Lighthouse marks a missing llms.txt as not applicable, as the file is optional for now (Chrome for Developers, 2026).
- Hiding the important part. Prices behind a “Contact us” form, features in tabs that load on click and answers only in a demo video are all invisible to a crawler that reads the raw HTML.
- Fixing the site and ignoring the rest of the web. Being readable is the entry ticket. Getting named in answers also depends on what other sites say about you, which our post on getting recommended by ChatGPT covers.
If you'd rather hand this to a specialist, see ranked GEO agencies that do AI search work for B2B SaaS companies.
FAQs: AI agent friendly websites
What is an AI agent friendly website?
An AI agent friendly website is one that AI crawlers and browsing agents can fetch, read and act on reliably. Its robots.txt and CDN let the right bots in, its main content is in the first HTML response, its markup is semantic and labelled, and its structured data matches what the page actually says.
Do I need an llms.txt file?
You don't need one to appear in Google's AI Overviews or AI Mode, as Google says there are no extra technical requirements beyond normal indexing. An llms.txt file helps agents that look for it find your key pages quickly, and Lighthouse now checks for one. It's a small job, so most B2B SaaS sites should add it.
Should I block GPTBot and ClaudeBot?
That depends on whether you want your content used to train AI models. OpenAI and Anthropic both run separate bots for training and for search, so you can block GPTBot and ClaudeBot for training while allowing OAI-SearchBot and Claude-SearchBot. Blocking the search bots can keep your pages out of ChatGPT and Claude answers.
Über SaaS Hackers
SaaS Hackers is a community of B2B SaaS specialists sharing hands-on insights, built by the marketers, strategists and builders behind the growth. Its directory lists agencies and individual experts with B2B SaaS experience, scored with a published review methodology, and its guides and blog share practical advice from people who've done the work.
Beitrag von
Darren Stewart


