AI Logistics, pgvector RAG & WhatsApp API

LogiFlow AI: Logistics Operations & WhatsApp CRM Engine

Unifying ERP data, customer emails, and rate sheets into an automated AI freight quotation and WhatsApp operational workflow pipeline.

Client / Ecosystem Freight Forwarding & 3PL Logistics Brokers
Engineering Role Lead Automation Architect & AI Systems Engineer
Platform Stack Python FastAPI, n8n, Supabase pgvector & WhatsApp API
Architecture Async Workers & Vector Similarity Search
LogiFlow AI quotation workflow and WhatsApp business interactive buttons

Project Overview

Freight forwarders receive hundreds of rate requests daily across messy email threads and WhatsApp groups. Quoting requires calculating ocean freight, bunker adjustment factors, terminal handling charges, and customs clearance tariffs across multiple carriers. LogiFlow AI automated this entire workflow using an AI quotation engine and WhatsApp task execution.

Engineering Challenges & Bottlenecks

  • Unstructured Customer Inquiries: Inquiries arrive with incomplete port codes, mixed container specifications, and vague cargo descriptions.
  • Complex Carrier Tariff Matrices: Carrier rate sheets change weekly across Excel spreadsheets, Zybo ERP tables, and carrier PDFs.
  • Slow Operational Turnaround: Field agents and warehouse staff rarely check desktop email while moving cargo.

Architecture & Solutions

  • Multi-Channel Ingestion Pipeline: Utilized Microsoft 365 Graph API and Meta WhatsApp Webhooks to parse incoming RFQs with structured LLM entity extraction.
  • pgvector Semantic Tariff Search: Stored carrier contracts and surcharges as embeddings in PostgreSQL with pgvector, retrieving the best valid rate in milliseconds.
  • Interactive WhatsApp Action Buttons: Dispatched quotation approvals and driver pickup confirmations as interactive WhatsApp messages with one-tap action buttons.
  • Zybo ERP Webhook Sync: Synchronized confirmed shipments and invoice statuses directly into Zybo ERP with zero manual data entry.

Key Engineering Contributions

  • Designed the overall n8n workflow architecture and FastAPI microservice endpoints.
  • Engineered the pgvector database schema and embedding generation pipeline in PostgreSQL.
  • Integrated Microsoft Graph API for email ingestion and Meta WhatsApp Cloud API for automated dispatch.

Key Results & Performance Metrics

90 Seconds
Quotation Speed
Reduced quotation turnaround from 4 hours to under 2 minutes.
100% Sync
With Zybo ERP
Eliminated double data entry across sales and accounting.
4.8x
More RFQs Handled
Operations team managed 480% more inquiries without increasing headcount.

Core Technology Stack

FastAPI Python

High-concurrency microservice handling LLM orchestration and parsing.

PostgreSQL & pgvector

Vector database for semantic tariff matching and tariff storage.

n8n Automation

Orchestration workflows connecting ERP, email, and databases.

WhatsApp Cloud API

Interactive customer messaging and field staff task execution.

Looking to Deploy a Similar Solution?

This architecture is available as a customizable, white-label commercial software solution. Explore features, deployment timelines, and turnkey pricing.

View Logistics Engine Product

Need Senior Mobile & System Architecture for Your Next Initiative?

I help ambitious organizations architect, build, and deploy production-grade mobile platforms and high-throughput backend services.