ii-agent-soglasovanie-otpusk/scheme.md

43 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```mermaid
flowchart LR
subgraph emp["Сотрудник"]
start(["Запрос в Telegram"])
result(["Статус отпуска"])
end
subgraph ai["ИИ-агент"]
check_kt["Проверка KTWorks"]
check_rules{"Правила:<br/>≤2 чел., дежурный?"}
draft_msg["Черновик с кнопкой"]
write_excel["Обновление Excel"]
notify_hr["Отчёт для HR"]
end
subgraph human["Руководитель"]
decision{"Подтвердить?"}
end
subgraph sys["Системы"]
ktworks["KTWorks"]
excel_file["Excel на диске"]
hr_mail["Почта HR"]
end
start --> check_kt
check_kt --> ktworks
ktworks --> check_rules
check_rules -- "Нарушение" --> result
check_rules -- "Норма" --> draft_msg
draft_msg --> decision
decision -- "Нет" --> result
decision -- "Да" --> write_excel
write_excel --> excel_file
excel_file --> result
write_excel --> notify_hr
notify_hr --> hr_mail
```