Field force SaaS

Kothay

Kothay means “where”. The whole product is one question asked all day long: where is the field team, and did the visit turn into an order.

Role
Full-stack developer
Year
2022 - present
Platforms
Android · Web
Status
Live
Kothay product cover

What it is

Kothay is salesman tracking and field force management software for Bangladesh, published by Kothay Limited. Field staff carry an Android app that records GPS location, check-in and check-out, breaks, shop visits and orders, and works offline where coverage drops. Managers get a web control panel with live maps, geo-fenced zones, attendance and performance reports, order pipelines and sales analytics. Plans start at 199 taka per staff member per month.

Kothay is built for distributors, FMCG brands, pharma sales teams and delivery companies in Bangladesh. A rep signs in on their phone with a number and a PIN, checks in, works a route of shops inside an assigned zone, takes orders against a live product catalogue, and checks out. Their manager watches it happen on a map and reads the day back as attendance, visits, orders and sales.

None of the hard parts were on the manager side. They were a phone in a shirt pocket in Dhaka traffic, a network that comes and goes, a Google Maps bill that grows per view, and territory drawn as polygons over a city where GPS bounces off buildings.

Built With

LaravelPHPMySQLReact NativeTypeScriptGoogle Maps PlatformGeofencingFirebaseOffline sync

Highlights

  • Phone number and PIN sign-in with biometric unlock, because field staff do not have work email addresses.
  • Hundreds of GPS points per staff member per day, each tagged with whether it was captured offline and whether it fell inside the assigned zone.
  • Zones drawn as circles or coordinate-point polygons, with every order and visit resolved against them.
  • Order pipeline from taken to delivered, with line items priced against live inventory and a printable memo.
  • Map views metered per staff in the subscription plan, so map cost is part of the product spec.

Live product

Published by Kothay Limited, Tk 199.00 per staff member per month.

Visit kothay.app

Case study

Building for a phone in a shirt pocket in Dhaka traffic

The brief

Kothay means “where” in Bangla, and the product is that question asked all day: where is the field team, did they reach the shop they were supposed to reach, and did the visit turn into an order. I worked on it as a full-stack developer, across the Laravel API and the React Native app that field staff actually hold.

Every constraint that shaped this product came from the same place. Not the manager reading reports in an office in Dhaka, but a sales rep on a motorbike with a cheap Android phone, patchy coverage, and a hundred shops to cover this week.

The user

The person using it does not have an email address

Most software assumes an email address is free. For a field sales rep in Bangladesh it is not: there is no work account, personal email may not exist, and a forgotten password reset that arrives by email is a support call that ends the working day.

Sign in with a phone number and a PIN, unlock with a fingerprint. No email anywhere in the flow. The manager dashboard behind it is the same data seen from the other end.

So the identity is the phone number, the credential is a PIN, and the convenience is the fingerprint reader the phone already has. Accounts are created by a manager rather than by self-signup, which quietly settles a lot of questions: who owns the account, who can reset it, and what happens when someone leaves. The app runs in Bangla and English, and shop names in the database arrive in both, sometimes in the same list.

The signal

A working day is hundreds of GPS points

The location history for one staff member on one day in the product shows 429 recorded points between a 12:05am check-in and an 8:01pm check-out. Multiply that by a distribution team and the tracking table is the busiest thing in the database, which makes it the first thing to get the design attention.

One day, 429 points. Each one records whether it was captured offline and whether it fell inside the assigned zone, so the trail can be read honestly later.

Two flags on each point do most of the work. One says the point was captured while the phone had no network, which matters because the alternative is a gap in the trail that looks like someone stopped working. The other says the point fell outside the assigned zone. The app keeps recording either way and syncs when coverage returns, so the timeline gets filled in rather than lost.

The thing nobody warns you about is that GPS lies politely. It bounces off buildings, drifts indoors, and reports a rep as fifty metres inside the neighbouring block. So a single point is never evidence of anything. Sequences are.

The zone

A geofence is a claim about the world

Territory in Kothay is a zone, drawn on a map either as a circle or as a polygon of coordinate points, and named after the place it actually is: Motijheel, Uttara Sector 11, Mirpur Shewrapara, a road in Dhaka 1205. Staff are assigned to zones, shops belong to zones, and every visit and every order gets resolved against the boundary.

Zones as circles or coordinate-point polygons. The two badges are the entire point of the feature: order taken from inside the zone, order taken from outside the zone.

Those two badges are where the engineering meets the human problem. “Outside the zone” is a true statement about geometry and a loaded statement about a person. A rep can be legitimately outside their zone: a customer moved, a delivery got reassigned, the boundary was drawn carelessly in the first place. The right design records the fact plainly, shows the manager the coordinates and the time, and stops there. It does not decide guilt in a badge colour.

The unglamorous half is the editor. Someone has to draw twenty-five zones over a city, and they are doing it on a laptop between other jobs, so drawing has to tolerate being wrong: add a point, drag it, delete the shape, confirm before anything is disabled. Zone geometry that is painful to correct becomes zone geometry nobody corrects.

