All projects

Transportation & Logistics

Cartage

Wilson, the AI logistics agent for shippers

Built Wilson's multi-agent core, the Cartage_1 fine-tuned freight model and model routing, the voice and browser agents, and document AI with invoice audit for Cartage, an AI logistics agent that quotes, books, tracks and pays for freight.

Cartage: Wilson, the AI logistics agent for shippers

1 / 5
Cartage: Wilson, the AI logistics agent for shippers

Cartage: Wilson, the AI logistics agent for shippers

95–99%

Quote fields extracted correctly

92–98%

Messages matched to the right load

95–100%

Billing errors caught before payment

70–90%

Less cost per extraction vs GPT-5

Stack

Microsoft Agent FrameworkAzure OpenAI (GPT-5, gpt-realtime)Cartage_1 (Mistral Small 3.2)vLLMAzure AI Document IntelligenceNestJS / PrismaSvelteKitPostgreSQL + pgvectorAzure Service BusPlaywright / Browser UseStripe TreasuryAzure Container Apps

Overview

Wilson by Cartage is an AI logistics agent that quotes, books, tracks and pays for freight for manufacturers and distributors. It works like a member of the shipping team, with its own email address and phone number, and takes orders by email, text, phone, Teams, Slack or WhatsApp.

The central idea: agents propose; the core decides and executes. A model can be wrong about a rate or a carrier, but it cannot book a load above the limit, pay an invoice with a mismatched line or contact a blocked carrier.

The problem

Most mid-size manufacturers and distributors have no logistics department: one or two coordinators move freight with email, phone, spreadsheets and carrier websites.

  • Too few quotes: rates must be requested from several carriers, chased and compared across emails, PDFs and calls.
  • No tracking for small carriers: many have no tracking API, so coordinators call repeatedly for status.
  • Unchecked invoices: carrier invoices must match the agreed rate before payment.

My role

I worked at Cartage as an AI engineer on Wilson and built four areas of the product: the Wilson agent core; Cartage_1 and the model routing; the voice and browser agents for check calls and tracking; and the document AI with invoice audit and text-to-SQL reporting questions. Cartage's founders set the product direction, and Cartage's logistics experts onboard customers and monitor the actions Wilson takes.

What I built

Wilson agent core

  • An orchestration workflow on Microsoft Agent Framework that matches each inbound message to a load, order or carrier and routes it to specialist agents.
  • Quoting and booking agents that chase carrier rates, rank quotes, negotiate within rate targets and tender the load.
  • A rules and approvals engine for limits, blocked carriers and always-human decisions, with exceptions sent to a person for approval.

Cartage_1 and model routing

  • The training and serving pipeline for Cartage_1, a LoRA fine-tune of Mistral Small 3.2 on freight messages and documents.
  • Cartage_1 handles the high-volume reading; low-confidence or schema-failing outputs go to GPT-5 and feed the next training round.
  • Each agent uses the smallest model that passes its release gate: GPT-5 or GPT-5 mini.

Voice and browser agents

  • A voice service streaming call audio to Azure OpenAI gpt-realtime, with every call summarized and logged on the load.
  • Carrier website tracking: Playwright scripts for known portals and a Browser Use agent for new ones.

Document AI and reporting questions

  • Document AI on Azure AI Document Intelligence, and an invoice audit that holds any invoice whose lines do not match the rate confirmation, BOL and POD.
  • Text-to-SQL questions over a read-only reporting schema.

Results

  • Quote extraction: Cartage_1 extracted quote fields correctly 95–99% of the time.
  • Message matching: 92–98% of incoming messages were linked to the correct load automatically.
  • Approvals: 80–92% of Wilson's proposals were approved without edits.
  • Invoice audit: 95–100% of billing errors caught before payment.
  • Browser tracking: 80–92% success on carrier websites without a ready-made script.
  • Check calls: 70–85% of check calls ended with a confirmed ETA.
  • Model cost: Cartage_1 cost 70–90% less per extraction than GPT-5.

Tech stack

LayerTechnologies
FrontendSvelteKit, TypeScript
BackendNestJS, Prisma, GraphQL, REST, Python
AIMicrosoft Agent Framework, Azure OpenAI (GPT-5, GPT-5 mini, gpt-realtime, text-embedding-3-large), Cartage_1 on vLLM, Azure AI Document Intelligence
ChannelsMicrosoft Graph, Gmail API, Azure Communication Services, Microsoft 365 Agents SDK, Slack Bolt
Data and integrationsPostgreSQL + pgvector, Azure Blob Storage, Azure Service Bus, Stedi EDI, ERP connectors, Stripe Treasury and Connect
Tracking automationPlaywright, Browser Use
InfrastructureAzure Container Apps, Terraform, GitHub Actions

Related case studies