An AI lawyer in the portal: first-pass contract review under Kazakhstan law
The business center network's lawyer has to read every incoming lease and supply contract from scratch, even though most risks are typical. A first-pass review right in the portal was needed, so the lawyer would start from a ready list of risks.
Documents arrive in various formats, including scans; the model's answers had to rely on Kazakhstan law rather than "general knowledge", and the external LLM provider could become unavailable or change.
- Text extraction from PDF, Word and RTF, with an OCR branch for scans
- Splitting the contract into clauses, a topic classifier and a set of rules that find typical risks without the model
- Matching norms from a JSON base of Kazakhstan legal acts by keywords and weights — norms appear in the report with references
- A swappable LLM provider (Anthropic, OpenAI, GigaChat) with a single report contract: the local rule engine always runs, and the model only supplements its output
- A final report: risks, recommendations and references to Kazakhstan legal norms for each clause
Lawyers upload a contract to the portal and get a first-pass report with risks and references to norms; the report is built even without an LLM, and the model only strengthens the review.
Related services and solutions
Bitrix24 D7: boxed development and stabilization
I work not only with interface settings, but at the level of the box, the code and internal APIs.
Business process automation
When employees transfer data manually, reconcile spreadsheets, lose requests or repeat the same actions — I turn the routine into code.