The map bill

Maps are metered, so the plan meters them too

Google Maps Platform bills per load. Kothay sells for 199 taka per staff member per month, which is roughly one and a half US dollars, and that number has to cover hosting, storage, support and the maps. So the subscription plan states the map budget openly: a fixed number of map views per staff per month, a cap on zones, and a cap on coordinate points per zone.

I have not seen many products put a vendor quota on the pricing page, and I came to like it. It turns an invisible cost into a product rule, and it forces the right engineering: do not open an interactive map when a static image answers the question, do not re-render a trail a manager is not looking at, and treat “show me the live map” as a deliberate action rather than a page decoration. The alternative is a beautiful dashboard that loses money on every customer who uses it.

The order

An order is a document that has to survive a bad network

The point of all the tracking is the order. A rep standing in a shop picks products from a catalogue, in the units the trade actually uses, kilograms and pieces, gets a total, and submits. The order then moves through pending, processing, dispatched and delivered, and everyone involved gets a notification and a printable memo with a QR code on it.

Pending, processing, dispatched, delivered. The detail view keeps the awkward truth visible: this order includes a line item the warehouse has zero of.

Two details in that screen took real thought. The first is the stock availability flag: a rep in a shop cannot see the warehouse, so an order can be taken for something that ran out an hour ago. Blocking the order is wrong, because the sale is real and the shopkeeper is standing there. Recording it and flagging it is right, because someone in the office can then decide.

The second is that an order carries where it was taken. Not as surveillance theatre, but because the order and the visit are the same event, and a sales figure that cannot be tied back to a shop and a time is the kind of number that starts arguments nobody can settle.

The measurement

Plan versus actual, and the honesty of numbers

The report a manager reads is a beat plan compared against a day: should visit twelve shops, visited twelve shops, ten orders. That comparison is the most useful thing the product produces, because it is the one number pair that turns tracking into a conversation about workload rather than a conversation about trust.

Should visit twelve, visited twelve, ten orders. Note the durations in the same view: nineteen hours total, eight worked, eleven and a half on break. Raw totals need a human before they mean anything.

That last point is the one I would carry into any product like this. The demo data on the activity screen shows more break time than work time, which is either a rep having an unusual day or a check-out that never happened. Both readings are ordinary. Software that reports durations without letting someone correct the record is not measuring work, it is generating disputes.

In hindsight

What building it taught me

Design for the worst device and the worst network on the team, not the average one. Every decision that looked like a compromise for cheap Android phones and patchy coverage, PIN sign-in, offline capture, static maps instead of live ones, made the product better for everybody, including the manager on office wifi.

Put your metered costs in the product, not in a spreadsheet you check quarterly. And when you build software that watches where people are, write the ambiguity into the data model. A point that knows it was captured offline, and an order that knows it was taken outside the zone, are the difference between a record a person can explain and a number they have to argue with.


Questions

What people ask about Kothay

What is Kothay?
Kothay is salesman tracking and field force management software for Bangladesh, published by Kothay Limited. Field staff use an Android app that records GPS location, check-in and check-out, breaks, shop visits and orders, and keeps working offline where coverage drops. Managers use a web control panel with live maps, geo-fenced zones, attendance and performance reports, order pipelines and sales analytics. Plans start at 199 taka per staff member per month.
Who is Kothay built for?
Distributors and wholesalers, FMCG brands, pharmaceutical sales teams, delivery companies, field service teams and marketing agencies: any business with staff who spend the day away from a desk visiting shops or customers across a territory.
How does Kothay track a salesperson without draining the phone or losing data offline?
The app records GPS points throughout the shift and stores them locally, then syncs when the network returns. Each point carries a flag saying whether it was captured offline, so a gap in coverage shows up as recorded-but-late rather than as a hole in the timeline. A single day for one staff member can hold several hundred points, which is why the tracking table drives most of the data design.
What is a zone in Kothay and how does geofencing work?
A zone is a sales territory drawn on a map, either as a circle or as a polygon of coordinate points, and named after the real place: Motijheel, Uttara Sector 11, Mirpur Shewrapara. Staff and shops are assigned to zones, and every visit and order is resolved against the boundary and labelled as taken from inside or outside the zone. Subscription plans cap the number of zones and the coordinate points per zone.
How do field staff sign in if they have no email address?
With a Bangladeshi phone number and a PIN, plus biometric unlock on phones that support it. Managers create staff accounts from the control panel rather than staff signing themselves up, which keeps account ownership and resets with the business.
Why does the pricing plan limit map views per staff member?
Because Google Maps Platform charges per map load, and at 199 taka per staff per month the map is a real share of the unit cost. Stating a map view quota in the plan makes that cost explicit and pushes the product toward static map images for routine views, keeping interactive live maps for when a manager actually asks for one.

Next product
TimoDesk