AI Website Generator
Describe a website in plain language and let an AI provider you choose draft the sections for you. Jalpi turns the answer into ordinary, editable elements.
The generator is off until an administrator connects an AI provider. It uses your own account and API key with that provider. Jalpi does not supply or resell AI usage.
Privacy: what is sent where
- What you type into the generator (your description and the optional fields) is sent from your server to the AI provider you select. Do not enter confidential information.
- The provider is one of Anthropic (
api.anthropic.com), OpenAI (api.openai.com) or an HTTPS endpoint you choose. Their terms and privacy policies apply. - Nothing is sent until someone clicks Generate Website.
Connecting a provider#
- Go to Jalpi Page Builder → Settings and open the AI Generator tab ("AI Website Generator").
- Choose a Provider, set the Model, and enter your API key.
- Optionally lower Requests per hour, then save.
| Field | Details |
|---|---|
| Provider | Anthropic (Claude) (suggested model claude-sonnet-5-5), OpenAI (suggested model gpt-4o-mini) or OpenAI-compatible endpoint (no suggested model). |
| Model | The model name, letters, numbers and . _ : / -, up to 80 characters. |
| API base URL | Used only for an OpenAI-compatible endpoint. It must be an https:// address on a public host. |
| API key | Leave blank to keep the saved key. Tick "Remove the saved key" to clear it. Keys must be 8 to 300 printable characters. |
| Requests per hour | Per user. Default 10, from 1 to 200. When reached, the user sees "You have reached the hourly AI generation limit. Please try again later." |
How the key is protected#
- The key is encrypted before it is stored, is never sent to the browser, and only its last four characters are kept for display.
- If your server cannot encrypt it, the key is not saved: "The API key could not be encrypted on this server, so it was not saved."
- To keep the key out of the database altogether, define it in
wp-config.php. The constant takes priority over a saved key and the settings screen then says the key is set there:
define( 'JALPI_AI_API_KEY', 'your-api-key' );Generating a website#
- Open a page in the editor. At the bottom of the Elements panel, click the AI button (AI Website Generator).
- Fill in the form:
Field Notes Describe the website Required, up to 2000 characters. Use the "Use an example" link for inspiration. Very short descriptions are rejected: "Please describe the website in a little more detail." Website type Business, Portfolio, Agency, Restaurant, Blog, Ecommerce, Landing Page, SaaS / App, Nonprofit, Education, Real Estate, Healthcare or Other. Brand name, Business description, Preferred colors, Language All optional. - Click Generate Website. This can take a minute.
- Review the result: a preview you can switch between Desktop, Tablet and Mobile, and a list of the sections.
- Choose Add to the end of this page or Replace this page (undo available), then click Apply to page.
If no provider is connected yet, the window shows an Open AI settings link.
What you get#
- Between about six and twelve sections chosen from: hero, features, about, stats, testimonials, pricing, FAQ, call to action, contact, gallery, team, text and footer, in light, dark or brand variants.
- Real Jalpi elements, not a flat image or an embed, so everything can be edited, restyled and moved like any other content.
- Images are placeholders. Replace them with your own in the editor.
- The generated result is checked against an allowlist and cleaned by the same sanitiser as every other save, so the model cannot add scripts or unsupported elements.
Tips
- Treat the output as a first draft. Read and rewrite the copy, since an AI can invent facts.
- Choose Add to the end if the page already has content you want to keep.
- If you replace a page by mistake, use undo, or restore an earlier version from the Revision Timeline.
Who can use it#
By default only administrators (the manage_options capability) can use the generator. The Role Manager adds further conditions: the user also needs access to the editor with permission to edit, and the button only appears for roles that can both add or remove sections and containers and add or remove content elements.
For developers#
| Item | Details |
|---|---|
| Settings option | jalpi_settings_ai. Removed on uninstall, including the encrypted key. |
| Constant | JALPI_AI_API_KEY |
| Filters | jalpi_ai_capability (default manage_options) and jalpi_ai_hourly_limit |
| REST routes | GET /jalpi-page-builder/v1/ai/status and POST /jalpi-page-builder/v1/ai/generate |
Source
Files
includes/class-jalpi-ai-generator.php includes/class-jalpi-ai-blueprint.php admin/editor/src/components/AIGeneratorModal.tsx
Related#
Last updated: November 2026