Insights / AI and WordPress

Can an AI agent build a page from a block contract?

An early ITC Block Library experiment tested whether a model could turn a brief into structured page content. The result was promising—and the failure was useful.

By Aytac · Experiment notes

The question

What happens when a model is given a documented set of WordPress blocks and asked to turn a site brief into a page? The aim was to check whether the output could follow a known structure and preserve the facts in the brief.

The setup

The first run used 16 briefs and Claude Haiku 4.5. Each brief was submitted once, with no retries, along with the page-building ability description and available block information. The model returned the structured input for the page builder.

A pass required valid JSON, acceptance by the builder, valid structure, the required blocks and facts, and no Custom HTML. Some briefs asked for unsupported features; omitting those features was the expected behavior.

The result and the failure

Fifteen briefs passed the checks. One failed because a hero without a picture included an empty image object that the builder rejected. Another answer contained an HTML-escaped link that happened to work by accident.

Both issues were addressed afterwards. The same saved answers then passed all 16 checks, but that second result is an upper bound: the changes were made after seeing the answers. It is not evidence that a fresh run would score the same way.

What this does—and does not—tell us

A documented contract gives an agent a concrete structure to work with. It also gives the builder a way to reject invalid output. That makes the output easier to inspect, but valid structure is only one part of a useful page.

The checks did not assess the quality of the writing. Models also invented copy to fill gaps, including details not present in a brief. A person must still review factual claims, wording, layout, accessibility, and behavior before publication. The briefs were written by the plugin’s author and resemble problems the library was built to address.

Try the ideas in your own workflow

Give an agent a clear brief, documented components, and explicit instructions for what it must not invent. Treat its output as a draft and make the review step part of the process.

See the illustrative WordPress workflow → · Explore ITC Block Library → · More insights →