AI Quote Generator v2

An intelligent web application that automatically converts supplier quotes into customer quotes with configurable margin rules.

Features

Tech Stack

Getting Started

Prerequisites

Installation

cd ai-quote
npm install

Environment Variables

Create a .env.local file:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key
GEMINI_API_KEY=your_gemini_api_key
PORT=3101

Running Locally

npm run dev -- -p 3101

Navigate to http://localhost:3101

Usage

  1. Select Customer: Choose from the dropdown (populated from Supabase)
  2. Upload Supplier Quote: Drag and drop a PDF supplier quote
  3. Review Generated Quote: AI automatically:
  4. Extracts all line items
  5. Applies appropriate margins
  6. Calculates customer pricing
  7. Shows profit and margin percentages

API Endpoints

/api/parse-supplier-quote

/api/customers

Margin Rules

The system applies different margins based on vendor and product type:

Vendor Hardware Support
Sencore 20% 10%
Others 20% 20%

Future Enhancements

License

Proprietary - MDL Communications © 2026