> 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/notion/additional-instructions.md).

# Дополнительная инструкция

Важно понимать что GPT для запроса к таблице использует функции, примерно такие же как в разделе "Функции". И иногда надо добавить небольшое дополнение, что бы все заработало идеально. Давайте несколько примеров:

У нас есть магазин матрасов, мы создали таблицу, заполнили её, и вот человек спрашивает матрас за 20тыс рублей. У нас нет такого матраса, GPT обратится в базу, увидит что его нет, и так и скажет клиенту. Но такое поведение не правильно, нам бы хотелось что бы он посмотрел матрасы дешевле и предложил их, если не нашел за указанную цену. Можно так и написать в дополнительной инструкции: Если ты не нашел товар по указанному price, то поищи повторно используя less\_than price (если дороже то greater\_than price).

Другой пример, оставим все тот же магазин матрасов. Допустим у нас часто заканчиваются матрасы в категории пружинных, и мы хотим что бы если GPT не получила товар в указанной категории, то попробовала категорию бес пружинных. Так и напишите: Если ничего не нашлось в category пружинных матрасов, то попробуй category беспружинных. Возможно, вы захотите в этом случае просто исключить сам критерий category из поиска, так и напишите.

{% hint style="info" %}
**Дополнительная инструкция нужна далеко не всегда! Если все работает и без этого, то использовать не стоит!**
{% endhint %}


---

# 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/notion/additional-instructions.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.
