Skip to content

Shopping assistant built with langgraph Groq Streamlit

Notifications You must be signed in to change notification settings

SBDI/shopping-assistant

Repository files navigation

shopping-assistant diagram

🛍️ Shopping Assistant

This project implements a Smart Shopping assistant using LangChain, LangGraph, and Streamlit, powered by the Groq API. fu Sensitive actions, like creating orders, require human approval through a human-in-the-loop mechanism.

👉 Check out the Live App Here ! for a demo!


✨ Key Features

  • Product Inquiries: Answer questions about availability, pricing, and stock.
  • Order Placement: Create new orders with human approval.
  • Order Tracking: Provide real-time order status updates.
  • Personalized Recommendations: Suggest products based on purchase history.

🎯 Use Cases

  • E-commerce: Streamline customer service and boost sales.
  • Customer Support: Automate routine tasks with user control.
  • Sales Teams: Offer personalized product recommendations.

🛠️ Built With

  • LangChain: Framework for AI-powered conversations.
  • LangGraph: Stateful agent workflows.
  • SQLite: Lightweight database for product and order data.
  • Streamlit: Interactive web interface.
  • Groq API: Fast and efficient natural language understanding.

🗂️ Project Structure

sopping-assistant/
├── database/          # Database setup and management
├── shopping_assistant/       # Agent logic and tools
├── app.py            # Streamlit app
├── README.md          # This file
├── requirements.txt   # Project dependencies
└── database_init.py  # Database initialization

🚀 Get Started

⚙️ Prerequisites

  • Python 3.12+
  • Virtual environment recommended.

🛠️ Installation

  1. Clone the Repository:

    git clone https://github.com/SBDI/shopping-assistant.git
    cd shopping-assistant
  2. Set Up Virtual Environment:

  • uv is recommended !
    uv venv --python 3.12
    venv\Scripts\activate       # Windows
    source venv/bin/activate    # Linux/Mac       
  1. Install Dependencies:

    uv pip install -r requirements.txt
  2. Configure Environment:

    • Rename .env-example to .env.
    • Add your GROQ_API_KEY and LANGCHAIN_API_KEY.
  3. Initialize Database:

    python database_init.py
  4. Run the App:

    streamlit run app.py

🔗 Related Resources


Future Roadmap

  • Multi-Agent System
  • Modular Reasoning, Knowledge, and Language (MRKL).
  • User feedback collection.
  • Specialized agents for returns/refunds
  • Customer sentiment analysis
  • Scalability Improvements
  • Redis caching layer
  • Async API processing

About

Shopping assistant built with langgraph Groq Streamlit

Resources

Stars

Watchers

Forks