AI for Trucking, Fleet & Freight
Capable · M5 · lesson 5 of 22 · queued
Preview — browse every lesson free. Enroll to mark lessons complete, open partner links and save your progress. Login & enroll →
AI-Assisted Invoicing and Settlement Drafting
📖
now learning

AI-Assisted Invoicing and Settlement Drafting

15 min

On a Thursday afternoon at a 22-truck dry-van carrier in central Indiana, the office manager named Deb pulled up the week's settlement run. She had 18 loads to settle and 14 drivers waiting on their pay. She had used the carrier's new AI drafting tool to batch-generate settlement sheets and invoices from a list of completed loads she'd typed out from memory and the dispatch board. It took 11 minutes to generate all 18. On Friday morning, the phone started ringing. Driver Carla said her settlement was short $147. Driver Marcus said he was charged a $120 fuel advance he never received. The broker for load 2841 disputed the invoice because the mileage was 48 miles more than what the rate confirmation showed. Three invoices had the wrong shipper name from copy-paste errors in the input list. Deb spent Friday and most of Saturday correcting, resending, and explaining. The time she saved on Thursday was spent threefold on the weekend. The lesson was not that AI cannot help with invoicing and settlement. The lesson was that AI is only as accurate as the data it is given, and invoicing is exactly the domain where the cost of an inaccurate draft reaches the driver's pocket and the carrier's cash flow simultaneously.

Why Invoicing and Settlement Are Different from Other Back-Office Tasks

Most back-office AI tasks in a carrier operation are either customer-facing communications, where an error can be corrected before it does lasting damage, or internal planning documents, where the human reviews before committing. Invoicing and settlement are different in a critical way: they are financial instruments that flow out of the carrier in two directions simultaneously. The freight invoice goes to the shipper or broker and determines when and how much the carrier gets paid. The driver settlement goes to the driver and determines how much of that payment the driver receives, along with the deductions, fuel advances, and per-diem payments that affect the driver's relationship with the carrier.

Both documents are highly consequential and highly fraud-sensitive. A freight invoice with the wrong mileage, the wrong rate, a missing accessorial charge, or an incorrect shipper name can be disputed, delayed in payment, or rejected entirely. A driver settlement with the wrong base pay, an incorrect fuel advance deduction, a missing stop-off payment, or an error in the percentage split creates distrust between the driver and the carrier and, if the error is in the carrier's favor, can trigger a wage complaint. In an industry facing an 80,000-driver shortage, losing a good driver over a payroll error that was AI-generated and should have been caught is an expensive mistake that compounds far beyond the dollar amount on the settlement sheet.

Generative AI (the class of language model that produces prose, tables, and structured text by predicting the next token from a prompt) is genuinely useful in this domain for two reasons: it can format professional invoices and settlement sheets quickly, and it can handle the prose-heavy portions of those documents, such as accessorial charge descriptions, payment terms, and settlement notes. But the model has no independent access to the load data in the TMS (transportation management system, the software that manages load tendering, dispatch, invoicing, and settlement), the driver's contracted pay percentage, the fuel advance log, or the mileage verified by the ELD (electronic logging device, the mandated system that records driver hours and movement). Every figure in an invoice or settlement that the model generates without receiving explicit data in the prompt is either invented or inferred from statistical patterns, neither of which is acceptable when the document commits money.

Every figure in an AI-drafted invoice or settlement that you did not explicitly provide in the prompt is either invented or statistically inferred. Neither is a source you can invoice from.

What Goes Into a Freight Invoice and Where AI Helps

A freight invoice is the carrier's bill to a shipper, broker, or 3PL (third-party logistics provider, a company arranging freight on behalf of shippers without owning trucks) for completed transportation services. It must be accurate, must match the load tender or rate confirmation in the TMS, and must be sent to the correct entity within the timeframe specified in the carrier agreement, often within 30 days of delivery. Late invoices are frequently rejected or require a dispute process that delays payment by weeks.

A complete freight invoice typically contains the following fields: carrier name and USDOT number, invoice number and date, bill-to entity name and address, load or pro number from the TMS, origin and destination, pickup and delivery dates, shipper and consignee names, commodity description and weight, contracted rate per mile and total loaded miles, base freight total, any fuel surcharge with percentage and dollar amount, any accessorial charges with descriptions and individual amounts, total invoice amount, payment terms (net 30, quick pay discount, factoring instructions), and POD (proof of delivery) reference number or attachment.

Of these fields, AI adds genuine value on the following: formatting all fields into a professional invoice layout; drafting the commodity description and accessorial charge narrative in clear business prose; generating consistent payment terms language from a template; and producing a well-formatted document that shippers and brokers can process without confusion. AI adds no reliable value on any field that requires a number drawn from a source the model has not been given: the loaded miles, the contracted rate, the fuel surcharge, the accessorial amounts, the POD reference. These must come from the TMS and the load record before they go into the prompt, verified before they go out the door.

