← Home

~/projects/visa-docs

Visa Document Automation

An internal system that reads passport and ticket scans with OCR and an LLM, then generates the full document set for a Japanese visa application.

Admin panel home: flights, tickets, hotels, templates and a new bookingGroup screen: travellers and hotels (test data)
Example screens of the admin panelThe data on these screens is mock data, for security reasons.

Overview

Period
Sep 2025 – present
Team
Solo
Status
In production
Responsibilities
  • Requirements
  • Design
  • Backend
  • Frontend
  • Infra & CI/CD
  • Operations
Stack
  • Go
  • React
  • PostgreSQL
  • Python
  • YandexGPT
  • Yandex Vision OCR
  • Docker
  • GitHub Actions
Process
Built with Claude Code in a spec → plan → TDD → review loop.

The problem

Visa paperwork was made by hand from scans: about 60 minutes per traveller. Now it takes 15 minutes, and even a 30-person tour gets all its documents at once, as soon as everyone has filled in the form.

Documents for one traveller, for example

  • Visa application form (2 copies, with photo)
  • Schedule of stay
  • Power of attorney (when submitted by a proxy)
  • Sponsor letter (for minors)
  • Letter for a multiple-entry visa
  • Visa centre application
  • Submission checklist

Depending on the traveller's situation, one person can need about 10 PDF and Word files — and all of them were made by hand.

Visa application form of the Ministry of Foreign Affairs of Japan, page 1
Example: visa application form (source: Ministry of Foreign Affairs of Japan)

Before and now

Before

  1. Travellerfills in a Word form by hand
  2. Staffretypes everything from the scans
  3. ~10 documentsPDF and Word, one at a time

Everything was typed by hand, so one misspelt name or a wrong date was enough for the documents to be rejected — human error could hold up the whole process.

Now

  1. Online formtravellers fill it in themselves
  2. Admin panelstaff only check
  3. AI (OCR + LLM)reads the scans, returns JSON
  4. ~10 ready filesfor the whole group at once

As soon as everyone in the group has filled in the form, the whole set is generated in one go.

Architecture

  1. Browseradmin panel · traveller form
  2. Traefik → nginxTLS · React SPA · /api proxy
  3. Go backendone binary · chi
  • PostgreSQL
  • Yandex CloudAI
  • Pythongenerates DOCX and PDF

A layered monolith with one-way dependencies, shipped as a single binary.

Technical highlights

  • AI only where it is neededRules live in Go code, and the code always has the last word.
  • Failures handled on purposeA failed translation stops generation; a failed declension only warns.
  • Personal data stays at homePersonal data may not leave the country, so Claude and ChatGPT were out: I used YandexGPT and made up for the weaker model with prompting.

Outcome

Today the system is part of everyday work.

Freed from the paperwork, the staff have more time for the tours themselves.

A visa is not part of the tour, but without it the trip never starts, which is why this matters.

3D avatar of Eric Bamba