Case study · Operations software

From spreadsheets to one system: an ERP for a mobile tire service

A web admin for the office, a Telegram bot for the road, and AI wherever someone used to type numbers by hand. Built in six and a half months.

The same Home screen on a laptop and on a phone.
Client
A mobile tire service in Ukraine
Users
The owner and office staff on the web; tire masters in the field via Telegram
Timeline
May – November 2026, shipped to production continuously
Stack
Next.js, PostgreSQL, Telegram Bot API and Mini Apps, Claude and Gemini
Integrations
Monobank and PrivatBank APIs, Binotel telephony, SMS, KeyCRM
6.5 monthsfrom the first commit to a full system
40business modules
85database tables
1,000+automated checks on every push
~140help pages, updated with the code

The business

The company sends vans with tire masters to the client. Some jobs are emergencies: two damaged wheels on a highway, no spare, and the nearest van has to go now. Others are scheduled: seasonal tire swaps at home or at the office, booked by the hour, with peaks every spring and autumn. The vans work in several regions, and each one carries its own stock.

Emergency callouts

A driver is stuck on the highway with no spare, and the nearest van goes now.

Scheduled swaps

Seasonal tire changes at home or at the office, booked by the hour.

The company used to run on a patchwork. Fuel lived in Google Sheets, an older bot covered a few driver tasks, a separate service scored calls, and cash stayed in masters' pockets until someone counted it. None of these tools could say how much a single callout actually earned.

BEFORE
AFTER
Google Sheets: fuel and mileage
An older bot: a few driver tasks
A separate service: call scoring
Cash in masters' pockets
One system
Nobody could say what a single callout earned.
BEFORE
Google Sheets: fuel and mileage
An older bot: a few driver tasks
A separate service: call scoring
Cash in masters' pockets
Nobody could say what a single callout earned.
One system

Two interfaces, one core

Office staff and masters need different tools, but both have to follow the same rules.

Office: web admin

Orders, finance, stock, fleet, payroll, calls and reports. Every screen is designed for the phone first, because the owner runs the business from a phone as often as from a laptop.

Field: Telegram

Masters never open the admin. They work on highways with patchy 2G, so they get a bot and a Mini App with nothing to install and no password.

Both run on the same business modules. The bot has no logic of its own, so a rule change happens in one place.

Web admin
office (laptop and phone)
Telegram bot + Mini App
masters in the field
Business modules
one set of rules
PostgreSQL
INTEGRATIONS
INTEGRATIONS
Monobank & PrivatBank APIs
Binotel telephony
SMS
KeyCRM
Claude (documents)
Gemini (calls)
Web admin
office (laptop and phone)
Telegram bot + Mini App
masters in the field
Business modules
one set of rules
PostgreSQL
INTEGRATIONS
Monobank & PrivatBank APIs
Binotel telephony
SMS
KeyCRM
Claude (documents)
Gemini (calls)

A POS inside a chat

A new order goes to every master on shift in the region with one button, Accept order. The first tap wins, and the message disappears for everyone else. Arrived at client comes next, then Close order, which opens the point-of-sale screen inside Telegram.

The masters' bot: an order is accepted with one tap and closed in the POS; fuel is logged from two photos.
A phone with the Telegram bot: a new order with an Accept order button.1 / 3 · New order
A phone with the Telegram bot: the arrive and close steps.2 / 3 · Arrive and close
A phone with the Telegram bot: a refuel logged from photos.3 / 3 · Refuel from photos
The masters' bot: an order is accepted with one tap and closed in the POS; fuel is logged from two photos.

The POS applies the business rules for the master:

Distance pricing

The first 10 km cost a flat fee, and each extra km adds a fixed rate. The cost side uses the van's real fuel consumption over the last 30 days, so every callout shows its margin.

Split payment

Cash, terminal, card transfer, an invoice to a company and a gift certificate can be combined on one receipt.

Parallel drafts

A master working on three cars keeps three receipts open, and they survive closing Telegram.

No duplicates on a bad connection

Every action carries a request ID, so tapping twice while the network drops still records one receipt, one payment and one stock movement.

Stock follows the van

Goods are written off the van that sold them.

At the end of the shift the master sees revenue, cash on hand and bonus progress. Cash goes to the regional cashbox as a recorded transfer, so there are no envelopes.

