Skip to content

Releases: georgestephanis/ai-block-creator

AI Block Creator 1.0.0

Choose a tag to compare

@georgestephanis georgestephanis released this 04 Sep 23:19
1bf6da5

Conversational, multi-modal custom block creation inside the WordPress Block Editor, built on the WordPress 7.0+ core AI Client.

Describe a block in the editor — by typing, by voice, or by pasting a screenshot — refine it over a few turns, and insert it. No scaffolding, no leaving the editor.

Highlights

It plans before it builds. Not every "make me a block for X" request should become a block. A first, fast pass classifies the request and tells you what it chose and why, with one click to rebuild it as any of the others:

when you get
Custom block needs its own structure and editable fields a new block in the AI Custom Blocks category
Block style purely about how existing content looks an option in an ordinary block's Styles panel
Block variation a core block already fits, just needs settings a ready-made preset in the inserter
Block pattern an arrangement of several ordinary blocks blocks you insert and then edit normally

So "make pull quotes gold" becomes an option in the Quote block's own Styles panel rather than a bespoke block nobody finds again, and "a hero section with two buttons" becomes a pattern of ordinary blocks.

Schema-validated generation. Requests carry a JSON schema of the shape they expect, which providers supporting structured output enforce. A response that still comes back malformed gets one automatic repair turn. Everything stored is independently validated regardless of what the model returned.

Generated CSS can't escape its block. Styles and variations have their CSS confined to their own class, so an AI-authored style can't restyle the rest of your site. Variations are checked against the target block's own registered attributes, so they can't be saved with settings that would quietly do nothing.

Multi-modal input. Voice dictation via the Web Speech API, and a screenshot dropzone (paste, drag, or upload) when your provider accepts images.

Block Library panel. Insert, refine, or delete anything you've saved.

Requirements

  • WordPress 7.0+
  • PHP 7.4+
  • The ai plugin, with a connector configured under Settings → Connectors — any provider the WordPress AI Client supports, including local servers (LM Studio, Ollama, vLLM)

Permissions

Anyone who can edit posts can generate and preview. Saving to the library requires unfiltered_html (Administrators and Editors by default) — the same trust boundary WordPress applies to raw HTML in post content, since a saved definition is served to every visitor.

Extending

Eight ai_block_creator_* hooks let you override provider detection, request timeouts and model options, schema behaviour, and which blocks the AI may target or build patterns from. See the Hooks section in the README.