The Invoice Prompt That Produces a Safe Draft

An operator who types "generate an invoice for the load I completed from Chicago to Cincinnati" will get a fluent, professionally formatted invoice with invented mileage, an approximated rate, and a plausible but wrong total. An operator who provides the following prompt will get an invoice that is safe to send after a brief verification pass.

The safe prompt includes: carrier name, USDOT number, invoice number (from the TMS invoice sequence), invoice date, bill-to entity name and address exactly as shown in the TMS, load number from TMS, origin city and state, destination city and state, pickup date and delivery date from the TMS, shipper name and consignee name from the load record, commodity and weight from the load tender, contracted rate per mile from the TMS rate confirmation, total loaded miles from the TMS mileage record, base freight total (miles times rate), fuel surcharge percentage and dollar amount from the carrier's current FSC (fuel surcharge) table, any confirmed accessorial charges with description and amount each, total invoice amount (sum of base, FSC, and accessorials), payment terms from the carrier agreement, and POD reference number or a note that the POD is attached.

When all these fields are populated from the TMS before the prompt is submitted, the AI's job is to format the invoice professionally, not to generate data. The resulting draft is a structured invoice that requires verification of whether the data survived the formatting step intact, not verification of whether the data is correct. The data came from the TMS; correctness was established there. The verification checks that the AI reproduced the TMS data accurately in the invoice layout.

Driver Settlements: The Higher-Stakes Document

If freight invoices are consequential because they determine cash inflow, driver settlements are consequential because they determine cash outflow to the people who move the freight and who are, in a market where carriers are fighting over a pool of 80,000 fewer drivers than the industry needs, the carrier's most irreplaceable asset. A driver settlement that is consistently wrong, even if the errors are honest AI mistakes, is a driver retention problem. A driver who is shorted on a settlement, or who sees a fuel advance deducted that they never received, or who cannot reconcile the miles on their settlement to the loads they ran, will start looking for a carrier with more reliable pay administration.

A driver settlement is the weekly or per-load accounting of a driver's earnings and deductions. For a company driver paid on a cents-per-mile basis, the settlement shows: total loaded miles, the cents-per-mile rate, base pay, any layover or breakdown pay, any stop-off pay, any performance or safety bonuses, fuel advance deductions (signed advances the driver received against the week's pay), any equipment rental or lease deductions, per-diem allowances, any deductions for violations or damage, and net pay. For an owner-operator paid on a percentage of gross revenue, the settlement shows the gross revenue on each load, the owner-operator percentage (typically 70% to 85% of gross), the resulting gross pay, then deductions for fuel advances, fuel card purchases, permits, insurance deductions, and any other contractual items, arriving at net settlement amount.

The accuracy requirements for settlement are strict. Each deduction must be documented and agreed in the driver's contract or lease agreement. Each fuel advance must tie to a signed advance log or a TMS transaction. Each load's miles must tie to the TMS load record. If FMCSA (Federal Motor Carrier Safety Administration) regulations governing leased owner-operator settlement reporting apply, the settlement must meet those specific disclosure requirements as well.

Building the Settlement Prompt

The settlement prompt for a company driver paid cents-per-mile requires the following data provided by the operator from the TMS and payroll records: driver name and ID, settlement period (dates), each load number and the loaded miles for that load from the TMS, the cents-per-mile rate from the driver's contract, total loaded miles for the period, any layover or detention pay events with hours and rate, any stop-off payments with load reference and amount, any bonuses with description and amount, any fuel advances with dates and amounts from the signed advance log, any lease deductions with type and amount, per-diem rate and days if applicable, and the net pay calculation.

The settlement prompt for an owner-operator adds the gross revenue per load from the TMS invoice total, the owner-operator percentage from the lease agreement, the resulting gross pay, and then each deduction in the same structured format.

When all this data is in the prompt, the AI produces a formatted settlement document that shows the driver exactly what was earned, what was deducted, and why. The professional formatting aids driver comprehension, reducing the phone calls and disputes that arise when drivers receive a settlement they cannot parse. The verification step, covered in detail in the next lesson on verifying back-office output, confirms that every figure in the settlement matches its source: miles to the TMS load record, fuel advances to the signed advance log, deductions to the driver's contract.

The Split Settlement and Team Driver Scenarios

Two settlement scenarios that deserve specific attention because they are especially prone to AI error are split settlements and team driver settlements.

