Skip to content
The Algorithm logoThe Algorithm
Logistics & Supply Chain

AI automation for logistics teams

Stop retyping freight.

We build logistics automation for 3PLs, carriers and distributors. Turn orders and freight documents from email, portals and PDFs into validated drafts in the systems your team already uses. If the details don't match, send the exception to the right person before it becomes a bad load, a wrong charge or a delayed invoice.

Dispatcher reviewing freight paperwork beside a loading dock.
Illustrative image.

Who this is for

3PL operations

Order entry and handoffs

Customer orders, booking emails and tenders become draft loads in your TMS. Duplicates, ambiguous accounts and missing windows go to the right desk instead of the wrong truck.

Carriers

Proof of delivery and billing readiness

Signed PODs attach to the matched load, and the load is flagged billing-ready only when the paperwork is complete. Missing signatures, pages or damage notes stop for review.

Distributors

Purchase orders and receiving discrepancies

Purchase orders and receiving paperwork are matched to what was ordered. Short, over and damaged quantities are raised as exceptions before they reach accounts payable.

Where the retyping happens

The work between the document and the record.

A customer's email isn't a shipment record. A signed delivery receipt isn't an approved invoice. The work between those steps is where operations teams end up copying fields, chasing missing details and trying to remember which version was right.

InputCreate or reconcileStop and ask a person when
Customer order, booking email or tenderDraft order or load in the transportation management system (TMS)Reference is duplicated, stop or window conflicts, or the account match is ambiguous
Bill of lading (BOL) or shipping paperworkMatch to the shipment; propose missing references or piece countsDocument belongs to another shipment, or counts and units disagree
Proof of delivery (POD)Attach to the matched load; flag billing readinessSignature or page is missing, or damage or shortage is noted
Carrier invoiceMatch the invoice to the agreed rate, shipment record and supporting documentsDuplicate invoice, unsupported accessorial, rate mismatch or missing POD
Freight order example

One order, from inbox to an acknowledged TMS record.

Illustrative workflow, fictional data. The customer, people, reference and record numbers below are invented to show the steps. This is not a live demo or a client result.

  1. ReceiveEmail and PDF arrive in the orders inbox.
  2. ExtractFields are read with a link back to the source text.
  3. ValidateCustomer, duplicates and required fields are checked.
  4. ApproveA person resolves anything the rules cannot.
  5. Write and confirmThe TMS acknowledges the record before it counts as created.

If validation passes, step 4 is skipped and the draft goes straight to the write. If anything fails, the order waits in a named queue and nothing is written.

Step 1

The email that arrives

From: orders@northfield.example

Subject: New order EX-1048

Attachment: EX-1048.pdf

Hi team, please book EX-1048: 12 pallets, 14,200 lb, 53 dry van. Pick up Wed from Dock 3 at our Columbus DC, deliver Friday AM to the Dayton store. Thanks.

Step 2

Extracted fields, each with its source

Fields extracted from order EX-1048 and where each came from
FieldValueSource
CustomerNorthfield Home SupplyFrom: orders@northfield.example
Customer referenceEX-1048Subject: New order EX-1048
PickupWednesday, Dock 3, Columbus DC"pick up Wed from Dock 3"
DeliveryFriday AM (no window given)Needs a window"deliver Friday AM"
Equipment53 ft dry van"53 dry van"
Pieces and weight12 pallets, 14,200 lbAttached PDF, page 1, line 4
Step 3

Validation against your records

  • Customer account match: Matched to account NHS-204 (passed)
  • Duplicate reference: No existing load for EX-1048 (passed)
  • Required delivery window: "Friday AM" is not a window this consignee accepts (failed)
Step 4

Exception assigned to dispatch

EX-1048 stops here. Nothing has been written to the TMS. The order goes to the Dispatch queue with the reason “Delivery window required”, the original email and the extracted fields side by side.

The dispatcher confirms with the customer and enters 09:00 to 11:00 local time for Friday delivery, then approves the draft.

Step 5

Write, then wait for the acknowledgement

The approved draft is sent to the TMS with the idempotency key NHS-204:EX-1048. The order only shows as created once the TMS returns a record ID.

