📖 Project Overview
AI-Commerce Chatbot is a next-generation Python application that leverages OpenAI's GPT-4o model to create high-end shopping experiences. This project offers intelligent product discovery, real-time order tracking, a comprehensive loyalty points system, multilingual support (English/Hindi), sentiment analysis, and a powerful admin dashboard for store management. Perfect for e-commerce developers, business owners, and AI enthusiasts looking to build production-ready shopping automation.
⚡ Quick Facts
✨ Features
Primary Capabilities
🤖 OpenAI GPT-4o Integration
Leverages the latest AI models for natural, context-aware shopping conversations and intelligent product recommendations.
📦 Real-time Order Tracking
Customers can track their orders instantly by providing order IDs (e.g., ORD-101), integrated with the database.
💎 Loyalty Reward System
Automatic accrual of points on purchases and easy balance checks via chat to drive customer engagement.
🌍 Multilingual (English/Hindi)
Seamlessly switch between English and Hindi, allowing for a broader customer reach in global and local markets.
Advanced AI Logic
🎭 Sentiment Analysis
Detects negative user sentiment to provide empathetic, apologetic responses and prioritize support tickets.
🔍 Smart Product Search
Intelligent database searching with context awareness, finding products even when descriptions are vague.
📊 Admin Analytics
A comprehensive web dashboard visualizing order statuses, priority tickets, and customer demographics via Chart.js.
🎙️ Voice Input Ready
Simulated voice interface components for 2026-ready interactive shopping experiences.
🛠️ Technologies
Python 3.8+
Core backend logic and automation scripts
BackendFlask
Lightweight and powerful web framework
FrameworkOpenAI API
Intelligence engine using GPT-4o models
AI APISQLAlchemy
Advanced ORM for database and order management
Database ORMChart.js
Visual representation of store performance
VisualizationSQLite
Efficient local database with auto-migration support
StorageHTML5/CSS3
Premium UI with glassmorphism and responsiveness
UI/UX📦 Installation Guide - Step by Step
⏱️ Setup Time: ~3-5 minutes
Follow these steps to launch your AI-Commerce Chatbot locally.
📋 Prerequisites
🚀 Execution Steps
git clone https://github.com/rskworld/ecommerce-chatbot.git
cd ecommerce-chatbot
# Install required packages
pip install -r requirements.txt
- Copy
.env.exampleto.env - Add your OpenAI key:
OPENAI_API_KEY=your_key_here
# Start the Flask development server
python app.py
🎉 You are ready!
Open http://127.0.0.1:5000 in your browser to experience your AI shopping assistant.
📁 Project Structure
ecommerce-chatbot/ ├── app.py # Main Flask Application ├── bot_logic.py # Core AI/Business Logic ├── models.py # Database Schemas ├── database.py # DB Initialization ├── requirements.txt # Dependency List ├── static/ # Assets (CSS, JS, Images) └── templates/ # HTML Templates (Chat, Admin)