# Prompt Editor

### Anatomy

| Region                    | What it does                                                    |
| ------------------------- | --------------------------------------------------------------- |
| **Header**                | Slug, folder, owner, model, and temperature controls.           |
| **Variables panel**       | Lists every `{{var}}` and `{var}` token detected in the source. |
| **Source editor**         | Main prompt text area. Cmd+S / Ctrl+S opens the save modal.     |
| **Preview / test runner** | Lets you try sample variables and inspect the rendered prompt.  |

### Save Targets

| Target      | What changes                                       | When to use                                |
| ----------- | -------------------------------------------------- | ------------------------------------------ |
| **Draft**   | Saves work without changing live or staging reads. | Mid-iteration checkpoints.                 |
| **Staging** | Makes the draft visible to `pv_test_` keys.        | Preview environments, CI, teammate review. |
| **Live**    | Publishes the version to `pv_live_` keys.          | Production-ready prompt changes.           |

Draft saves update the current draft during an iteration so normal editing does not create unnecessary version labels.

### Variables

Two syntaxes are supported:

* `{{name}}` - Mustache-style.
* `{name}` - single-brace shorthand.

Names match `[A-Za-z_][A-Za-z0-9_.-]*`. JSON braces, code samples, and unrelated placeholders are left alone.

The SDK extracts the same variable names and returns them on `prompt.variables`. See Variables.

### Keyboard Shortcuts

| Shortcut       | Action                      |
| -------------- | --------------------------- |
| Cmd+D / Ctrl+D | Open save as draft modal.   |
| Cmd+P / Ctrl+P | Open save as live modal.    |
| Cmd+S / Ctrl+S | Open save as staging modal. |
| Esc            | Close any open modal.       |

### Editing Metadata

You can rename the slug, move folders, and update model or temperature from the editor header. These changes appear in Activity.

### Deleting a Prompt

The editor's overflow menu exposes **Delete prompt**. Deleting a prompt removes it from the dashboard and sends a delete event to connected integrations.


---

# Agent Instructions: 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://aiso.gitbook.io/promptvault/documentation/dashboard/interactive-blocks.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.