A split settlement occurs when a load is picked up by one driver and delivered by another, or when a driver is replaced mid-trip due to illness, a mechanical breakdown, or an HOS violation. In a split settlement, the miles and pay for the load must be allocated between the two drivers according to the actual miles each drove, which requires the TMS load transfer record and sometimes the ELD movement log to establish the split point. An AI that is not given the split point and the miles for each driver will either assign all miles to one driver or invent a split, both of which are wrong. The prompt for a split settlement must include the load number, the split point by city and mileage, and the miles assigned to each driver from the TMS record.

A team driver settlement, where two drivers share a single truck and alternate driving, has similar complexity: the total miles of the load must be divided between the two drivers based on who drove which segment, and the HOS logs from the ELD are the authoritative source for that division. An AI settlement prompt for a team that does not include the ELD-verified miles for each driver will produce a settlement that cannot be reconciled to the ELD record and that is likely to be disputed by one or both drivers.

Accessorial Charges: The Most Common AI Error in Freight Invoicing

Accessorial charges are additional fees for services beyond the base freight movement: detention, lumper services (third-party unloading labor paid by the carrier at the receiving dock), layover pay, team driver premium, tarping or banding, hazardous materials (hazmat) handling, inside delivery, fuel island stops, and dozens of others depending on the carrier's service offerings. Accessorials represent some of the highest-margin line items on a carrier's invoice, and they are also among the most frequently disputed by shippers and brokers because they require documentation that the service actually occurred.

AI error on accessorial charges takes two forms. The first is adding accessorials that were not in the prompt: the model, recognizing a load description that statistically often includes a particular accessorial, may add that charge to the invoice even though it was not incurred on this load. A refrigerated load that the model assumes required a pre-trip temperature check may receive a phantom reefer inspection fee. A load to a home improvement retailer may receive a lumper fee the model associates with that class of receiver. These phantom accessorials are a billing accuracy problem and, if they reach the shipper, a trust problem.

The second form is omitting accessorials that were incurred. If the operator does not include the detention charge in the prompt because they forgot it happened on this load, the AI will not add it from its own knowledge. The carrier loses the detention revenue. This is why the invoice prompt checklist should include a specific step: before submitting the prompt, review the TMS exception notes and the driver's exception report for this load to identify all accessorials that were incurred and ensure they are all in the prompt.

The negative instruction for accessorials should be explicit in every invoice prompt: "Do not include any accessorial charges that are not in this prompt. All accessorials are listed; do not infer additional charges from the load description."

Factoring, Quick-Pay, and Payment Terms in AI Invoices

Payment terms in a freight invoice are not merely administrative text. They determine who gets paid, when, and to what account. A carrier that uses a freight factoring company (a financial service that advances the carrier cash against outstanding invoices at a discount, improving cash flow) must ensure that every invoice directs payment to the factoring company's account with the correct assignment language. An invoice that goes out with the wrong remittance address, because an AI template used an old address from an earlier prompt or a generic remittance template, sends payment to the wrong entity and creates a factoring dispute that can take weeks to resolve.

Quick-pay terms, offered by some brokers and shippers as a discount for faster payment (for example, 1.5% discount for payment in 5 days versus standard net-30), must match the broker agreement exactly. An AI that generates quick-pay language without being given the specific percentage and day count from the broker agreement will produce payment terms that may not match the agreement, leading to under-payment or disputes about the discount calculation.

The practical rule is this: payment terms and remittance instructions in an AI-drafted invoice must come from a verified, current source. For factoring clients, that source is the factoring agreement and the factoring company's current remittance address, verified before the prompt is submitted. For quick-pay terms, that source is the broker's carrier packet or agreement. These are not fields where the AI should be allowed to fill in typical language from training data.

The Owner-Operator Settlement and Factoring Intersection

For an owner-operator who factors receivables, the settlement document serves double duty: it is the driver's pay record and also the document supporting the factored invoice. When the owner-operator submits invoices to the factoring company, the factor typically requires a copy of the rate confirmation and proof of delivery to fund the invoice. If the AI-drafted invoice has the wrong mileage or the wrong rate, the factor may fund a different amount than the owner-operator expects, or may decline to fund the invoice pending a corrected document. The verification step on the invoice is therefore also a step in the factoring workflow: an invoice that does not match the rate confirmation will not be funded without correction.

The owner-operator who does their invoicing at 11 PM after a long day, using AI to draft and send quickly, is exactly the operator who is most vulnerable to skipping the verification step. The lesson for the solo operator is the same as for the larger carrier: the 90-second verification is the step that protects cash flow, not the AI drafting itself. The AI is the speed; the verification is the money.

Building the Invoice and Settlement System

A carrier that builds a structured AI invoicing and settlement system captures the speed and consistency benefits while protecting accuracy. The system has four elements: a data-gathering step before any prompt is written, a prompt template with explicit fields, a verification checklist after drafting, and a documentation step before sending.

