AI Elementor widget builder
An AI Elementor widget builder that keeps agent code off your server
When no installed plugin has the widget a page needs, ask your AI client for one. GoBuildWP Pro saves what the agent describes as data, generates the Elementor widget or Gutenberg block from its own templates, and leaves it switched off until an administrator activates it. The same spec can later ship as a plugin of its own.
Pro 1.15.0, Elementor widgets and server-rendered blocks, Pricing
Representative session. Ability names and behaviour match GoBuildWP Pro 1.15.0; the widget is an example.
The abilities
Draft, read, revise, export
These codegen abilities carry the work. Delete and deactivate also exist and are marked destructive.
codegen-create-widgetSaves an Elementor widget as a draft spec: controls, an HTML template with {{key}} placeholders, and CSS.
codegen-create-blockSaves a server-rendered block the same way; it registers as wppilot-generated/<slug> once activated.
codegen-previewShows the exact PHP and block.json activation would write, with the static checks and whether each file matches what runs.
codegen-update-widgetReplaces a widget spec as a whole. An active widget keeps running its approved version until an admin activates the new one.
codegen-listLists each widget and block as draft, active, pending, broken or orphaned.
codegen-export-pluginPackages active widgets and blocks, and named Code Snippets, as an installable plugin ZIP.
What a spec holds
Data in, generated code out
A request for custom code usually ends with an agent writing PHP that then runs on every page load without anyone reading it. Here the agent only fills in a form: which controls exist, what HTML they feed, what CSS styles it. The plugin owns the code that turns that into a widget, and a template that would put a value somewhere it cannot be escaped is refused when it is saved.
| Part | Detail |
|---|---|
| Widget controls | Text, textarea, number, URL, colour, select, toggle, image and rich text |
| Block controls | The same set without rich text; the shared editor script builds the sidebar from them |
| Template | HTML with {{key}} placeholders and {{#key}}...{{/key}} sections, filtered like post content |
| Escaping | Each value is escaped for where it lands: text, attribute, URL or style |
| Refused at save | Scripts, event handlers, PHP tags, unquoted attributes and text controls placed in href or style |
Limits
Where the builder stops
- The agent cannot activate anything. A widget or block loads only after an administrator activates it in wp-admin.
- Changing an active widget leaves the approved version running, marked pending, until an administrator activates the new revision.
- Deactivating removes the generated files, so pages that use the widget show nothing in its place until it is activated again.
- The export link works once and expires after 15 minutes. The ZIP is capped at 5 MB and is deleted after download or expiry.
- If a generated file changes on disk, the item is marked broken and nothing loads until it is activated again.
From request to running widget
Describe the widget
Name the controls the editor should see and the markup it renders. The agent turns that into a spec with codegen-create-widget.
Read the generated files
codegen-preview returns the exact PHP or block.json activation would write, so a developer can read it before anything loads.
Activate in wp-admin
An administrator activates the draft. Only then does Elementor or the block editor list it.
Export when it should stand alone
Package the active items as a plugin ZIP for a site that will not run GoBuildWP.
Related
Other ways to work on Elementor pages
FAQ
AI widget and block builder questions
Does the AI write PHP that runs on my site?
No. The agent sends a declarative spec of controls, an HTML template and CSS. GoBuildWP Pro generates the widget class, or block.json and the render function, from fixed templates, and no code the agent writes is stored or run.
Can I build a Gutenberg block as well as an Elementor widget?
Yes. The Block Builder takes the same kind of spec and produces a server-rendered block registered as wppilot-generated/<slug>. Block controls cover text, textarea, number, URL, colour, select, toggle and image.
Who approves a generated widget?
A WordPress administrator, in wp-admin. The agent can create, preview, update and list drafts, but no ability activates one. A new revision of an active widget waits for the same approval.
Can I move the widget to a site without GoBuildWP?
Yes. codegen-export-plugin packages the active widgets and blocks as a standalone plugin with its own header. Only code an administrator activated is exported, byte for byte, and the download link works once.
Is this part of the free plugin?
No. The Widget Builder, Block Builder and Plugin Export are GoBuildWP Pro abilities, added in Pro 1.15.0.
Need a widget no plugin ships?
Describe it to your AI client, read the generated files, and activate it yourself when it looks right. Nothing loads before you do.