Title: DraftPilot AI Site Editor
Author: simbe1
Published: <strong>2026 年 8 月 15 日</strong>
Last modified: 2026 年 8 月 15 日

---

搜索插件

![](https://ps.w.org/draftpilot-ai-site-editor/assets/banner-772x250.png?rev=3648954)

![](https://ps.w.org/draftpilot-ai-site-editor/assets/icon-256x256.png?rev=3649956)

# DraftPilot AI Site Editor

 作者：[simbe1](https://profiles.wordpress.org/simbe1/)

[下载](https://downloads.wordpress.org/plugin/draftpilot-ai-site-editor.1.3.0.zip)

 * [详情](https://cn.wordpress.org/plugins/draftpilot-ai-site-editor/#description)
 * [评价](https://cn.wordpress.org/plugins/draftpilot-ai-site-editor/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/draftpilot-ai-site-editor/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/draftpilot-ai-site-editor/#developers)

 [支持](https://wordpress.org/support/plugin/draftpilot-ai-site-editor/)

## 描述

DraftPilot AI Site Editor turns one sentence about your business into a complete,
editable website.

Write a short brief (“A family-run plumbing company in Austin offering repairs, 
installation and 24/7 emergency service”) and the plugin will:

 * Plan 3–6 pages (Home, Services, About, Contact, and more) that make sense for
   the business.
 * Write specific, believable copy for every section.
 * Apply a cohesive color palette and font pairing.
 * Create every page as a draft, then wire up a navigation menu and set the front
   page.
 * Let you refine any page in the block editor, or add a whole new section with 
   one sentence.

**Built on the WordPress core AI Client.** DraftPilot AI Site Editor uses the core
AI Client introduced in WordPress 7.0, so the plugin never stores API keys or provider
credentials. Install an AI provider plugin of your choice and connect it under **
Settings  Connectors** — the core AI Client handles models, keys, and billing.

**Safe by design.**

 * **Block registry** — the AI may only emit a whitelist of block types (core blocks
   + 8 DraftPilot designer blocks). Everything is validated before it is saved; 
   nothing raw from the LLM reaches the database.
 * **No prompt injection** — page content generated by the AI is stored as data (
   JSON block attributes), never executed as code.
 * **Sanitized output** — design tokens are validated against an allowlist before
   they are output as inline CSS, and all admin/editor scripts are properly enqueued.

### REST API

All endpoints live under `/wp-json/draftpilot-ai/v1` and require `manage_options`:

 * `POST /generate-site` `{ "brief": "..." }`  create a generation job
 * `GET /job/{id}`  poll job status
 * `POST /add-section` `{ "page_id": 4, "prompt": "..." }`  append AI blocks to 
   a page
 * `GET /pages`  list generated pages
 * `POST /pages/delete-all`  permanently delete generated pages
 * `POST /pages/trash` `{ "page_id": 4 }`  trash one page
 * `GET /nav-menu`  list menus
 * `POST /nav-menu` `{ "page_ids": [4,5], "name": "DraftPilot Site", "location":"
   primary" }`  create or update a menu

### Privacy

DraftPilot AI transmits data to the AI provider you connect. Review how your provider
handles your data before generating.

 * **Data you send.** The business brief you type, your site name and description,
   and the content generated from them are sent to the AI provider connected under**
   Settings  Connectors** using the WordPress core AI Client. The plugin does not
   transmit anything to the plugin author.
 * **What is stored.** Plugin settings (creativity level, site slug) and your generated
   pages. No API keys or provider credentials are stored by the plugin.
 * **Full text.** See the **Privacy** tab in the DraftPilot AI admin for the complete
   Terms of Service, Privacy Policy, and data provider list.

## 屏幕截图

[[

[[

[[

[[

[[

[[

[[

## 安装

 1. Requires WordPress 7.0 or newer.
 2. Upload and activate the plugin.
 3. Install an AI provider plugin and connect it under **Settings  Connectors** (e.
    g. a provider for OpenAI, Google, or Anthropic).
 4. Open **DraftPilot AI** in the admin menu, describe your business, and click **Generate
    site**.

## 常见问题

### Do I need my own API key?

The plugin does not store API keys. Connect an AI provider under **Settings  Connectors**;
the provider plugin manages credentials and any associated costs.

### Which AI models does it use?

The model is chosen by whichever provider you connect through the WordPress core
AI Client. The plugin is provider-agnostic.

### Does it work on WordPress 6.x?

No — this version requires WordPress 7.0 or newer, because it uses the core AI Client(`
wp_ai_client_prompt()`).

### Where are generated pages stored?

Generated pages are normal WordPress pages, created as drafts. They are tagged with
a `_simbe_ai_generated` meta flag so the plugin can list, trash, or delete them.
Nothing is sent to any third-party server except the AI provider you connected.

## 评价

此插件暂无评价。

## 贡献者及开发者

「DraftPilot AI Site Editor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ simbe1 ](https://profiles.wordpress.org/simbe1/)

[帮助将「DraftPilot AI Site Editor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/draftpilot-ai-site-editor)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/draftpilot-ai-site-editor/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/draftpilot-ai-site-editor/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/draftpilot-ai-site-editor/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/draftpilot-ai-site-editor/)。

## 更新日志

#### 1.3.0

 * Renamed the plugin to **DraftPilot AI Site Editor**.
 * Migrated all AI calls to the WordPress core AI Client (`wp_ai_client_prompt()`);
   provider credentials are now managed by core **Settings  Connectors**.
 * Replaced inline `<script>` in the admin with enqueued JavaScript.
 * Sanitized and escaped all inline design CSS (colors, fonts, radii are allowlisted).
 * Added a changelog and privacy documentation.

#### 1.2.0

 * Added a Privacy tab (Terms of Service, Privacy Policy, Data Providers) and readme
   privacy section.
 * Added `uninstall.php` so all plugin data is removed on uninstall.
 * Added a version badge and this changelog.

#### 1.1.0

 * Added an “Add section” sidebar panel for the block editor.
 * Added block registry validation and JSON-safe generation.

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**1 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 7.0 或更高版本 **
 *  已测试的最高版本为 **7.0.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/draftpilot-ai-site-editor/)
 * 标签
 * [AI](https://cn.wordpress.org/plugins/tags/ai/)[blocks](https://cn.wordpress.org/plugins/tags/blocks/)
   [pages](https://cn.wordpress.org/plugins/tags/pages/)[website builder](https://cn.wordpress.org/plugins/tags/website-builder/)
 *  [高级视图](https://cn.wordpress.org/plugins/draftpilot-ai-site-editor/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/draftpilot-ai-site-editor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/draftpilot-ai-site-editor/reviews/)

## 贡献者

 *   [ simbe1 ](https://profiles.wordpress.org/simbe1/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/draftpilot-ai-site-editor/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/HBesim)