Building pages with AI
You talk to your assistant as usual; it decides which tools to use. A typical request:
Create a landing page for our spring sale, with a hero, three feature columns and a call to action. Use the theme’s colors.
What happens
Section titled “What happens”- It reads the site context.
site-contextreturns the theme, page templates and design presets: colors, font sizes, font families, spacing and layout widths. The AI uses those presets instead of inventing values. - It looks at what exists.
list-pagesandget-pageshow the pages and their content;list-blocksandlist-patternsshow which blocks and ready-made patterns it can use;list-mediafinds images in your library. - It saves the page.
save-pagecreates a new page or updates an existing one. - You review it. The result includes an
edit_url: open it to check the page in the editor before publishing.
Drafts by default
Section titled “Drafts by default”New pages are saved as drafts unless the AI sets another status. It can publish only if the connected user is allowed to, and it’s told to publish only when you ask.
No overwritten changes
Section titled “No overwritten changes”To update a page, the AI must send the content_hash it got from get-page (or from its previous save-page). The hash changes whenever the page is saved, so if someone edited the page in the meantime, the update is rejected with content_conflict and the AI reads the page again before retrying.
Blocks only
Section titled “Blocks only”Content must be serialized Gutenberg blocks using blocks registered on your site. Loose HTML and unknown blocks are rejected. The plugin can’t run the editor’s own validation, so open the page in the editor to confirm every block looks right.
- Ask for changes to one section at a time on long pages:
save-pagereplaces the whole page body. - Mention a pattern by name if you want the AI to start from it.
- If the AI shouldn’t change anything, turn off
save-pagein Managing tools.