# Интеграция с Сhaindesk

> Документация интеграции с сервисом Chaindesk расположена по-адресу&#x20;
>
> <https://docs.chaindesk.ai/introduction>

## Блок HTTP запрос

{% hint style="info" %}
**Применяется метод POST-запрос**
{% endhint %}

> Http request: <https://api.chaindesk.ai/agents/clsaglahh004wo98i3fxh4738/query>

<figure><img src="https://3336945552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqeuWXwuMesVXyaFvjP%2Fuploads%2F1wbx3FyZiFWh2arwL5nE%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-04-17%20%D0%B2%2021.20.39.png?alt=media&#x26;token=ffad6a7a-cb93-4087-8e2c-391671c3e1ae" alt=""><figcaption><p>Запрос к сервису Сhaindesk</p></figcaption></figure>

<figure><img src="https://3336945552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LqeuWXwuMesVXyaFvjP%2Fuploads%2FLQh0sNgN7GLtyXo51M6J%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-04-17%20%D0%B2%2021.21.05.png?alt=media&#x26;token=d785c722-2ef5-4871-b24a-aa2280d6f08b" alt=""><figcaption><p>Вывод ответа в json переменные</p></figcaption></figure>

#### Json-запрос

```json
{
  "modelName": "gpt_3_5_turbo_16k",
  "maxTokens": 500,
  "presencePenalty": 0,
  "promptTemplate": "{{$вопрос}}",
  "promptType": "raw",
  "query": "{{$вопрос}}",
  "streaming":false 
}
```
