> 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/setting-up-agent/limit-rashodov-na-polzovatelya.md).

# Лимит расходов на пользователя

Отключение бота при большом количестве запросов от клиента

<a href="https://app.nextbot.ru/option#spam-protection" class="button secondary">Перейти к блоку «Лимиты»</a>

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FGnssIN3oCOuDdT5MgcIQ%2Fimage.png?alt=media&amp;token=792095bb-e94d-4bcc-97f4-c806110e6bfb" alt=""><figcaption></figcaption></figure>

**Лимит расходов на пользователя** - это функция, которая позволяет установить лимит на количество BotCoin, которые ваш ИИ-агент может потратить на общение с одним пользователем. Если этот лимит будет превышен, агент перестанет отвечать только этому пользователю. Эта опция поможет вам контролировать расходы и избежать ненужных затрат.

В зависимости от того, есть ли у вас ключ в поле 'Свой GPT API-key', расходы будут рассчитываться по-разному. Если вы используете свой ключ от OpenAI, затраты будут отображаться в центах. Если ключа нет, расходы будут указываться в Botcoin на вашем аккаунте.

**Для чего нужна опция:**\
**-** Вам может написать спам бот, к которому подключена нейросеть, и они попадут в бесконечную петлю обмена любезностями\
\- Конкурент может заметить, что вы используете нейросеть и попытаться израсходовать ваш бюджет\
\- Защита от клиентов, которые тратят много ресурсов, задают огромное количество сторонних вопросов, но не переходят к сделке

**При сработке отсечки в** [**диалоговом окне**](https://app.nextbot.ru/chat) **Nextbot, вы увидите сообщение:**

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FCLyZs4pr8VHMQ3YN06bk%2Fimage.png?alt=media&amp;token=dc594d62-6ec4-4966-988d-29ab6fe86f1b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**После того, как сработала защита от спама, Ваш диалог автоматически переходит в режим "Пауза"**
{% endhint %}

### Какой лимит мне необходимо установить?

Проследите, сколько ваш агент тратит боткоинов за один диалог, накиньте запас.\
Или задайте число, которое вписывается в ваш бюджет.

Регулярно проверяйте статистику расходов. Если лимит оказывается слишком низким, вы увидите, что ваш ИИ-агент часто переходит в режим "Пауза", в таком случае увеличьте лимит на один диалог.

Вы всегда можете возобновить работу ИИ-агента, выключив эту опцию или увеличив количество BotCoin.\
Для этого необходимо в ручном режиме снять диалог с "Паузы" в диалоговом окне или это произойдет автоматически, если включить опцию "Возобновить работу бота через N час" в настройках агента.

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2Fx7Iap3hA7QHHdeAIa5QD%2Fimage.png?alt=media&amp;token=2ab71c11-6c84-4244-8066-6e71e78dda2f" alt=""><figcaption></figcaption></figure>


---

# 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://doc.nextbot.ru/functional/setting-up-agent/limit-rashodov-na-polzovatelya.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.
