# How to manage prompt versions and restore previous versions

ZBrain's prompt manager includes powerful version control capabilities that allow you to track changes, compare different iterations, and restore previous versions when needed. This ensures you can experiment with prompt improvements while maintaining the ability to revert to earlier configurations if necessary.

### **Understanding version history** <a href="#understanding-version-history" id="understanding-version-history"></a>

#### **Accessing version history** <a href="#accessing-version-history" id="accessing-version-history"></a>

* Open the prompt you want to review in the prompt editor
* Click on the circular arrow icon ![image-20250509-021132.png](blob:https://leewayhertz.atlassian.net/bffcf2a8-994b-4032-a4ae-090b9a8d5f31) to access the version history panel, which will appear in the right corner of the interface

#### **Version history panel** <a href="#version-history-panel" id="version-history-panel"></a>

The version history panel displays:

* A chronological list of all saved versions of your prompt
* The date and time each version was created
* The ZBrain user who made the changes
* A blue dot indicator highlighting the current active version

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

Each entry in the version history represents a saved state of your prompt, including:

* The prompt text and instructions
* Model settings and parameters
* Variable configurations
* Role definitions

### **Comparing versions** <a href="#comparing-versions" id="comparing-versions"></a>

The version history feature allows you to:

* See when changes were made to your prompt
* Identify who made specific changes
* Understand the evolution of your prompt over time
* Select different versions to view their complete configuration

This visibility helps teams maintain quality control and provides accountability for prompt modifications, especially in collaborative environments.

### **Restoring previous versions** <a href="#restoring-previous-versions" id="restoring-previous-versions"></a>

If you need to revert to an earlier version of your prompt:

* Review the available versions and their timestamps
* Click on a previous version to preview its configuration
* When you have identified the version you want to restore, click the ‘Restore’ button in the top-right corner

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

### **Important considerations when restoring** <a href="#important-considerations-when-restoring" id="important-considerations-when-restoring"></a>

* Restoring a previous version will replace the current active version
* The restored version will become the new current version
* The system will create a new entry in the version history indicating that a restoration occurred


---

# 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://docs.zbrain.ai/zbrain-documentation/zbrain-builder/prompts/how-to-manage-prompt-versions-and-restore-previous-versions.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.
