# AI in the editor

> The AI helpers in the editor: AI Assist, adding a page from a brief, AI Component, Make it premium, Edit with Claude and suggestions while you edit.

Source: https://docs.personacart.com/editor/ai-assist

In short: {"The AI helpers in the editor: AI Assist, adding a page from a brief, AI Component, Make it premium, Edit with Claude and suggestions while you edit."}

The editor has several AI helpers. Every one of them works on your **draft**: nothing is public until you publish, and Undo takes a change back.

1. Open a page in the editor and press **AI Assist** in the header.
2. Choose **Generate / Modify page** and answer the questions.
3. Check the result on the canvas. Press **Undo** if you do not like it, then publish when happy.

## Where to find it

Sidebar → STOREFRONT → Pages, then open a page. A page opens in **Simple view** or in the full editor, depending on your account (see [Simple view and full editor](/editor#simple-view-and-full-editor)). In the full editor, **Layers** and **Add** are on the left, the canvas is in the middle and the inspector is on the right. The AI tools are in the header and in the **Add** picker.

## AI Assist (header)

Press **AI Assist** in the editor header. It lists:

| Action | What it does |
| --- | --- |
| **Generate / Modify page** | "Structured wizard. Page type, sections, brand. Replaces current page." Opens **Rewrite this page**. |
| **Translate page** | "Auto-translate this page to all 14 supported locales." Marked **Soon**: not available yet. |
| **Suggest changes while I edit** | A switch (on by default, per browser): "Small tips and auto-fixes while you work." Turn it off and on again to bring back tips you hid. |

### Rewrite this page / Add a page

The dialog is ONE screen (same as **Add a page** on Pages):

1. Fill **Page Title** (and **Slug**, optional) when adding a page.
2. In the box, write what you want, or paste a URL or HTML: **Describe what to change, paste a URL, or paste HTML to replace this page…** (when rewriting).
3. Press **Generate page**. A pasted address shows **Import from URL**; pasted code shows **Import HTML**.
4. Or pick one under **Choose from template** and press **Use this template**.
5. Press **Start blank instead** for an empty page.

- Rewriting a page with content asks **Replace this page's content?** Press **Yes, replace**.
- A rewrite is one undo step (one Cmd+Z undoes it all). **Reset to blank** empties the box.

## AI Component

In the Add picker, **Advanced → AI Component** ("Paste HTML, get real sections") rebuilds pasted HTML with PersonaCart blocks. See [Add a section or a block](/editor/add-section-and-templates) for the full steps, including the review table, **Approve** and **Discard**.

## Make it premium

Scans your page and suggests gentle motion you can watch and accept. See [Motion and animations](/editor/motion-and-animations).

## Edit with Claude

**Edit with Claude** (in **More**) opens Claude ready to work on this page; the prompt is also copied so you can paste it in claude.ai. If Claude is not connected to your store, **Connect Claude first** shows your store's connector address and three steps: in Claude open **Customize → Connectors**, choose **Add custom connector** and paste the address, then **Connect** and sign in with PersonaCart. See [Connect AI](/settings/connect-ai).

If an AI assistant, Pie or an import changes the page while you have it open, the editor tells you so and offers **Reload**, or lets you keep your own edits as a new draft. See [When someone else is editing](/editor/someone-else-editing).

## Suggestions while you edit

With **Suggest changes while I edit** on, the editor offers small, safe fixes as questions: **Center this?**, **Match width?**, **Make a list?**, **Align to the edge?**, **Make the columns even?**, **Space these evenly?**, **Use a tidy gap?**. Press **Do it** to accept; nothing happens unless you accept. A **Changed in this session** list shows everything that changed (Added, Removed, Text, Image, Link, Color, Background, Spacing, Size, Alignment, Layout, Visibility, Look).

## CSS helper

Next to any **Custom CSS** box a helper can write CSS from a plain description. Review what it wrote before saving.

:::warning[AI can replace your page]
**Generate / Modify page** replaces the current page. Save a checkpoint first so you can go back. See [Undo, saving and earlier versions](/editor/undo-and-history).
:::

## What happens, and what doesn't

- AI results are a starting point. Every block it makes is an ordinary editable block.
- Imported designs keep their own motion, and AI Component marks sections it could only copy exactly.
- An import can run out of its AI budget; the editor says so ("AI budget for this import is used up") and suggests a smaller batch.

## Questions
