> For the complete documentation index, see [llms.txt](https://waba.docs.olchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://waba.docs.olchat.io/roboty-i-aktiviti/roboty-i-aktiviti-biznes-processov/zavershit-dialog.md).

# Завершить диалог

### Настройка робота

Робот «\[Олчат WABA] Закрыть все диалоги в сущности» позволяет в автоматизированном режиме на выбранной стадии закрывать все активные диалоги в сущности.

Для добавления робота необходимо:

{% stepper %}
{% step %}
Перейти в раздел «Роботы» из списка лидов, либо карточки лида в CRM (в системе управления взаимоотношениями с клиентами).

<figure><img src="/files/6bIHgLwUp28mIudpB6Ju" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FnSjRgu4lFhqZHpjexrs" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Добавьте робота.

1. Нажмите «+ Создать».
2. Укажите стадию, на которой должен срабатывать робот.
3. Из списка меню выберите «Другие роботы».
4. Нажмите «Добавить» напротив «\[Олчат WABA] Закрыть все диалоги в сущности».

<figure><img src="/files/eUplJTGsZIWzZJmTgoPR" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Выполните настройку робота.**

Укажите:

1. Очередь срабатывания робота.
2. Время запуска (при необходимости).
3. Условие запуска (при необходимости).

Сохраните настройки.

<figure><img src="/files/37qlGb9C2l99M1BpRqBH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/TnjSzsWAkv68TgQyj1RA" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Настройка робота завершена.
{% endstep %}
{% endstepper %}

### Настройка активити (действия) бизнес-процесса

Для отправки сообщения из бизнес-процесса добавьте действие «\[Олчат WABA] Закрыть все диалоги в сущности». Для этого:

1. В карточке лида выберите «Бизнес-процессы».
2. Нажмите кнопку «Создать».
3. Укажите основные настройки и параметры запуска бизнес-процесса.
4. Нажмите кнопку «Сохранить».
5. В схеме между «Начало» и «Конец» нажмите на треугольник.
6. Из меню выберите «Действия приложений».
7. Добавьте «\[Олчат WABA] Закрыть все диалоги в сущности» из списка.
8. Нажмите на шестерню над наименованием бизнес-процесса, чтобы выполнить настройку параметров действия. Сохраните данные настройки.
9. Сохраните шаблон бизнес-процесса.

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

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


---

# 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://waba.docs.olchat.io/roboty-i-aktiviti/roboty-i-aktiviti-biznes-processov/zavershit-dialog.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.
