> For the complete documentation index, see [llms.txt](https://docs.chatlayer.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatlayer.ai/navigation/history/versions.md).

# Versions

Have you accidentally published a new version of your bot that contains a mistake? You can fix this by rolling back to a previous LIVE version of your bot.

{% hint style="info" %}
Learn more about LIVE and DRAFT environments [here](/publish/publishing-your-bot.md).
{% endhint %}

To go back to a previous LIVE version of your bot:

1. Open your bot and go to the "Publish" menu.

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2FjI6RyTNdCb8A83CmQADr%2Fimage.png?alt=media&amp;token=2c07221d-7c7a-45a0-b3e7-770b8e4d6460" alt=""><figcaption></figcaption></figure>

2. On the right hand side you can see all the LIVE versions you have published in the past.

{% hint style="info" %}
Need a refresher on what versions are and how they're used? Read more [here](/publish/publishing-your-bot.md).
{% endhint %}

If you want to restore an older version, simply click the restore button on that version; the window below will be shown:

<figure><img src="https://2786867680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LLTwFwbOqJj4dDhg8Ju%2Fuploads%2F25M9qZ58msWWdsE1tOEw%2Fimage.png?alt=media&amp;token=c4c60d2f-f777-49cf-ab7c-666587f79e36" alt=""><figcaption></figcaption></figure>

3. You can choose if you either want to:

* make this older version of the bot the new LIVE version that your users will talk to. This will not affect the current DRAFT version.
* load the older version into your DRAFT version, so you can continue working on it. This will not affect the current LIVE version.

{% hint style="warning" %}
Restoring a version to DRAFT means overwriting your current DRAFT version. This cannot be undone.
{% endhint %}

Restoring your bot will:

* Revert the NLP model to the specific version, to ensure a working NLP model.
* Refresh the application so the right version of the blocks & NLP model is displayed to users.
* Not affect the conversation history, analytics & train tab.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.chatlayer.ai/navigation/history/versions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
