CodeTree automated job assignment for Fleetline, built a driver app with digital proof of delivery, and added AI document processing that reads delivery slips and posts them to billing. Dispatchers now handle exceptions instead of assigning every job by phone.
About the client
Fleetline runs same-day deliveries for local businesses in North America. Growth had outpaced its processes: dispatchers assigned every job by hand and drivers submitted paper proof of delivery at the end of the day.
Platforms delivered: Driver app, dispatch web console.
The challenge
Manual dispatch
Every job was assigned by phone, which limited how many deliveries the team could handle.
Paper proof of delivery
Slips were scanned and typed in at day end, delaying invoices.
No live status for customers
Customers called for updates the team could not easily give.
Slow billing
Invoices went out days after delivery, which delayed cash flow.
Project goals
- Assign most jobs automatically.
- Digital proof of delivery from drivers.
- Automatic billing from delivery documents.
- Live status updates for customers.
Our approach
We ran the project in clear phases, with a working demo at the end of every sprint and a single project lead accountable for delivery.
| Phase | Duration | What happened |
|---|---|---|
| Automation audit | [X] weeks | Mapping dispatch rules, exceptions and billing steps. |
| Design | [X] weeks | Dispatch console and driver app flows tested with staff and drivers. |
| Build | [X] weeks | Assignment rules, driver app and document processing in sprints. |
| Shadow mode | [X] weeks | Automation suggested assignments while dispatchers confirmed them. |
| Go-live | [X] weeks | Automatic assignment switched on with dispatcher override. |
The solution
Rule-based job assignment
Jobs assign automatically by location, vehicle capacity and time window, with dispatcher override.
Driver app
Route, job details, photos and signatures captured on the phone, working offline.
AI document processing
Delivery slips and receipts are read automatically and posted to billing, with low-confidence cases sent for review.
Customer notifications
Automatic messages when a delivery is assigned, on the way and completed.
Dispatch console
Live map and exception queue for the dispatch team.
Technology stack
| Layer | Technology | Why we chose it |
|---|---|---|
| Driver app | Flutter | Offline-capable app for iOS and Android. |
| Workflows | n8n and custom services | Assignment rules and integrations. |
| Document AI | Large language model API with validation rules | Extracts fields from slips, with human review on exceptions. |
| Backend | Python and Node.js | Dispatch logic and APIs. |
| Database | PostgreSQL | Jobs, drivers and billing data. |
Rollout
Automation ran in shadow mode for [X] weeks, suggesting assignments that dispatchers confirmed. Once accuracy was consistently high, automatic assignment was switched on, with an exception queue for unusual jobs.
Results
- Most jobs assign themselves.
- Proof of delivery is digital and instant.
- Invoices go out shortly after delivery.
- Customers receive live updates without calling.
Lessons learned
- Shadow mode built trust before automation acted on its own.
- Confidence thresholds kept people in control of edge cases.
- Drivers adopted the app faster when it worked offline.
Client feedback
“Dispatch used to be a wall of phone calls. Now most jobs assign themselves and we only step in for exceptions.”
Ryan Cole, Operations Manager, Fleetline
Frequently asked questions
Does the automation replace dispatchers?
No. Dispatchers handle exceptions and can override any assignment.
How accurate is the document processing?
Low-confidence results go to a person for review, so errors are caught before billing.
Does the driver app work without signal?
Yes. It records proof of delivery offline and syncs later.
Planning something similar?
Request a quote and a senior engineer will reply within one business day.