> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/mini-course/testing-unpublished-scripts.md).

# Testing unpublished scripts

You can test different changes in the project without fear of breaking existing logic.&#x20;

For example, you have several thousand customers using a bot. You need to make changes, but in a way that doesn't break the current script. For this, there is a draft and a clean draft of the project - the published and unpublished versions.&#x20;

Pay attention to script cards:

![](/files/pW4JKsKSloEQgxkLLHul)

On the notes with yellow dies, the status is written: “not published”, “there are unpublished changes”.&#x20;

Below is written about inclusion in the published and unpublished versions of the project. This is done so that you can test new features of the bot when the previous one is already active.&#x20;

Let's look at an example. I can change the message that the bot sends to the user in response to /star. Previously, the first line was written: "Hello!" I changed those words to "How do you do?"

![](/files/KWnPmHBTdrMYdbwCXXm6)

\
\
If I write /start to the bot, I will see a new message:

![](/files/9B05Wtt7SYq3v42bnk3i)

To understand why this happens, let's look at the project settings. Now everything is clear:

![](/files/aiTx2EcoUHwjt8AvNz88)

Since I am a confirmed bot admin, I communicate with the unpublished version of the project. If you change this setting, the bot will respond to me in the same way as other users. You can also turn off a specific script in the published or unpublished versions:

![](/files/AXQIBAn9mJeCTKI5RcHE)


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.smartbotpro.io/mini-course/testing-unpublished-scripts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
