> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor/edit-with-ai.md).

# Edit with AI

The **Edit with AI** feature helps you modify existing XML questions. You can either make quick structural changes or context-aware edits that align with the original questionnaire (QNR).\
\
You can trigger Edit with AI by selecting a specific XML block and then hitting `Cmd + K` or `Ctrl + K` or by clicking the **Generate/Edit** button at the top of the XML Editor

**Quick Edit :** Use this when you want to make fast updates directly to the XML without referencing the questionnaire document.

**Edit (Read QNR) :** Use this when you want edits that are consistent with the source questionnaire.

<figure><img src="/files/mF8wceSotT5xFpILfMem" alt=""><figcaption></figcaption></figure>


---

# 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:

```
GET https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/xml-editor/edit-with-ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
