# Переход

> Перед ознакомлением функционала перехода мы рекомендуем прочитать статьи [Цепочка диалога](/sozdanie-scenariev/cepochka-dialoga.md) и [Как работает бот](/sozdanie-scenariev/kak-rabotaet-bot.md)

{% hint style="info" %}
Шаг **"переход"** позволяет перейти из текущего блока сценария в другой блок.
{% endhint %}

Переход необходим, если вы хотите построить нелинейный сценарий диалога с ботом. Например, если вы задаете пользователю какой-то вопрос и от его ответа зависят дальнейшие действия бота. В таком случае вы можете дождаться сообщения от пользователя (шаг [Ждать сообщение](/sozdanie-scenariev/shagi/zhdat-soobshenie.md)), затем сделать группу шагов с условием и, если оно выполнено, использовать переход на следующий блок.

![Настройки шага переход](/files/-M0iCh2GNTZfAh76Jcsk)

В этом шаге вы можете сделать переход на блок, группу шагов или конкретный шаг. Например, вы можете зациклить сценарий, переходя на первый шаг :sunglasses:&#x20;


---

# 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://docs.smartbot-vk.ru/sozdanie-scenariev/shagi/perekhod.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.
