Skip to content

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

Notifications You must be signed in to change notification settings

amitdeshmukh/ecommerce-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published