This is POC of an intelligent chatbot tailored for an e-commerce platform, enabling seamless user interactions by accurately identifying the intent behind user queries. It leverages real-time access to the platform's database, allowing it to provide precise and up-to-date responses.
Folder structure
- app: All the code for chatbot
- web-scraping: Code to scrap e-commerce website
This chatbot currently supports two intents:
- faq: Triggered when users ask questions related to the platform's policies or general information. eg. Is online payment available?
- sql: Activated when users request product listings or information based on real-time database queries. eg. Show me all nike shoes below Rs. 3000.
-
Run the following command to install all dependencies.
pip install -r app/requirements.txt
-
Inside app folder, create a .env file with your GROQ credentials as follows:
GROQ_MODEL=<Add the model name, e.g. llama-3.3-70b-versatile> GROQ_API_KEY=<Add your groq api key here> -
Run the streamlit app by running the following command.
streamlit run app/main.py
Additional Terms: This software is licensed under the MIT License. However, commercial use of this software is strictly prohibited without prior written permission from the author. Attribution must be given in all copies or substantial portions of the software.

