How kashifali-it/tailgate-quote works
Tailgate Quote is a voice-first field-service quoting application. Its intended workflow turns a technician’s spoken job description into catalog-priced, deterministically calculated line items, records evidence, creates a draft, and requires human confirmation before sending. The sampled frontend currently provides a quote preview and health check; the README describes the broader voice-agent workflow, while backend excerpts show overlapping implementations. Edges reflect only explicit calls, frontend requests, or documented capabilities; unsampled voice routing and persistence details are not inferred.
Main entry points: voice.py Voice Route · quote_service.py Quote Service · pricing_service.py Pricing Service · calculate_line_item.py Line Calculation Tool
Components 22
Technician Interface
- Quote Dashboard
frontend/src/App.tsx
Voice and Tools
- Voice Agent
- AssemblyAI Integration
backend/app/integrations/assemblyai.py - Tool Schemas
backend/app/schemas/tools.py - Voice Route
backend/app/api/routes/voice.py - Price Lookup Tool
backend/app/tools/get_price_list.py - Line Calculation Tool
backend/app/tools/calculate_line_item.py - Draft Quote Tool
backend/app/tools/create_draft_quote.py - Confirm and Send Tool
backend/app/tools/confirm_and_send.py
Quote Domain
- FastAPI Application
backend/app/main.py - Quote Routes
backend/app/api/routes/quotes.py - Quote Service
backend/app/services/quote_service.py - Evidence Service
backend/app/services/evidence_service.py
Catalog and Persistence
- Pricing Service
backend/app/services/pricing_service.py - Calculation Service
backend/app/services/calculation_service.py - Seed Price Catalog
data/seed_catalog.json - Quote Store
backend/app/storage/quote_store.py - Database Setup
backend/app/db/database.py - Quote Model
backend/app/models/quote.py - Evidence Model
backend/app/models/evidence.py - Catalog Model
backend/app/models/catalog_item.py
Other components
- Technician
Connections 27
- Technician → Quote Dashboard: uses
readme.md - Quote Dashboard → FastAPI Application: requests health and quote
frontend/src/App.tsx - FastAPI Application → Quote Routes: registers
backend/app/main.py - FastAPI Application → Voice Route: voice endpoint documented
- Voice Agent → AssemblyAI Integration: connects voice
readme.md - AssemblyAI Integration → Tool Schemas: uses definitions
backend/app/integrations/assemblyai.py - Voice Route → Tool Schemas: uses schemas
backend/app/api/routes/voice.py - Voice Route → Price Lookup Tool: dispatches tools
- Voice Route → Line Calculation Tool: dispatches tools
- Voice Route → Draft Quote Tool: dispatches tools
- Voice Route → Confirm and Send Tool: dispatches tools
- Quote Routes → Quote Service: calls
backend/app/api/routes/quotes.py - Price Lookup Tool → Pricing Service: looks up prices
backend/app/tools/get_price_list.py - Line Calculation Tool → Pricing Service: retrieves SKU
backend/app/tools/calculate_line_item.py - Line Calculation Tool → Calculation Service: calculates item
backend/app/tools/calculate_line_item.py - Draft Quote Tool → Quote Service: creates quote
backend/app/tools/create_draft_quote.py - Draft Quote Tool → Evidence Service: records evidence
backend/app/tools/create_draft_quote.py - Confirm and Send Tool → Quote Service: confirms quote
backend/app/tools/confirm_and_send.py - Quote Service → Calculation Service: calculates items
backend/app/services/quote_service.py - Quote Service → Quote Store: loads and saves
backend/app/services/quote_service.py - Pricing Service → Seed Price Catalog: reads catalog
backend/app/services/pricing_service.py - Calculation Service → Pricing Service: loads catalog
backend/app/services/calculation_service.py - Evidence Service → Evidence Model: creates and queries
backend/app/services/evidence_service.py - Quote Model → Database Setup: uses base
backend/app/models/quote.py - Catalog Model → Database Setup: uses base
backend/app/models/catalog_item.py - Evidence Model → Database Setup: uses base
backend/app/models/evidence.py - Quote Service → Quote Model: persists quote records