> 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/shablony-scenariev-dlya-instagram.md).

# Шаблоны сценариев для Instagram

Шаблоны сценариев помогают быстро добавить готовую логику для работы с Instagram без необходимости создавать сценарий с нуля. После выбора подходящего шаблона сценарий можно легко отредактировать под свои задачи.

### Как добавить шаблон <a href="#undefined" id="undefined"></a>

1. Перейдите во вкладку Сценарий
2. Нажмите кнопку добавления нового сценария **"+Добавить сценарий"**
3. В открывшемся окне **«Добавить сценарий по шаблону» выберете подходящий шаблон**

#### **Доступные шаблоны:**

* **Instagram: Проверка подписки после ответа в комментарии** — группа из двух сценариев: ответ в Direct по ключевым словам в комментариях и проверка подписки в Direct.
* **Instagram: Не отвечать на реакции в Stories** — агент не отправляет ответ, когда клиент ставит реакцию на Stories.

### Редактирование шаблона <a href="#undefined" id="undefined"></a>

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

Подробный разбор шаблонов, условий Instagram и типичных ошибок — в статье [Настройка ответов Instagram-бота](/functional/integrations/instagram/nastroika-otvetov-instagram-bota.md).


---

# 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/shablony-scenariev-dlya-instagram.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.