Order
EX-1048
TMS response
Accepted, load LD-20931
Acknowledged
Wed 14:07 local
Approved by
J. Patel, Dispatch

If the TMS had rejected the record, the rejection reason would go back to the same dispatch queue and EX-1048 would stay open.

Compare: the clean-match path for EX-1048

Suppose the email had said “deliver Friday 09:00 to 11:00”. Every check in step 3 passes, so EX-1048 skips the dispatch queue. Whether a clean draft is written automatically or waits for a one-click release is a rule your operations team sets. In both cases the order counts as created only after the TMS returns its record ID.

Have an order type your team retypes every day?

Tell us the workflow and the system it lands in. We'll tell you whether it's a good first candidate.

Bring us one manual workflow
Fit your existing TMS, WMS and ERP

Start with the system where the record needs to land.

Use the existing API or EDI path when the customer has one. Where it doesn't, start with an approved import or a review queue. Existing structured feeds don't need an AI model to re-read them. Use extraction on messy inputs, rules on required fields and business policies, and people for genuinely ambiguous decisions.

API

Use when: The TMS, WMS or ERP exposes a documented API and you can grant scoped write access.

Fastest acknowledgement and the clearest error messages.

EDI

Use when: Customers or partners already send structured transactions such as 204 load tenders or 210 freight invoices.

Structured feeds go straight to rules and validation. They do not need an AI model to re-read them.

Approved import or review queue

Use when: Write access is not available yet, or the team wants every record reviewed first.

Validated drafts are produced in the format your system already imports, and a person releases them.

These are integration patterns, not prebuilt connectors. Each integration is scoped against your system's documentation, access and test environment.

  • Source lineage. Every field written to the TMS keeps a link to the email, PDF page or feed it came from, so a dispatcher can see why a value is there.
  • Field mapping. Customer, reference, stops, windows, equipment, weight and pieces are mapped to the target record once, with required fields and allowed values checked before anything is written.
  • Idempotency keys. Each order carries a stable key built from the customer and their reference. Sending the same order twice updates or stops; it never creates a second load.
  • Retries without double posting. If the TMS times out, the workflow checks whether the record already exists before it tries again.
  • Rejected records go to a person. When the target system rejects a record, the rejection reason and the original document go to the operator queue. Nothing is silently dropped.

Read the guide: TMS integration from emailed freight orders to validated loads →

Start with one workflow, then measure it

One document type. One system. A real baseline.

Pick one incoming document type and one system. Check a representative sample of ordinary records, duplicates, amendments and bad scans. Run it alongside the current process. Move to a limited release only after operations agrees what should go through, what should stop and what a bad write costs.

We measure by document type, and we report human review time alongside automation, so the numbers show the whole job.

Read the guide: freight invoice processing, match rates and delivery evidence →

What we baseline before anything changes

  • Handling time per document
  • First-pass match rate
  • Exception volume, by reason
  • Backlog age
  • Duplicate writes
  • Time from delivery evidence to billing-ready status
FAQ

Questions operations teams ask first.

Do we need to replace our TMS?

No. We scope the integration against the source systems, destination and permissions you already use. If write access is not available, we start with validated drafts or reviewed imports.

Is this just OCR?

OCR reads the document. A workflow checks it against business records and rules, routes problems to the right person and records whether the downstream system accepted the transaction.

Can it handle bad scans and unusual formats?

We test the formats you actually receive. If required fields are missing or uncertain, the document is routed for review rather than guessed.

Does it automatically approve a freight invoice?

Only if the rules you agree allow it. A missing POD, a duplicate invoice or a disputed charge follows your own approval path.

What do we bring to the first call?

One repetitive workflow, the destination system, approximate weekly volume and a description of the most common exception. Please do not send customer documents with the first enquiry.

Bring us one manual workflow

Tell us which document your team retypes most.

Name the workflow, the system it ends up in and roughly how many arrive each week. An engineer reads every enquiry.

Prefer the general form? Use the contact page.

Please don't attach or paste customer documents. We use these details only to reply to your enquiry. See our privacy policy.

Engage Us