> For the complete documentation index, see [llms.txt](https://vitrina-blogerov.gitbook.io/bloggers-showcase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vitrina-blogerov.gitbook.io/bloggers-showcase/vozmozhnye-oshibki/ai-poisk-ili-ai-konsultant-otvechaet-oshibkoi.md).

# AI-поиск или AI-консультант отвечает ошибкой

Витринный AI-поиск не подбирает блогеров, Telegram-консультант пишет, что AI временно недоступен, или ответы стали слишком общими.

### Симптомы

* AI-поиск на витрине возвращает ошибку;
* Telegram-бот пишет, что AI недоступен;
* бот задает странные вопросы;
* подбор не соответствует базе;
* AI возвращает названия, которых нет в каталоге;
* ответы стали хуже после изменения промпта.

### Вероятные причины

* не указан API key;
* выбран неверный AI-провайдер;
* указана неправильная модель;
* закончился баланс у AI-провайдера;
* внешний AI-сервис временно недоступен;
* промпт был сильно изменен;
* в базе слишком мало подходящих карточек.

### Что проверить

Проверьте настройки AI в админ-панели отдельно для:

* AI-поиска на витрине;
* AI-консультанта в Telegram-боте.

Проверьте логи backend и bot:

```bash
sudo /opt/bloggers_platform/apps/ru/manager.sh logs backend
sudo /opt/bloggers_platform/apps/ru/manager.sh logs bot
```

### Как исправить

1. Проверьте API key.
2. Проверьте провайдера и модель.
3. Убедитесь, что у AI-провайдера есть доступный баланс.
4. Если промпт менялся, верните стандартный через кнопку сброса.
5. Проверьте, что в базе есть карточки, подходящие под запросы клиентов.

{% hint style="success" %}
Для витринного поиска при сбое AI может включаться резервный поиск по базе. Но он не заменяет полноценные AI-настройки и не дает такого же качества подбора.
{% endhint %}

### Когда обращаться в поддержку

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


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://vitrina-blogerov.gitbook.io/bloggers-showcase/vozmozhnye-oshibki/ai-poisk-ili-ai-konsultant-otvechaet-oshibkoi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
