Back to all cases

Field-Service Operations Platform for Total Solution Industries

Client:
Total Solution Industries
Industry:
Logistics | Field Service
Country:
United States (Florida)
Duration:
Since April 2026, ongoing
Team:
Senior Python + AI engineer
Stack:
Python, Django, Celery, PostgreSQL, n8n AI agents, OpenAI GPT-5, ElevenLabs voice agent, MobiWork ERP, QuickBooks, Bouncie GPS
Results:
62 n8n workflows moved to one Django platform · ~530 invoice drafts a month, 44% approved automatically · 57% of residents book their own visit · GPS timecards for 10 vans

Total Solution Industries runs a plumbing crew across several Florida cities. Since April 2026 we have built the software that runs its back office. It started as three n8n automations (dispatch, invoicing, payroll) and grew into a Django and Celery platform with an office panel that carries a job from the moment it is offered to the moment it is paid: accepting work, letting residents book their own visit, pricing estimates from a technician's phone call, checking and filing invoices to three systems, and building payroll from van GPS. AI does the reading; code does the money; the office keeps the switches.

Field-service operations platform for Total Solution Industries

THE CHALLENGE

A small office was running a busy field crew by hand, and every job crossed four or five systems.

  • Work goes to the fastest vendor. Most jobs arrive from a property-maintenance platform where many vendors see each offer and the first to accept gets it.
  • Every job touches several systems: the work platform, the MobiWork ERP, QuickBooks, phone and text, and a pricing sheet per region.
  • Scheduling, estimates, invoices and payroll were each typed in by a person, with the errors that brings.
  • One production environment, no staging, and outside APIs that return malformed XML and change without notice.

OUR APPROACH

We started where it was quickest to prove value: n8n workflows for dispatch, invoicing and payroll. They worked, and the business kept adding to them, to dozens of workflows by August 2026. Payroll alone was 17 of them and about 96% of the instance's task-runner time, and one n8n outage lost 3 hours 35 minutes of van GPS.

So between 25 August and 6 September 2026 we moved the scheduled and money-moving work to Django and Celery in five cutovers, with no period of running both. The largest were proven against the n8n output first: the scheduling engine matched on 26 test fixtures byte for byte, and payroll on 53 of 58 stored days. The old workflows were switched off, not deleted, so rollback stayed one click away. n8n still runs what it is good at: the AI chat agents and a few thin connectors that call Django.

FROM OFFER TO BOOKED VISIT

Eligible work offers are accepted in about a second (1,004 ms on average over 272 accepts, with no failed accepts in 1,401 attempts), under a grid of territory and priority switches the office sets. The system then creates the work order in the ERP and sends the resident a link.

  • Residents book their own visit on a web page or by text, with one AI scheduling agent behind both. It offers only real slots from the technicians' hours and live driving times. Over 30 days, 390 of 682 residents (57%) booked themselves, on average 36 minutes after the link.
  • Nobody waits on a broken system. If no one books within a business hour the order goes to the office, and an outage is never shown to a resident as "no availability".
  • The office dispatch assistant uses the same engine. Its searches take 1.9–9.3 seconds on Django, against a p95 of 21.4 seconds when the engine ran in n8n.
  • Return visits have their own tab: reasons, urgency, and one-click rebooking in the ERP and on the platform.

ESTIMATES FROM THE JOB SITE

A technician who finds more work on site phones a voice agent. It confirms the work order, asks the office's scoping questions for that kind of job, and records the answers. The system prices the job, and the office approves it or small jobs file themselves as a proposal on the platform. The technician gets the answer by text, and the approved estimate becomes the invoice.

  • AI picks the items, code does the money. The model matches the work to the regional price sheet; every amount and fee is computed in Python.
  • Priced three times, compared, not voted on. Any disagreement goes to the office. Asking the scoping questions first removed the variance: 0 of 12 test cases changed price.
  • The first live call was priced in 46.7 seconds; the platform approved the proposal 21 seconds after it was filed.

INVOICING THAT CHECKS ITS OWN WORK

Every completed work order becomes an invoice draft, about 530 a month. GPT-5 reads the technician's notes and before-and-after photos and chooses codes from the price book. Python then reads every amount from the price table, drops any code or evidence it cannot verify, and rejects a narrative that mentions money. The model never sees a target total.

  • The office reviews the rest. A draft that passes a fixed list of checks approves itself, at most one every three minutes; from 1 to 13 October that was 108 of 243 approved invoices (44%).
  • One approval, three systems. The invoice is written to the ERP, filed on the work platform and booked in QuickBooks.
  • No double filing. Each write is claimed before it is made and confirmed by reading the other system back, never retried automatically.

PAYROLL FROM VAN GPS