The Data-Gathering Step

Before submitting any invoice prompt, the operator opens the TMS load record for the completed load and extracts: the load number, the bill-to entity from the broker or shipper record, the rate confirmation rate per mile and total miles, the pickup and delivery confirmation dates, the shipper and consignee names, the POD reference number, all confirmed accessorial charges with amounts from the TMS exception log, and the payment terms from the broker agreement. For settlement, the operator additionally opens the driver's pay record and the fuel advance log for the period. This data-gathering step is not AI-assisted: it is a human-reading-the-TMS step that takes two to three minutes per invoice and is the foundation of every accurate document that follows.

A carrier processing 100 loads per week cannot do this TMS extract by hand without a workflow. Many modern TMS platforms offer invoice data export or report features that produce a formatted list of completed loads with key fields. When this export is available, the operator uses it as the source for batch prompt inputs, updating only the fields that the export does not provide (such as accessorials that were noted in a driver exception report but not yet logged in the TMS). The data export is verified against the dispatch board before batch invoice prompts are submitted.

The Invoice Prompt Template

The invoice prompt template for a carrier is a structured document with labeled fields for every required invoice line item. The operator populates each field from the TMS extract before submitting. The template includes: a header instruction establishing the invoice format and carrier identity; field slots for all required invoice data; an explicit negative instruction prohibiting the model from adding any charges, rates, or addresses not in the prompt; and an instruction to flag any field that appears blank or inconsistent rather than filling it with a default value.

That last instruction matters: "If any field is blank or unclear, note it as [MISSING] rather than filling it in" is the AI version of an explicit missing-data protocol. An invoice that comes back from the AI with [MISSING] in the shipper name field tells the operator to check the TMS before sending. An invoice that comes back with a plausible-sounding shipper name invented by the model is more dangerous because it looks complete.

Batch Invoicing and the Sequential Check

For carriers running 20 or more loads per week, batch invoicing is the practical mode. The operator prepares a data table of completed loads with all required fields, submits it in a structured prompt requesting invoices for each load, and receives a batch of formatted invoice drafts. Batch invoicing is where the most time is saved and also where the most errors concentrate, because errors in the input table produce errors in all invoices derived from that load's data, and batch review is more susceptible to "looks-right" confirmation bias than single-invoice review.

The batch verification protocol is a sequential check: for each invoice in the batch, the operator compares four critical fields against the TMS or rate confirmation: the bill-to entity, the total miles, the all-in total, and the payment terms. If all four match for each invoice, the batch is ready to send. If any field does not match, that invoice is pulled from the batch, corrected, and re-verified before sending. The four-field sequential check takes approximately 45 seconds per invoice. For a 20-load batch, that is 15 minutes total. The alternative, sending without checking and spending the weekend correcting disputes, is not a time-saving strategy.

Key Takeaways

  • Freight invoices and driver settlements are financial instruments flowing in two directions simultaneously: the invoice determines cash inflow from shippers and brokers; the settlement determines cash outflow to drivers. AI errors in either document reach the driver's pocket or the carrier's cash flow before they can be corrected without cost.
  • Every figure in an AI-drafted invoice or settlement that was not explicitly provided in the prompt is either invented or statistically inferred from training data. The safe prompt template populates every financial field from the TMS before submission, leaving the AI nothing to invent.
  • The data-gathering step, opening the TMS load record and driver pay records before any prompt is written, is the foundation of accurate invoicing. This step is human-run and cannot be skipped or AI-assisted without first having accurate data to give the AI.
  • Accessorial charges require a specific pre-prompt review of TMS exception notes and driver exception reports to ensure all incurred accessorials are in the prompt and the negative instruction explicitly prohibits the model from adding accessorials not listed. Phantom accessorials are a billing dispute; missing accessorials are lost revenue.
  • Driver settlements, especially split settlements and team driver settlements, require the TMS load transfer record and ELD-verified miles per driver in the prompt. AI that is not given the split point will either assign all miles to one driver or invent an allocation.
  • Payment terms and remittance instructions, including factoring company addresses and quick-pay discount percentages, must come from verified, current source documents, not from AI-generated template language. A factored invoice with the wrong remittance address creates a cash flow disruption that takes weeks to resolve.
  • Batch invoicing saves the most time and concentrates the most risk. The sequential four-field check, bill-to entity, total miles, all-in total, and payment terms, verified against the TMS for each invoice in the batch, is the 45-second-per-invoice protection against sending an entire week's invoicing with systematic errors.
  • The back office is the lower-stakes proving ground for AI in freight, but invoicing and settlement are the highest-stakes tasks within the back office. Building verification discipline here, before AI touches dispatch or safety, builds the habit that protects the operation across every AI-assisted workflow that follows.