The POS inside Telegram: a distance-priced callout, a split payment and the master's shift at a glance.
A phone with the POS Mini App: a receipt with a 14 km callout.1 / 3 · Receipt
A phone with the POS Mini App: a split payment between cash and terminal.2 / 3 · Split payment
A phone with the POS Mini App: the master's shift summary.3 / 3 · Shift summary
The POS inside Telegram: a distance-priced callout, a split payment and the master's shift at a glance.

Money that reconciles itself

Every payment is one record in one ledger, whether it's a sale, a fuel purchase, a salary or a supplier invoice. All reports are built from that ledger.

Banks are connected by API, and that's where the tricky details are. One bank assigns a new transaction ID when a payment settles, so duplicates are caught by date, amount and description instead. Card-terminal money arrives the next morning, between 04:20 and 06:00, with the fee already deducted. A reconciliation tab matches it to the day's receipts and flags any receipt that looks like it was entered twice. The acquiring fee comes from the bank statement and gets its own line in the P&L.

Any number in a report opens the operations behind it, and each operation opens its source: a receipt photo, a bot entry or a bank line.

P&L with drill-down: from a report line to the operations behind it, and on to the source.
P&L with drill-down: from a report line to the operations behind it, and on to the source. Tap the image to open it full size.

Payroll works the same way. Shifts run from 08:00 to 08:00 and keep the pay rates that were in force when they started, and each month closes automatically on the 1st.

AI where people used to type

A number typed by hand on the road is often late or wrong, so the system reads documents instead.

Fuel

From photos of the receipt and the dashboard, the system reads the litres, the price and the odometer. The master only confirms them.

Supplier invoices

Each line is matched to the receiving van's catalog, and the retail price is set by the owner's markup rule.

Garage bills

Costs are split into parts and labour for each vehicle component. The system then flags anything suspicious, such as brake pads replaced too early, a repeat repair within warranty, or labour billed with no part listed.

Insurance policies

These are read too, and reminders go out before a policy expires.

Receiving goods: a photo of the invoice becomes a stock document matched to the van's catalog.
A paper supplier invoice.A phone where the invoice lines are matched to the van's catalog.
Receiving goods: a photo of the invoice becomes a stock document matched to the van's catalog.

Gemini transcribes and scores every answered call. It records the request type, rates five criteria and notes whether the callout was confirmed, and if it wasn't, why. The previous setup marked 77% of calls as "not confirmed" because it also scored routine calls like "where is my master?". Now only new requests are scored, and each lost one goes to a Telegram group with the reason and the recording.

Every call scored by AI; lost requests are reported with a reason.
A Telegram alert about an unconfirmed callout.
Every call scored by AI; lost requests are reported with a reason. Tap the image to open it full size.

A fleet without surprises

Fuel consumption is measured from one fill-up to the next and compared with each van's norm. A van running more than 15% over the norm is marked Check. Mileage is split between kilometres driven on orders and kilometres driven outside them. Maintenance is tracked for each component rather than for the car as a whole, and upcoming service dates show up on the home screen.

Fuel and maintenance: consumption against the norm, mileage on and off orders, questions to the garage.
Fuel and maintenance: consumption against the norm, mileage on and off orders, questions to the garage. Tap the image to open it full size.

Built to grow

The brief was ten times more vans, five new cities and three new modules, all without a rewrite. That brief became four rules:

Regions from day one

Every order, van and cashbox belongs to a region.

Access by checkbox

One registry lists every page and every sensitive action, and the menu and the access checks are built from it.

Help that ships with the code

About 140 help pages sit next to the code, and the "?" button opens the page for the current screen.

Tests on a separate database

More than 1,000 automated checks run after every push and every night, and they can't touch production data.

How it was built

The system was built by one product lead working with Claude Code, an AI coding agent. Over six and a half months that came to 40 modules, 85 database tables and 371 commits. An autonomous worker also takes tasks from Asana and ships them according to a written playbook.

Lessons from production

A Telegram webhook must always answer 200, even when something fails. Otherwise Telegram backs off and the bot goes quiet.

Telegram on iOS won't open phone links inside a Mini App, so every phone number also has a copy button.

In dark mode, Telegram draws a white text cursor on white fields, so every input now sets its own cursor color.

A test cleanup once deleted a real inventory count. Since then, tests delete only the records they created.

The result

The patchwork has been replaced by one system. Every hryvnia can be traced from a report back to its source. Masters never see the admin panel, yet the data they send is clean. Opening a new region now means adding one entry in the settings, with no code to rewrite.

Every hryvnia can be traced from a report back to its source.

All screens shown are mockups with fictional data.

Need a system like this for your business?

Let's talk
Book a free call