/ecommerce-ai

An e-commerce AI bot that can answer customer queries by looking up a database.

Primary LanguageJavaScript

E-commerce ai bot

This AI bot uses llm-client to take a question from a user and lookup a database to be able to answer the question. It uses the function calling capabilities of OpenAI's GPT-3.5 to be able to call functions and return data from the sqlite3 database.

Installation

  1. Clone the repository
git clone https://github.com/amitdeshmukh/ecommerce-ai.git
cd ecommerce-ai
  1. Install the dependencies
npm install
  1. Install sqlite3 if you don't have it already
brew install sqlite3
  1. Create the database from the create_database.sql file
sqlite3 ecommerce.db < create_database.sql

Usage

  1. Create a .env file in the root of the project and add the following variables
OPENAI_APIKEY=<your-openai-api-key>
  1. Run the bot
npm start # or node index.js