AI site setup
AI site setup helps you plan custom post types, taxonomies, and optional field groups from a short written brief, then apply the plan to your site. The feature is labeled Beta. You bring your own API keys (BYO).
Open AI site setup
- Go to Divi Engine → Divi Machine.
- Open Tools → AI site setup (badge: Beta).
Direct hash: admin.php?page=divi-engine#divi-machine/ai-setup.
Two tabs:
| Tab | Purpose |
|---|---|
| API keys & model | Store keys, choose connection and model, test the connection |
| AI assistant | Run the five-step wizard |
If no API key is saved yet, the UI opens API keys & model first.
Configure API keys and model
- Open API keys & model.
- Enter an API key for OpenAI or a compatible endpoint (required to run the wizard).
- Choose Connection:
- OpenAI (api.openai.com), or
- Custom compatible endpoint — set API base URL (for example
https://openrouter.ai/api/v1, no trailing slash). The endpoint must supportPOST …/chat/completionswith Bearer auth.
- Pick a model preset (default
gpt-4o-mini) or Custom…. - Optional image keys (only if you want stock photos on sample drafts):
- Unsplash access key
- Pexels API key
- Click Save keys & model, then Test OpenAI connection to verify.
Keys are stored for Machine’s AI tools. They are not returned by public Abilities/discovery APIs.
Run the wizard
Step 1: Describe your site
Enter a brief of at least 20 characters (for example a dealership, directory, or events site). Example chips in the UI can help you start.
Step 2: Custom fields plugin
Choose how field groups should be created:
- Let Divi Machine decide — uses the field provider detected on the site
- Content types only — CPTs and taxonomies only (no field groups)
- A specific active provider: Advanced Custom Fields, Secure Custom Fields, Pods, Meta Box, Toolset Types, or ACPT (only listed when active)
Step 3: Review and adjust
- Click Create suggestion to generate a plan.
- Edit labels, slugs, and fields in the review UI.
- Optionally Regenerate example drafts.
- Open Technical details (for developers) if you need the raw JSON plan.
Step 4: Add to your site
Confirm apply options, then click Add to my site.
Sample post options:
| Option | Behavior |
|---|---|
| Include example draft posts | Creates sample posts (count 1–20, default 5; fixed after the plan is created) |
| Skip creating drafts | Registers content types and fields only |
| Status for new sample posts | Draft or Published in the UI |
| Demo images for sample drafts | Off · Placeholder photos · Stock photos — Unsplash · Stock photos — Pexels |
Step 5: Setup complete
Review the summary and use the admin links (sample posts, field groups) to continue building layouts.
What apply creates
When you apply a plan, Machine can:
- Create Divi Machine post types (skips slugs that already exist)
- Create taxonomies and attach them to those post types
- Create field groups for the chosen provider when the plugin API is available (group titles look like
{Singular} — Fields) - Optionally create sample posts with titles, content, field values, and terms
- Optionally attach demo images (featured image and image/gallery fields)
Apply does not modify an existing custom post type that already uses the same slug.
Limits and beta behavior
- Feature is Beta — review every plan before you apply it.
- Brief must be at least 20 characters.
- Field keys should be lowercase with underscores; avoid WordPress reserved query terms; keys starting with
field_may be auto-prefixed. - Repeater sub-fields are not editable in the simple form—use the technical JSON when needed.
- Linked-post (
post_object) sample values stay empty; some media fields may be omitted from generated sample JSON. - If Unsplash/Pexels mode is selected without a saved key, the UI warns you.
- If the chosen fields plugin API is unavailable, field groups may be skipped (
acf_skipped-style outcome in the summary). - Turn on Enable debug logging under Machine Debug settings if support needs logs from a failed run.
After AI setup
- Open Post Types / Taxonomies under Divi Machine and confirm labels and archives.
- Add real content (or polish the sample drafts).
- Build a custom loop layout and Theme Builder archive/single templates.
- Display fields with Custom Field Item.
WordPress 6.9+ sites may also expose the same AI Site Setup operations through the WordPress Abilities API for agent tooling; day-to-day use is the admin wizard above.
What's Next
- Add/Edit Post Types — Review or create CPTs manually
- Add/Edit Taxonomies — Taxonomy setup
- Custom Field Item — Display field values in Divi 5