# How to make your website usable by AI agents

Make your key information readable in plain HTML, use real buttons, links and labelled form fields, add structured data that matches the page, and allow the AI crawlers you want in robots.txt. Keep booking and enquiry flows short and free of tricks. For deeper integrations, publish a documented API. Most of this is the same work that makes a site accessible to people.


## What makes a website usable by AI agents

An AI agent uses your website the way a careful, literal visitor would: it reads the page, finds the information or form it needs, fills it in and submits it. It succeeds when your content is in clear text, your controls are real HTML elements with meaningful labels, and your flows are short and predictable. It fails on information hidden in images, unlabelled custom widgets, surprise pop-ups and multi-step forms that lose their place.

There are two kinds of visit to plan for. Some systems crawl your site to answer questions later, such as search features in AI assistants. Others act on a user's request in real time, for example checking your prices or filling in your booking form for them. Both need readable content; the second also needs usable forms.


## Control which AI crawlers can visit

AI companies use separate user agents for separate jobs, and you can treat them differently in robots.txt. OpenAI's [crawler documentation](https://developers.openai.com/api/docs/bots) lists OAI-SearchBot for surfacing sites in ChatGPT search, GPTBot for content that may be used to train its models, and ChatGPT-User for visits a person triggers by asking a question. It notes that robots.txt rules may not apply to ChatGPT-User, because those visits are user-initiated. Many businesses allow search crawlers while blocking training crawlers, and that is a reasonable default if you want to be found but prefer not to contribute training data.

| Crawler purpose | Example | Typical choice for a business |
|---|---|---|
| AI search answers | OAI-SearchBot | Allow, so you can be cited |
| Model training | GPTBot | Your choice; blocking doesn't affect search visibility |
| User-requested visits | ChatGPT-User | Can't rely on robots.txt; keep pages usable |
| Classic search | Googlebot, Bingbot | Allow |


## Make the content readable


### Use plain, semantic HTML

Agents parse the page structure. MDN's guide to [HTML and accessibility](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Accessibility/HTML) explains why headings, lists, links and buttons should use the correct elements rather than styled divs: assistive technology relies on that meaning, and so do software agents. Put each important fact in text on the page:

- Services and what each includes
- Prices or price ranges, with what affects them
- Hours, service areas and how to book
- Cancellation, refund and warranty policies
- Contact details in text, not only in an image or a script-loaded widget


### Add structured data that matches the page

Google's [introduction to structured data](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data) describes schema.org markup as a standard way to give explicit clues about a page's meaning, such as an organization, a product or a local business. Keep the markup consistent with what visitors can see. Markup that claims things the page doesn't show confuses agents as much as it breaks search guidelines.


### Answer questions directly on the page

Agents often arrive with a narrow question: does this company serve my area, how much does a basic package cost, can I book on a Sunday. Pages that answer those questions in a sentence near the top, then give the detail, are easier to use than pages that open with slogans. A short FAQ on each service page, written in the words customers use, covers many of these questions at once.

Make sure key content is in the HTML the server sends, rather than appearing only after scripts run or a visitor clicks to expand it. Some agents render pages fully and some don't, so server-rendered text is the safest choice. Keep URLs stable, too: an agent following a link from an earlier answer should land on the right page, not a 404.


## Make forms and flows agent-friendly

Booking and enquiry forms are where agents most often get stuck. The fixes are the same ones that help people using screen readers or keyboards, which is why [WCAG 2.2](https://www.w3.org/TR/WCAG22/) is the best checklist available.


### Form checklist

1. Give every field a visible label tied to the input, not just placeholder text.
2. Use the right input types for email, phone and dates.
3. Use real button elements with clear text such as "Request a quote".
4. Show errors in text next to the field, saying what to fix.
5. Keep flows short, and don't clear entered data when there's an error.
6. Avoid surprise pop-ups that block the form.


#### Handle bot protection carefully

Spam protection is necessary, but heavy challenges can block legitimate agents acting for real customers. Prefer server-side spam filtering, rate limits and invisible checks over puzzles on every submission, and offer an alternative contact route such as email or phone. Expect agents to hand control back to the person for sign-ins and payments; keep those steps clear so the handover is smooth.

Test your own site by asking an AI assistant to find your prices and book a service. Where it gets stuck is usually where people get stuck too.


## Go further: llms.txt and APIs

The [llms.txt proposal](https://llmstxt.org/) suggests a Markdown file at your site root that summarizes the site and links to its most useful pages, giving language models a concise starting point. It is a community proposal rather than a formal standard, so treat it as a low-cost addition on top of good pages.

For businesses that take leads or bookings at volume, a documented API lets agents and partner systems submit requests directly instead of driving a form. When we built [LimousineWorldwideServices.com](https://tcomconsultants.com/work/limousine-worldwide-services/), it shipped with an llms.txt file and an OpenAPI-documented lead API alongside its 1,757 pages. An API needs authentication, validation and rate limits, so plan and maintain it as a product in its own right.

If agents will book with you, read [can an AI agent book appointments](https://tcomconsultants.com/blog/ai-agents-booking-appointments/). If you are deciding whether you need a website agent of your own, see [AI chatbot vs AI agent](https://tcomconsultants.com/blog/ai-chatbot-vs-ai-agent/).


## How Tcom can help

We audit sites for agent and accessibility barriers, fix forms and markup, set crawler rules, and build llms.txt files and lead APIs where they make sense. On the other side of the conversation, we build your own assistants through our [AI agents service](https://tcomconsultants.com/services/ai-agents/), from an [AI receptionist](https://tcomconsultants.com/answers/ai-receptionist-for-small-business/) to lead flows tied into our [automation and paid ads work](https://tcomconsultants.com/services/automation-paid-ads/). [Contact us](https://tcomconsultants.com/contact/) for a review of your site.

## Sources

- Overview of OpenAI crawlers (OpenAI API documentation): https://developers.openai.com/api/docs/bots
- HTML: A good basis for accessibility (MDN Web Docs): https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Accessibility/HTML
- Introduction to structured data markup in Google Search (Google Search Central): https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data
- Web Content Accessibility Guidelines (WCAG) 2.2 (W3C): https://www.w3.org/TR/WCAG22/
- The /llms.txt file (llmstxt.org): https://llmstxt.org/

Source: https://tcomconsultants.com/blog/agent-ready-websites/
