> 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/getting-started/kak-nachat/sozdanie-agenta.md).

# Создание агента

В данной инструкции мы разберём создание ИИ-агента, но рассмотрим лишь самое **базовое использование**.

Это важный этап, который позволяет настроить помощника под ваши любые бизнес-задачи.

{% hint style="info" %}
**Подробнее про ИИ-агентов можно узнать** [**тут**](/functional/agents.md)
{% endhint %}

После регистрации, по умолчанию на вашем аккаунте будет один новый ИИ-агент.

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

1. **Зайдём в его** [**настройки**](https://app.nextbot.ru/option)

{% hint style="info" %}
**Подробнее про все настройки ИИ-агента можно узнать** [**тут**](/functional/setting-up-agent.md)
{% endhint %}

2. **Добавим имя агенту и заполним небольшую тестовую инструкцию:**\
   (подробнее про системный промпт можно узнать в [статье](/functional/setting-up-agent/system-prompt.md))

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

3. **Перейдём в** [**окно чата**](https://app.nextbot.ru/chat) **и протестируем нашего бота:**<br>

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

4. **Работает!**

Но откуда он знает о наличии конкретного мяса в нашем магазине? А если спросить его о самовывозе? Или уточнить где находится наш магазин?<br>

5. **Давайте добавим в инструкцию эти данные:**<br>

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

6. **Протестируем новую инструкцию из тестового чата:**\
   Отлично! ИИ-агент опирается на новые знание при ведении диалога.<br>

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

7. **Далее мы вынесем некоторые данные в** [**Справочник**](/getting-started/kak-nachat/napolnenie-bazy-znanii.md)**, чтобы немного разгрузить память ИИ-агента.**

{% hint style="info" %}
После внесения изменений полезно протестировать ИИ-агента заново, для этого можно удалить всю историю переписки и начать заново.

Для этого в окне [**чат**](https://app.nextbot.ru/chat) используйте кнопку **"РЕСТАРТ ДИАЛОГА"** или введите команду **/restart**
{% endhint %}

## Видеоурок: Готовые шаблоны и гайд

Команда Nextbot подготовила видеоурок о шаблонах ИИ-агентов с пошаговым руководством по их внедрению в ваш бизнес.

**Посмотреть на YouTube:** <https://www.youtube.com/watch?v=izW8a2K2GQ0>\
**Посмотреть на Rutube:** <https://rutube.ru/video/8b0b061a15d418bffd8e7de816be7c10/>


---

# 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/getting-started/kak-nachat/sozdanie-agenta.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.
