> For the complete documentation index, see [llms.txt](https://help.onebot.tech/onebot-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.onebot.tech/onebot-help/scenarii/derevo-scenariev.md).

# Дерево сценариев

Чат-бот может состоять из одного или нескольких сценариев.

С ростом бота появляется много сценариев, в которых трудно ориентироваться. Мы решили эту проблему разработав новый инструмент — **«Дерево сценариев»**.

В нем можно создавать вложенные папки и раскладывать по ним ваши сценарии. Просто перенесите курсором мыши нужный сценарий в нужную папку.

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

У каждого сценария и папки доступно контекстное меню *(при нажатии на иконку троеточия возле названия)*:

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

{% hint style="info" %}
Для быстрого поиска нужного сценария по имени используйте поиск внизу дерева сценариев.
{% endhint %}

Для поиска


---

# 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:

```
GET https://help.onebot.tech/onebot-help/scenarii/derevo-scenariev.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.
