> 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/instrukciya-po-podklyucheniyu-instagram-k-nextbot.md).

# Инструкция по подключению Instagram\* к Nextbot

Нажмите кнопку "Подключить через Instagram" на текущей странице.

<figure><img src="/files/8TRGQbgmaWkJ0NGmPffU" alt=""><figcaption></figcaption></figure>

1. Введите данные для входа в Instagram. Также доступен вариант авторизации через Facebook. Выберите наиболее удобный способ для продолжения.
2. Разрешить доступ Nextbot к данным пользователя

<figure><img src="/files/Xu5GhkPmnZqFtkjxItmg" alt="" width="338"><figcaption></figcaption></figure>

4. Появиться информация "Связь успешно установлена"

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

{% hint style="warning" %}
Важно: в Instagram Direct действует правило 24 часов. ИИ-агент может ответить пользователю только в течение 24 часов после его последнего сообщения. Если пользователь еще не писал в Direct, написать ему первым нельзя. При нарушении этого ограничения возможна ошибка [`INSTAGRAM_SEND_MESSAGE_NOT_ALLOWED_WINDOW`](/questions-answers/errors-description/channels/instagram.md).
{% endhint %}

{% hint style="info" %}
При переподключении Instagram часто помогает сначала удалить Nextbot в списке приложений Instagram, затем отключить интеграцию в Nextbot и подключить канал заново. Это нужно не всегда, но при проблемах с повторной авторизацией такой порядок обычно помогает.
{% endhint %}

<h3 align="center">Бан подключения</h3>

Если канал Instagram работает некорректно или подключение было нарушено, а Instagram продолжает отправлять сообщения, Nextbot после нескольких неудачных попыток обработки временно заблокирует получение запросов (на несколько минут). Для повторного подключения интеграции нажмите кнопку **Разблокировать** на главной странице интеграции.


---

# 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/instrukciya-po-podklyucheniyu-instagram-k-nextbot.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.
