A page generates based on a site user persona, a site description, and the requested URL.
On top of that, I added search that leverages GPT-4 to generate potential article slugs. When a slug is selected, the page is then authored on the fly and cached — so the first visitor triggers the work, and everyone after gets the cached result.
It's the content-authoring half of the just-in-time rendering idea: the site doesn't ship with a fixed set of pages, it grows the pages people actually ask for.