Type something to search...
Completed

FDC Sales Quotation Bot

FDC Sales Quotation Bot

Technologies Used

FastAPI LangChain PostgreSQL pgvector OpenAI WhatsApp API Python

Tags

ai automation sales rag whatsapp

Project Links

Overview

The FDC Sales Quotation Bot is an intelligent sales automation platform built for an Airia client. It revolutionizes the quotation process by integrating WhatsApp Business API with legacy accounting systems, reducing quotation creation time from 5 minutes to less than 1 minute.

Key Features

Self-Learning Cheque Processing

Developed an AI pipeline that automates cheque settlements with a unique feedback loop:

  • System learns user-verified mappings (e.g., “ABC” on cheque → “BCD Private Ltd” in ledger)
  • Achieves 95%+ accuracy in extracting critical data (Party Name, Amount, Date)
  • Continuously improves with each verification

RAG Pipeline for Product Identification

  • Implemented Retrieval-Augmented Generation using PostgreSQL (pgvector) and OpenAI
  • Achieves 99% accuracy in product identification from natural language queries
  • Handles complex product catalogs with ease

WhatsApp Integration

  • Seamless integration with WhatsApp Business API
  • Processes 100+ quotations daily
  • Enables 24/7 automated sales operations

Technical Architecture

Backend Stack

  • FastAPI: High-performance async Python framework
  • LangChain: AI orchestration and chain management
  • PostgreSQL + pgvector: Vector similarity search for product matching
  • OpenAI: LLM for natural language understanding

Key Workflows

# RAG Pipeline for product identification
async def identify_product(query: str):
    embedding = await openai.embed(query)
    matches = await pgvector.similarity_search(embedding, top_k=5)
    return await llm.rank_and_validate(matches, query)

Impact & Results

MetricBeforeAfterImprovement
Quotation Time5 mins<1 min80% reduction
Cheque Data AccuracyManual95%+Automated
Product IdentificationManual99%AI-powered
Daily ProcessingLimited100+24/7 automated

Technologies Used

FastAPI LangChain PostgreSQL pgvector OpenAI WhatsApp Business API Python Redis