# Настройки для закрытия чат-сессий в Fasttrack

* Откройте раздел \[ Каналы ] → \[ Правила ]

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

* Перейдите в \[ Измененные обращения ]
* Нажмите \[ Добавить правило ]

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

* Заполните поля с настройками

<table><thead><tr><th width="219.13671875">Настройка</th><th>Значение</th></tr></thead><tbody><tr><td>Название правила</td><td>Произвольное название</td></tr><tr><td>Группа правила</td><td>Создать новую + Произвольное название</td></tr><tr><td>Условие</td><td>Чат был перемещен в список обращений</td></tr><tr><td>Действие</td><td><p>Выполнить вебхук методом POST:</p><pre data-overflow="wrap"><code>https://dashboard.fstrk.io/integrations/omnidesk/chats/webhooks/:bot uuid/close_session/
</code></pre><ul><li>:bot uuid – идентификатор вашего проекта в Fasttrack.</li></ul><p><br>Стандартный запрос в формате JSON.<br></p><p>Параметры:</p><ul><li>ID обращения</li><li>ID пользователя</li></ul></td></tr><tr><td></td><td></td></tr></tbody></table>

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

<figure><img src="/files/1HAs3bdVmsvM4eIeWbQc" alt=""><figcaption></figcaption></figure>

* Разместите новое правило выше остальных в списке

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


---

# 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://docs.fstrk.io/knowledge_base/intagrations/omnidesk/nastroiki-dlya-zakrytiya-chat-sessii-v-fasttrack.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.
