Freight Docs from Forms (No Rate Engine)
Quote letters, SOPs and claim letters still ship with leftover placeholders. Form → strict JSON → placeholder-free Google Doc—document generation only. QuickBooks / NetSuite as doc handoff targets—no rate engine, lane pricing, TMS lookup or claim filing.
- Logistics/3PL
- Zapier
- OpenAI
- QuickBooks
- NetSuite
- Document Generation
Overview
The project at a glance
Quote letters, customer SOPs and claim letters still get written from scratch or from a template full of brackets. This page documents a document-generation pattern we built: a form submission is enriched, turned into strict structured JSON by an LLM with validation retries, and rendered into a placeholder-free Google Doc from a template — applied to logistics quote, SOP and claim-letter documents. It produces the document only. No rate engine, lane pricing, TMS lookup or freight-quote email automation is claimed.
Origin pattern: A document-generation pattern built for a reputation-analysis service, applied to logistics quote, SOP and claim-letter documents. No rate engine or TMS was involved.
What the engagement had to achieve
- Turn a staff-filled request form into a ready-to-send document
- Enforce required fields via strict JSON and validation retries
- Render into a template with no leftover placeholders
- Support quote letters, merchant SOPs and claim / dispute letters
- Explicitly exclude rate calculation, rate shopping and claim filing
The story
The challenge, and how we solved it
What was at risk
The Challenge
Plenty of logistics paperwork is structured writing: a proposal or quote letter that wraps rates already agreed by the pricing team, a merchant-specific SOP, or a claim or dispute letter to a carrier. Each one is rebuilt by hand from an old Word file, with the wrong customer name left in or a placeholder shipped to the client. Generic AI writing invents terms and drops required sections.
Old Word files ship with the wrong name or leftover placeholders.
Unstructured generation drops required sections and invents commercial terms.
Rates in any sample are typed in by a person. No freight quoting, rate shopping, TMS lookup or claim filing.
How we responded
The Solution
A request form filled in by sales, ops or claims staff, with commercial figures entered by a person.
A request form filled in by sales, ops or claims staff, with commercial figures entered by a person.
Context enrichment before generation; LLM output as strict JSON with validation retries until every required field is present.
Google Docs template rendering rejects the document if a field is missing — it is not sent with placeholders.
Quote / proposal letter (rates typed in), merchant SOP, carrier claim or dispute letter. Claim letter only — never claim filing or recovery.
AI freight-quoting tools are a different category and are named only to make clear this is not one. Typical output targets are Google Docs, PandaDoc and DocuSign templates; finance systems such as QuickBooks and NetSuite may receive the finished commercial document as a handoff — docs only, not rate engines.
What we built
The concrete capabilities designed, built, and shipped in this engagement.
Form as the single input
Typeform (source) as the single intake — for a 3PL: a request form filled by sales, ops or claims staff, with commercial figures entered by a person.
Enrichment step before generation
Context enrichment (web searches in the source) before the LLM generates the document.
Strict structured JSON from the LLM
OpenAI returns strict structured JSON; validation retries until every required field is present.
Placeholder-free Google Docs rendering
Template rendering into Google Docs with no leftover placeholders — the document is rejected, not sent, if a field is missing.
Zapier-orchestrated generation pipeline
Zapier orchestration ties form → enrichment → LLM → Docs so ops can change prompts without redeploying an app.
Explicitly no rate engine
Quote / proposal letter (rates typed in by a person), merchant SOP, or carrier claim / dispute letter. Rate calculation, rate shopping, freight-quote email parsing and TMS lookups are not included.
The stack
The tools behind the build, and the role each one played.
Zapier
OpenAI
Typeform
Google Docs
QuickBooks
NetSuite
Extensiv
MercuryGate
FreightPOP
Descartes
What changed
Beyond the launch
Lasting improvements
The changes that keep paying off after the engagement ended.
- Document-volume or time-saved figures: none claimed
- Design/process outcome: Strict JSON validation retries until every required field is present
- Design/process outcome: Placeholder-free Docs output — document rejected, not sent, if a field is missing
- Design/process outcome: No-rate-engine honesty disclosed on-page — commercial figures typed in by a person; no TMS or freight quoting claimed
Swipe to see more
All case studiesWant an outcome like this one?
A short workflow review maps where automation, AI, or a platform would pay off in your operation — and the first system worth building.