Why your next website should be built for AI agents
You're planning a new website, and everyone talks about AI agents without saying what they change for your pages.
TL;DR Your next website should be built for AI agents, because it now serves two kinds: the ones that build and evolve it, and the ones that visit it on your customers' behalf. Put its code in a repository, its content in a structured model, and declare its actions.
“The best way to predict the future is to invent it.”
— Alan Kay, 1971
It's 11 a.m., and a post from my blog goes live while I'm somewhere else. Nobody clicked “Publish”: an agent took the next draft from the queue, checked that every link responds, made sure no other post already targets the same search, then published all three language versions. My blog now has a colleague with very Swiss punctuality: it turns up at the same time every day, and every so often it refuses to publish.
This isn't a developer's toy. It's a sign that a website no longer has just one kind of user. For twenty years, we designed pages for humans behind a screen, and tools so that other humans could edit them with a mouse. I think 2027 will be the year a good share of that work moves to programs that never see your layout.
So the question is no longer whether to pick a visual builder or code. It's whether your site is something an agent can read, change and use without breaking anything, or a mock-up that only a human hand knows how to handle. The first will save you time for years; the second will cost you some with every change.
What is a website built for AI agents, in practice?
A website built for AI agents is one that programs can evolve and use without guessing: its code lives in a versioned repository, its content in a structured model, and its important actions are clearly declared. It serves two kinds of agent, the one that works on the site and the one that visits it for a customer.
You may already have met the first kind without knowing it. These are tools like Claude Code or Cursor, which write and change code from instructions in plain language. The second is newer: an assistant that opens your site in a browser to book, request a quote or check availability on someone's behalf, without that person ever seeing your pages.
The visual canvas is made for a mouse
Visual website builders were designed for a hand that drags a block, adjusts a margin and sees the result on screen. That's wonderful for a human, and it's exactly what gets in an agent's way: it has no eyes for the canvas. It needs files it can read and change, and that you can review line by line before anything goes live.
I've already explained why I no longer recommend Webflow or WordPress to small businesses; I won't repeat that comparison here. The question isn't which tool is best, but what an agent can do with your site without you losing control.
An agent that guesses ends up wrong
On the visitor side, the problem is the same in reverse. An agent browsing your site has to guess that this blue button opens a quote request and that this field expects an arrival date. Every guess is a chance to get it wrong, and an agent that gets it wrong gives up, or books the wrong date. Three projects settle most of it, in this order:
Put your website in a code repository you own
Keep your website's code in a Git repository in your name, in other words a folder that remembers every version: each change is recorded, dated and reversible. That's what lets an agent work on your site without you losing control over what goes live.
Review every change before it goes live
That's how I work on my own site as well as my clients'. Claude Code proposes a change, I review exactly what changes, and nothing goes live without my approval. If a mistake still slips through, you go back to the previous version with one command, instead of rebuilding from memory whatever got broken.
It's also what drove the migration of the City of Sierre's integration platform to Astro and Sanity this autumn. The site had been running since 2020; it's now easier to maintain with my agents and to put through an SEO audit, and the team publishes its content in an editor it finds simpler.
Separate the content into a structured model
Store your content in a structured CMS, where each type of information has its own fields: a project has a title, a place, a date and images; a price has an amount and a unit. An agent updating forty entries fills in fields; it doesn't touch the layout, because the layout is out of its reach.
Give the agent fields, not pages
That's Sanity's role in my projects. Sanity offers an MCP server (a standard connector that lets an agent act inside a piece of software): the agent reads the schema of your content, creates a draft or fixes an entry, within the limits that schema allows. The posts on this blog are published exactly that way, by an AI automation workflow that stops and sends me its questions as soon as a check fails.
The benefit goes beyond agents, too. A team that publishes news into clear fields can't break the homepage by accident. Whatever protects your site from a clumsy agent also protects it from a rough Monday morning.
Declare the actions your customers' agents will be able to take
List the handful of actions that keep your business running, and make them explicit for a machine: a form where every field says what it expects, a button that says what it does, one page per action. For a small business, the list often fits in four lines:
- request a quote;
- book a slot, a table or a room;
- check availability or a price;
- sign up for an event.
Start with clean HTML: explicit labels, clear error messages, a readable confirmation. That's what agents read first, and it's also what helps a hurried human on their phone. A well-described action serves two visitors with the same work.
Prepare for WebMCP without depending on it
Google and Microsoft are working on WebMCP, a proposed standard that lets a website declare its actions as tools an agent calls directly, instead of clicking blindly. Chrome has been testing it since June 2026 as an origin trial, early access open to volunteer sites. It's promising, and that's exactly why I'm watching it closely.
But it's still experimental. I haven't deployed it for a client yet, and I won't sell you agent traffic that no tool can measure today. Clean forms, on the other hand, pay off tomorrow, with or without a standard, and they'll remain the foundation WebMCP builds on.
A website built for agents is built to be changed
All three projects rest on the same idea: a website is a system you keep evolving, not a mock-up you freeze on launch day. A versioned repository, a content model and declared actions are what let an agent work fast without working carelessly, and let you keep the final say.
Structure first, speed second
That's the foundation of all the web development I deliver now, on Astro and Sanity. Agents aren't magic: they speed up whatever is well organised, and they speed up the mess just as much. Without structure, speed only pushes the problem further down the road.
Let's be honest about the limit: for a small business that edits three texts a year, a site built for agents is a comfort rather than an emergency. The value grows with how often things change, how many languages you run and how many actions your customers take online. If your site rarely changes, keep this post for your next redesign.
Ready to build a website that also works with agents?
None of this requires rebuilding everything tomorrow. A website built for agents is first of all a tidy website: code you own, content in boxes, actions that say what they do. Agents only make that tidiness visible, or its absence.
👉 Want to know whether your website is ready to work with agents? Get in touch