/cases/aulov-consultCase study

aulov consult

Legal help in Telegram: an AI advisor answers legal questions and reads photos of documents, lawyers handle clients in chat, a manager matches each case with the right specialist, and the owner sees everything. This is a demo — message a lawyer, then answer yourself from the lawyer panel.

Project
Telegram bot + Mini App + 3 web panels
Scope
Design, Mini App, AI, chats, panels, server
Timeline
About 7 days
Status
Demo is open — try it out
Year
2026

Fig. 01 — screen recording of the bot, Mini App and panels on iPhone 18 Pro Max: from /start to the reply from the lawyer panel

Try it yourself

Point your phone camera at the code to open the bot.Open the bot with the link below. Ask the AI, message a lawyer, then answer yourself from the lawyer panel: use the /lawyer command.

@aulov_portfolio_2_bot

01Challenge

Legal help where people already are

A delayed salary, a deposit that isn’t returned, a store refusing a warranty claim — people need a quick, clear answer, not a trip to an office. The AI advisor explains the situation right away, at any hour. If the question is complex, a real lawyer is one tap away in the same app.

The service owner needs a system, not just a chat: requests are distributed among lawyers, a manager picks the right specialist for each case, and all conversations, workload and statistics are visible in one panel.

02AI advisor

An answer in seconds — even from a photo of a contract

The text streams in as it’s generated, just like in familiar AI chats. The advisor relies on Russian law, cites specific articles and suggests contacting a lawyer on its own when a lot depends on the answer.

You can send a photo of a contract, a receipt or an official report — the AI reads the document and explains what matters in it. The model is plugged in through settings: GigaChat by Sber or any model via an OpenAI-compatible API. In the demo, GPT-4o answers, and a daily question limit keeps costs in check.

The AI advisor answers a question about a delayed salary: steps to take and Labor Code articles
QuestionThe answer appears as it’s generated
Photo of a rental agreement and the AI’s answer: the deposit is returned within 5 business days
Document photoThe AI reads the contract and finds what matters

03Lawyer

From question to a lawyer’s answer — all in Telegram

In the demo you can go through it from both sides: ask a question as a client and answer it as a lawyer.

A question to a lawyer about an apartment deposit and the demo hint

04Panels

Three panels — one for each role

They open in a browser on a computer or right inside Telegram on a phone. Permissions are checked on the server: a lawyer sees only their own and unassigned requests.

Lawyer panel: a list of requests and a conversation with a contract photo and a PDF demand letter
DEMO

The panels are open to everyone

No password needed: the staff, clients and conversations in them are fictional and can’t be changed. And if you open a panel from the bot, your own requests will appear there too — you can reply to them. Only you can see them.

05What was built

Built end to end: from design to server

  • Python
  • FastAPI
  • aiogram 3
  • PostgreSQL
  • SQLAlchemy
  • WebSocket
  • Telegram Mini Apps
  • GigaChat · GPT-4o
  • Docker
  • Caddy
  1. 01

    Mini App

    AI advisor, personal lawyer, lawyer matching, support and group chats. Photos, videos, documents and voice messages, message replies, pinning and forwarding.

  2. 02

    AI advisor

    Streaming answers, document photo analysis, conversation history and a daily question limit. GigaChat or any model via an OpenAI-compatible API.

  3. 03

    Real-time chats

    Messages, “typing…”, “online” status, unread counters and Telegram notifications when a lawyer replies.

  4. 04

    Staff panels

    Lawyer — own and unassigned requests. Manager — matching and assigning lawyers. Owner — statistics, live feed, staff, broadcasts, required channel subscription.

  5. 05

    Security

    Sign-in via Telegram signature, staff passwords stored only as hashes, role permissions checked on every request, uploaded file validation, limited login attempts.

  6. 06

    Server

    Docker, PostgreSQL with migrations, HTTPS. Demo mode: fictional data, and each visitor’s requests are visible only to that visitor.

/nextYour project

Need a service like this in Telegram?

Tell me what project you need. I reply within 15 minutes during working hours.