# Переход в случае ошибки

{% hint style="info" %}
В шаге "извлечь данные" вы можете настроить переход на другой шаг в случае, если боту не удалось считать данные из сообщения подписчика
{% endhint %}

Например, если пользователь не написал свой телефон, а вы пытались извлечь его из сообщения, то произойдет ошибка. В этом случае лучше всего указать переход по ошибке:

![](/files/-M35R1W4QtV2THHX1CAm)

Хорошим сценарием является повтор шагов в случае ошибки, чтобы все-таки получить нужные данные. Вы можете дополнительно ограничить число таких переходов, например, используя [переменную](/sozdanie-scenariev/peremennye.md) - счетчик попыток.

![](/files/-M35Rl6whlOHzYeY-j_h)

Супер! Теперь вы точно получите важные данные от клиента :ok\_hand:&#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/izvlech-dannye/perekhod-v-sluchae-oshibki.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.