The nightly payroll spreadsheet we first built in n8n was replaced in July 2026 by GPS timecards. OBD-II trackers in the vans report position; the system splits each day into drives, job visits and stops against the day's jobsites, and applies the company's pay rules. The office approves or declines each day on the Payroll tab.

  • Live on 10 vans since July 2026; moved from n8n to Django on 6 September 2026 with a GPS gap of 5 minutes 43 seconds.
  • 1,971,237 GPS positions carried over; on stored days the new engine matched n8n exactly on 53 of 58, and the other 5 were explained.
  • Every rule change is replayed on real days first: the latest ran over 493 technician-days and changed pay on 15.

RESULTS & SCALE

62 n8n workflows replaced by one Django platform and a few AI agents

~530 invoice drafts a month, 44% of approvals automatic

57% of residents book their own visit, in 36 minutes on average

2,380 automated tests and 39 scheduled jobs across 12 Django apps

  • Work offers accepted in about a second, with no failed accepts in 1,401 attempts
  • GPS payroll for 10 vans, approved by the office day by day
  • A Monitor tab that checks every outside service every five minutes and shows what is broken and since when

TECHNICAL DETAILS

Architecture

Django and Celery in two containers, with every job on a clock as a Celery beat entry the office can switch off. n8n keeps the AI chat agents (dispatch, scheduling, text replies) and thin connectors that call Django. A voice agent takes estimates by phone. Deploys run only through CI: four required checks, then gates after the swap (image, release, schema, a model smoke test, a worker round-trip, live content checks) that roll back on their own if any fails.

Technologies used

  • Backend: Python, Django, Celery, Redis, PostgreSQL
  • AI: OpenAI GPT-5 (invoice and estimate pricing), LLM agents in n8n, ElevenLabs voice agent
  • Integrations: MobiWork ERP (XML API), QuickBooks, Twilio, Google Sheets and Maps, Bouncie GPS
  • Operations: GitHub Actions CI/CD with automatic rollback, Sentry, nightly database backups

WHAT WE LEARNED

Let the AI choose and the code count

In invoices, estimates and purchase checks alike, the model picks items or categories and Python computes every dollar. A model can't be made fully repeatable, so the estimate pricer runs three times and sends any disagreement to a person.

A 200 is not proof

Outside systems sometimes accept a request and then do something else. Success is decided by reading the record back, and writes that move money are never retried automatically.

A missing value is not zero

About 8% of GPS fixes arrive without a speed. Treating them as "stopped" changed pay; the engine now infers speed from distance, and the fix was replayed over 922 technician-days before it shipped.

THE OUTCOME

Total Solution Industries runs its work intake, scheduling, estimates, invoicing and payroll on one platform its office controls. Most residents book themselves, almost half of invoices approve themselves, and the office spends its time on the exceptions the system hands it.

The rules are the client's: which jobs to accept, which job types file automatically, which invoices approve themselves. A code change never flips one of those switches, and days the office has signed off are never recomputed.

FREQUENTLY ASKED QUESTIONS

What does the Total Solution Industries platform automate?

A plumbing job from the moment it is offered to the moment it is paid: accepting work offers, letting residents book their own visit, pricing estimates from a technician's phone call, checking and filing invoices to the ERP, the work platform and QuickBooks, and building payroll timecards from van GPS. The office reviews and controls it from one web panel.

Why did the automations move from n8n to Django?

By August 2026 the business ran on dozens of n8n workflows; moving to Django retired 62 of them. Payroll alone was 17 and about 96% of the n8n instance's task-runner time, and one outage lost 3 hours 35 minutes of GPS data. Between 25 August and 6 September 2026 we moved the scheduled and money-moving work to Django and Celery in five cutovers, the largest proven against the n8n output first. n8n still runs the AI chat agents.

How is AI invoice pricing kept accurate?

The model only chooses price-book codes, from the technician's notes and before-and-after photos. Python then reads every amount from the price table and drops any code or evidence it cannot verify. The model never sees a target total, and the office reviews every invoice that does not pass a fixed list of checks.

How do you avoid filing an invoice twice?

Every write that cannot be undone is claimed before it is made and confirmed by reading the other system back afterwards, never by the HTTP status alone. Such writes are never retried automatically; a run that sent but could not confirm stays unconfirmed until a read-only sweep settles it.

Contact

Have a workflow worth automating?

We build accountable AI automation on senior Python engineering, and we'll tell you when not to. See our AI automation services and Python automation services, or get in touch.

Contact us

Get a quote

Have a similar project?

We reply within one business day with the option we would pick in your place, hourly or a fixed price per milestone, and an approximate cost.

PDF, Word, ODT or RTF, up to 2 MB

  1. A reply within one business day
  2. Free scoping callScope, risks, timeline
  3. Your quote in writingAn hourly estimate or a fixed price per milestone
★ 4.8/5 on Clutch Founded 2010 NDA on request

Your details are used only to answer your enquiry and are handled in line with GDPR. We never share them.