# Фильтр предобработки

"Фильтр предобработки" находится в разделе "Реакции" на главной странице проекта, где перечислены все наши сценарии.

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

<figure><img src="/files/0jMXuQvVUeQFEe01Oy7S" alt=""><figcaption></figcaption></figure>

### Как работает Фильтр предобработки

Фильтр предобработки запускается раньше всех остальных событий и действий. Нужен для предварительной проверки пользователя.

Вы можете добавить любое количество условий: состоит ли человек в определенном списке, какое значение у его переменных, в какую соц.сеть он написал и т.д.

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

Обратите внимание на два специфичных действия внутри реакции: прервать обработку сообщения и продолжить ее.

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

Предположим: если переменная %бан% имеет у пользователя значение «да», то бот сразу прекращает обработку.

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


---

# 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.smartbotpro.ru/scenarii/sobytiya-scenariya/filtr-predobrabotki.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.
