> For the complete documentation index, see [llms.txt](https://docs.storylane.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.storylane.io/editing-demos/editing-html-screens/ai-html-editor.md).

# AI HTML Editor

{% @storylane/embed subdomain="app" linkValue="eg754dxjqdfu" url="<https://app.storylane.io/share/eg754dxjqdfu>" %}

***

#### **👉 How it works**

1. Open any HTML demo and click **Edit with AI** to get started
2. **Choose the screen** you want to update — you can target any page in your demo
3. **Select the element** you want to edit or enhance. The AI focuses on exactly what you've selected
4. **Start your conversation with the AI** — describe what you want to change: rewrite copy, adjust tone, swap out text, update colors and spacing, or restyle elements to change how the screen looks. Since HTML demos capture your actual product screens, the AI can edit that content directly — no need to go back to the source. The AI takes it from there.
5. Watch the AI rewrite that element on the spot based on your instruction

***

#### **👉 Apply across screens**

Happy with the result? The changes reflect immediately. If you want the same edit applied across other screens, do it in one click — no need to repeat the process for each screen.

***

#### **👉 Accept or discard**

Review the final output and either **Accept** to lock in the changes, or **Discard** to start over. Full control, every step of the way.<br>

{% hint style="info" %}
If you need help or have any questions, feel free to contact us at <support@storylane.io>.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.storylane.io/editing-demos/editing-html-screens/ai-html-editor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
