Skip to main content
Fleet Compliance & Finance

FLEET OPERATIONS
ENGINE.

n8n Gemini Vision API Airtable Telegram

The Challenge

Trucking fleets drown in paperwork. Vehicle inspections sit in filing cabinets, Rate Confirmations arrive via email as PDFs, and BOLs get lost between drivers and dispatch. Manual data entry delays factoring submissions, which delays cash flow. Compliance tracking requires cross-referencing spreadsheets. The industry needed intelligent automation, not another data entry clerk.

The System

A suite of three interconnected n8n workflows transforms document chaos into structured data. It captures inspections via Telegram, processes Rate Confirmations through web forms, and matches incoming BOLs using intelligent logic. The system validates signatures, flags damaged cargo, and triggers factoring submissions automatically—creating a real-time compliance dashboard and accelerating financial velocity.

Inspection logging pipeline diagram showing Telegram ingestion and Gemini OCR
FIG 1.0: INSPECTION LOGGING PIPELINE

THE ARCHITECTURE

Inspection Logging Pipeline

  1. Telegram bot receives inspection photos/PDFs from drivers.
  2. PDF-to-image conversion initializes vision processing.
  3. Gemini 3 Pro extracts date, vehicle type, and VIN (handwriting recognition).
  4. JavaScript logic validates unit numbers (correcting OCR errors like 'S'→'5').
  5. Airtable search matches vehicle records via serial number.
  6. Compliance log is updated automatically with inspection due dates.

Rate Confirmation Processing

Rate confirmation processing workflow
  1. Web form submission triggers workflow with driver email and Rate Con PDF.
  2. Text extraction checks quality; switches to Gemini Vision if OCR <50 chars.
  3. Gemini extracts load ID, origin/destination zips, and financials (linehaul, FSC).
  4. Confidence scoring flags handwritten corrections for manual review.
  5. File uploaded to Google Drive with standardized Load ID naming.
  6. Airtable record created with status: 'Waiting for BOL'.

BOL Matching & Factoring

BOL matching and factoring automation workflow
  1. BOL uploaded via separate web form.
  2. Gemini extracts reference numbers and validates signatures/barcodes.
  3. Integrity checks detect missing pages ('Page 1 of 3' indicators).
  4. Intelligent algorithm matches BOL to loads via ID or zip+date (±2 day tolerance).
  5. Updates Airtable: 'Ready for Entry' (if clean) or 'BOL Review' (if damaged).
  6. Triggers factoring submission email when the load packet is complete.
Infrastructure
The Tech Stack
  • n8n: Orchestration & Sub-workflows
  • Gemini API: Vision (3 Pro) & Text (2.5 Flash)
  • Airtable: Fleet Database
  • Telegram: Driver Interface
  • Google Drive: Doc Storage
Results
The Outcome

Zero manual data entry. Drivers submit inspections from the road via Telegram—the system handles OCR and compliance tracking. The factoring submission process that used to take 45 minutes per load now runs in the background. Fleet managers see real-time dashboards instead of hunting through filing cabinets.