# Controle de Versão

O controle de versão serve para você conseguir editar seu bot sem impactar o usuário final.

Quando você ativa esse controle e publica a versão do bot pela primeira vez, o usuário final sempre vai ter acesso à última versão publicada, ou seja, mesmo que você excluir parte do fluxo do bot, enquanto não publicar a última versão isso só será visível para você.<br>

{% embed url="<https://drive.google.com/file/d/14R6AJXtV1ab9d3GUnL9eXm0ctLNQNVzK/view>" %}

Segue como ativar o controle de versão:<br>

1- No bot em que quer ativar o controle de versão, clique em Editar, depois clique em Versões:<br>

![](https://lh3.googleusercontent.com/uf7VOJtKsTYbrYYl-on3uVeSvC7YkqxhHKPrVY7ft0lCF1hNj0SDTdnMuQXRx_lvslFefXJFa-0sCf--yov0gPDoMJCnyqgvRPCPuo3h9LKcgUDYXLINxPnRpRELcSmb9evH5OUT)

2- Em versões, habilite o botão Usar o Controle de Versões no Bot, e clique em Publicar Nova Versão:

![](https://lh4.googleusercontent.com/ijk3xsVRYYN9wG3jC72v5edHvEN4lADRwy7z54Gj-M6nJcyd0f8nK4a9aVImI9GU0PjKX8yWOEJH__jbSwqMO7pgdeEtAKVzIa-q1RA9olkvdP6p9SLGQj4lemrB0iuakk3l2DDj)

Pronto, o seu bot já está com o controle de versão habilitado.<br>

Para ver quando foi publicada a, última versão e a quantidade de versões publicadas,, é só clicar em editar e depois clicar em Versões:

![](https://lh5.googleusercontent.com/dWy1YMWpyDs_GqVr01KJPZXZRIJaKK1nOYox-iZHbN1MgcPlzQyA-jCxku-VJ6WmU54XWVx4IzMLRH8OF1ohYBWvrr16op9ql5ph82NXjwH_CiirC5bvAoXsrSItDD4vrKz_spVD)

{% hint style="info" %}
OBS:&#x20;

O controle de versão, serve para que as modificações que você faz em seu bot, não atinjam o usuário final sem que você queira,

É indicado para quando você precisar fazer ajustes em bots que estão em produção
{% endhint %}

{% hint style="danger" %}
Uma vez publicada a nova versão, não é possível voltar à versão anterior.
{% 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://help.cosmobots.io/help/bot-builder/criar-o-bot/configuracoes-do-bot/controle-de-versao.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.
