Bill of Lading Extraction: From Email Attachment to ERP
Bill of lading extraction means pulling the shipper, consignee, ports, goods and reference numbers out of a shipping document and writing them into the system that runs your business. For most wholesalers and manufacturers the document arrives as a PDF or a scan in a shared inbox, and someone retypes it. The extraction itself is the easy half. The harder half is matching the result to your purchase orders and receiving records, then getting it into your ERP without a person rekeying it. Ampwise AI is built for that whole path: it reads documents from Outlook or Gmail, validates them, and lets you approve verified data into your ERP with one click.
TL;DR
- A bill of lading carries dozens of fields across parties, locations, goods, measures, dates and transport. Layouts differ by carrier, which is why fixed templates break.
- Packing slips and delivery notes are simpler documents, but they matter more for receiving, because they tie goods to your purchase order.
- Reading the text is not enough. Extracted data has to be validated against your own records before it is trusted.
- Sorting output into approved, needs review and rejected keeps people on exceptions only.
- Ampwise works directly in your inbox, with no templates, and sends verified data to your ERP.
Table of Contents
- What is on a bill of lading, and why it is hard to read
- Packing slips and delivery notes: the same problem, a different job
- OCR versus document intelligence
- The extraction routine, step by step
- What accuracy and savings to expect
- How to evaluate a pilot
- Why we built Ampwise around the inbox
- Put it to work on your own documents
- FAQ
- Sources
What is on a bill of lading, and why it is hard to read
A bill of lading (B/L) is the carrier’s receipt for goods, the contract of carriage and, in many cases, the document of title. The ICC Digital Standards Initiative’s reference on key trade documents and data elements groups its data into several families:
- Document references: carrier booking, forwarder and shipper references, the B/L number.
- Parties: shipper, consignee, notify party and the carrier, identified by a SCAC code.
- Locations: place of receipt, ports of loading and discharge, place of delivery, usually as UN/LOCODE.
- Goods: packages, packaging type, HS code, description and dangerous-goods data.
- Measures: container count, volume, weight and reefer temperature.
- Dates and transport: departure and arrival dates, voyage number, mode, vessel name and IMO number.
The same reference notes that standards differ by use case: one for containerized freight, another for bulk shipping, another for forwarders acting as multimodal operators. So two bills of lading for the same cargo can look very different.
That variety is the real difficulty. Fields sit in nested tables, descriptions run over several lines, and every carrier and forwarder has its own layout. Add scans, stamps and handwritten notes, and a template that works for one carrier fails on the next.
Packing slips and delivery notes: the same problem, a different job
A packing slip lists what is in a shipment. A delivery note is the supplier’s record of what was delivered. Both usually carry a document number, your purchase order number, item numbers, descriptions and quantities. Where a bill of lading tells you about the movement of goods, these two tell you what actually arrived, so they drive receiving and three-way matching against the PO and the invoice.
An EMNLP 2026 industry paper tested extraction on 195 real delivery notes from 64 suppliers, using five header fields and seven line-item fields such as delivery note number, purchase order number, material number and quantity. The best approach, an agentic workflow, reached an average exact-match F1 score of 0.864 on delivery notes. In plain terms: even strong methods get most, not all, fields exactly right. That is why the step after extraction decides the outcome.
The same applies whether you call it packing slip OCR, delivery note extraction or bill of lading OCR. The document types differ; the pipeline is the same.
OCR versus document intelligence
OCR (optical character recognition) turns an image of text into characters. It does not know that a number is a weight or that a name is the consignee. Extraction adds that meaning: it labels each value as a field.
Research on real industrial documents shows how the pieces interact. In the ‘OCR or Not?’ study of about 1,000 labeled supply-chain and finance documents, OCR-only extraction gave a strong, stable baseline, while for advanced multimodal models OCR text added little or nothing, because they can work from the page image directly. The practical lesson: judge a tool on field-level results on your own documents, not on whether it “has OCR”.
If you want the mechanics in more depth, our guides on LLM document extraction and attachment text extraction for ERP walk through how text, layout and language models fit together.
The extraction routine, step by step
1. Capture documents where they arrive
Bills of lading, packing slips and delivery notes come in as email attachments: PDFs, scans, Excel files, sometimes free text in the message body. Collecting them by hand from an inbox is the first place time disappears. Ampwise works directly in Outlook and Gmail, so documents are picked up where your team already receives them, with no change to how suppliers and carriers send them.
2. Read the document without a template
The goal is to find each field wherever it sits. Template-based tools need a setup per carrier or supplier and fail when a layout changes. Ampwise needs no templates and handles PDFs, scanned documents and free-text emails, so a new carrier does not mean a new configuration project.
3. Extract the fields you need, not all of them
For receiving, you usually need the document number, PO number, parties, item numbers, quantities and dates. For freight, add the B/L number, ports, container details and weights. Decide the list first. A short list that is right beats a long one that needs checking.
4. Validate against your own records
This is where most projects succeed or fail. The EMNLP study noted above simulated real production noise: it masked values and rewrote units (for example, “Pieces” on the document becoming “EA” in the ERP), changing at least one field in 69% of delivery notes. It also asked the system to identify the right purchase order among hundreds of distractor records. The authors’ conclusion is that extraction cannot work in isolation: the output has to match the systems of record.
A May 2026 paper on purchase-order automation describes the same idea: check that required fields are present, that numbers fall in acceptable ranges and that formats are consistent. Our guides on ERP data validation rules and validating purchase orders before ERP release show concrete checks.
5. Route by confidence: approve, review, reject
The same paper splits output into three groups: approved, needs review and rejected. Clean documents go straight through, doubtful ones go to a person, bad ones are returned. In Ampwise, verified data is approved into the ERP with one click, so your team handles exceptions rather than every document.
6. Post to the ERP and keep the status
Validated data is stored in structured form for inventory, order tracking and procurement control. Ampwise supports multiple ERP integrations and offers status tracking and smart email labeling, so you can see which documents are done, waiting or flagged. For the wider flow, see PDF data extraction to ERP.
What accuracy and savings to expect
Published numbers vary by method and data, so treat them as ranges. The May 2026 purchase-order paper reports 82–88% accuracy for OCR text extraction, 88% for LLM extraction and 93% for a confidence-aware hybrid, with 8–12 seconds per email and a 75–85% reduction in manual effort. A customs study in China’s Guangdong-Hong Kong-Macao Logistics Park, covering 100,000 trade records, reported the bonded account-book discrepancy rate falling from 18% to 0.3%, document rejection down 82%, and packing-list data converted into a structured verification list within 30 seconds.
Those are research settings, not promises for your operation. They do show why the design matters: extraction paired with verification against reference data, not extraction alone, produced the large gains. Ampwise reduces manual data entry by up to 90% according to our own measure, and the same logic applies.
How to evaluate a pilot
- Pull 50 to 100 real documents from your inbox, including the ugly scans and the odd carriers. Our PDF data extraction benchmark guide explains how to set this up.
- Score field by field, not document by document. A document with one wrong quantity is not “mostly right” if it posts to your ERP.
- Track the share that passes untouched, the share that needs review and the time per exception.
- Check that the output matches your item numbers, units and PO format.
For teams that also process invoices, the same pilot logic is covered in our invoice automation guide, and the order processing playbook shows how to measure touchless rates.
Why we built Ampwise around the inbox
The teams we build for are wholesalers, manufacturers and purchasing groups whose work arrives by email. Moving that work into a separate portal means changing how suppliers, carriers and staff behave. Ampwise AI keeps the inbox as the starting point, needs no templates or workflow changes and integrates with your existing ERP without retraining staff. Companies with heavy email workflows see faster order processing, fewer errors and lower operating cost, with payback in about three months according to our own figures.
Our view
Extraction is a commodity feature. Plenty of tools can read a bill of lading. What decides whether your team saves time is what happens next: does the number match a real purchase order, does the unit match your item master, and can a person approve a clean result in one click?
We designed Ampwise around that last mile. It reads emails, PDFs, Excel files and scans without templates, validates the data, and passes it to your ERP. The goal is simple: nobody on your team should retype a delivery note again.
Evert
Put it to work on your own documents
If your team still keys bills of lading, packing slips or delivery notes into the ERP by hand, Ampwise AI automates extraction, validation and direct entry from Outlook and Gmail. It also covers orders, invoices and PO confirmations in the same inbox.
You can see how it fits your setup on the Ampwise site.
FAQ
What is the difference between bill of lading OCR and bill of lading extraction?
OCR converts the image of a document into text. Extraction goes further and identifies which text is the shipper, the port, the weight or the B/L number. For ERP use you also need validation, so the values match your records.
Can the same tool handle packing slips and delivery notes?
Yes. They carry fewer fields than a bill of lading, mostly document number, PO number, items and quantities, so the same pipeline of reading, validating and posting applies. Ampwise handles these document types, along with orders, invoices and PO confirmations.
Do I need templates for each carrier or supplier?
Not with Ampwise. It understands PDFs, scans and free-text emails without templates, so a new carrier or a changed layout does not need a setup project.
Does an electronic bill of lading change anything?
It changes the format, not the need for data capture. The ICC reference notes that only a small number of jurisdictions give electronic trade documents the same legal standing as paper, so paper and PDF copies remain common in the inbox, and they still have to reach your ERP accurately.
Sources
- ICC Digital Standards Initiative: Key Trade Documents and Data Elements
- Do Agents Help? Agentic Document Information Extraction (EMNLP 2026 Industry)
- OCR or Not? Document Information Extraction study
- AI-based purchase-order automation (IJISRT, May 2026)
- AI-Driven Construction of an Intelligent Customs System (Atlantis Press)
