> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/integrations/instagram/deistvie-pri-nevypolnenii-uslovii.md).

# Действие при невыполнении условий

### Настройки действий при невыполнении условий <a href="#undefined" id="undefined"></a>

Блок **«Настройки действий при невыполнении условий»** определяет, что будет происходить, если сценарий не сработал. Если в этом блоке не добавить действий, по умолчанию пользователю отвечает ИИ-агент.

{% hint style="info" %}
Если действия не добавлены, будет выполнено действие по-умолчанию – ответ ИИ-агента.
{% endhint %}

Например, в сценарии **«Полное совпадение сообщения клиента»** добавлено ключевое слово. Когда клиент отправляет это слово в Instagram Direct или в Instagram пост, в Instagram Stories, выполняются действия из блока **«Настройки действий при выполнении условий»** — например, запускается заранее подготовленная цепочка сообщений.

Если клиент написал в Direct сообщение или оставил комментарий под постом, которое не совпадает ни с одним ключевым словом сценария. В стандартном случае система передаст такое сообщение ИИ-агенту, и он сформирует ответ.

Но нам нужно, чтобы ИИ-агент не отвечал на сообщения без ключевого слова. Вот тут **настраиваем действие при невыполнении условий**, и добавляем действие — например, **«Промолчать»**. В результате на сообщения, которые не совпадают с ключевыми словами сценария, ИИ-агент не будет отправлять ответ.


---

# 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://doc.nextbot.ru/functional/integrations/instagram/deistvie-pri-nevypolnenii-uslovii.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.
