# Автоматизація

## URL

<https://cdn.jsdelivr.net/gh/agentPrivatBank/productsInfo@master/info.js>

## Приклад використання

```
<div id="text" style="width: 300px; border: 1px solid black" align="center">
  <p>
    Інформація продукту productID = 1
  </p>
</div>

<!--ппідключення об'єкту з продуктами порталу-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/agentPrivatBank/productsInfo@master/info.js"></script>

<!--відображуємо блок-->
<script>
  var productID = 1; // указываем ИД продукта для выбора
  var prod = this.item()[productID];
  console.log(prod);

//запонимо блок 
document.getElementById("text").innerHTML = `
  <h2>
  	${prod.name_ua}
  </h2> <br> 
  <img style="width: 300px" src=${prod.img_urls[0]}> <br> 

  <span> 
  	Максимальний ліміт до ${prod.const.limit_max}
  </span> <br> 
  <p> 
  	${prod.description_ua.substr(0, 1).toUpperCase()}${prod.description_ua.substr(1)}
  </p>
`;

</script>
```

## Результат:

![](/files/-Mkk_q1GG1NdyWaBUwOg)

## [Робочий приклад ](https://jsfiddle.net/r2d20095/yz15node/15/)на jsfiddle

Використовуйте **productID = 1** для продукту "Картка «Універсальна»"

Використовуйте **productID = 7** для продукта "Картка «Універсальна Gold»"


---

# Agent Instructions: 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:

```
GET https://agent-agent.gitbook.io/guideline-ua/vstup/avtomatizatsya.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
