# Backup & Restore

The Backup & Restore features of Xenioo let you backup your chatbot anytime and how many times you want to later restore it, overwriting your current chatbot or creating a new one.

The Xenioo backup format **is self contained** and can be even restored to another account completely different from the one that have created the chatbot originally. Free and premium account can both backup and share their chatbots with other accounts and publish them as their own (provided the features used are [inside their respective plans](https://docs10.xenioo.com/basic-concepts/your-account/the-free-plan)).

Xenioo automatically keeps a version number for all your chatbots. This internal number is updated whenever your change, even slightly, your chatbot and is reflected automatically on your default backup filename. Use this number to quickly check which of your backups are more recent.

{% hint style="warning" %}
If you chose to restore your bot as a new bot, both API Token and API Secret will be changed. The new restore bot will have both these values reset. This also happens automatically if the bot is restored into another account.
{% endhint %}

The following table details all information contained in each Xenioo backup file.

| Information                            | Backup                 |
| -------------------------------------- | ---------------------- |
| Chatbot flow and Design                | Full                   |
| NLP, Intents, Expressions and Entities | Full                   |
| Publishing Information and settings    | No                     |
| Scripts, Integrations and automations  | Full                   |
| Broadcasts                             | Full                   |
| Audiences                              | Filter Definition Only |
| Conversations and Users                | No                     |
| Reports and Statistics                 | No                     |

## Automatic Backup

By adding to your account the [Automatic Backup additional package](https://docs10.xenioo.com/basic-concepts/your-account/additional-packages) you will enable additional backup and restore options.

Automatic Backup will allow Xenioo to automatically create a backup of your chatbot on specific events such as&#x20;

* Before Publishing
* Before deleting a behaviour
* Before deleting an interaction
* Before moving an interaction to another behaviour

These backups can then later be restored in case you wish to revert to a previous version of your chatbot. Backups are kept for definite amount of time, according to [standard retention](https://docs10.xenioo.com/conversations/data-retention).

{% hint style="info" %}
Automatic backup will only store information related to the current bot design, broadcasts, campaigns and NLP training.&#x20;

Database, conversations and any other information is not included in the backup.
{% endhint %}


---

# 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://docs10.xenioo.com/basic-concepts/chatbot-details/backup-and-restore.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.
