UYAP Bot Automation: Automating Case File Scanning in Law Firms
Yasin Yıldırım • • 6 min read
Instead of scanning files on UYAP (Turkey’s national judiciary e-filing system) by hand every day, we explain how changes are summarized using background robots that run on the firm’s own authorized session and a queue architecture.
The engineering problem
When lawyers query preliminary proceedings reports (tensip zaptı), enforcement attachment writs and hearing dates on UYAP one by one by hand, it takes considerable time every day and increases the risk of something being overlooked.
The YSNSOFT solution
In KGLEX, worker robots running in the background scan the files at set times using the firm’s authorized session, isolate the changes by comparing them with the previous scan, and present them as a summary on the lawyer’s screen in the morning. The records found by the robot must be checked by the lawyer.
Code excerpt
// KGLEX Queue Worker Consumer (Go / Python)
func (w *UyapWorker) ProcessCaseAudit(ctx context.Context, caseRef *LegalCase) (*AuditReport, error) {
session, err := w.sessionPool.AcquireMTLS(caseRef.BaroNumber)
if err != nil {
return nil, fmt.Errorf("uyap session failed: %w", err)
}
defer w.sessionPool.Release(session)
events := session.FetchNewSafahatEntries(caseRef.FileID, caseRef.LastSyncDate)
return w.diffEngine.GenerateReport(events)
}- #Next.js 16
- #Python
- #Playwright
- #Redis
- #KGLEX
Related project: KGLEX LegalTech AI