Skip to content

This is an AI bot that using Langchain to QA on a database and provide customers with product recommendations.

Notifications You must be signed in to change notification settings

Hamas-ur-Rehman/Sales_AI_BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SalesRep-AI-Sales-Bot

This is a Demo Project on seeing how a power of LLM's could be utilized to add AI to a Sales Bot

promo1 promo2

Miscellaneous

  • The prompts can be found inside of the prompts.py file

Installation Instructions (work in progress)

  • For mac have xcode installed
  • Open Terminal and run the following step by step
xcode-select --install
  • Users running macOS High Sierra, Sierra, El Capitan, or earlier, run:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Users running Catalina, Mojave, or Big Sur, run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • Enter your administrator password when prompted and press Return to continue. Wait for the download to finish
  • Remember to restart
  • Now run this
python3

if you get no errors you can skip the next step else do it

pip install virtualenv
virtualenv env
source env/bin/activate 
pip install langchain openai unstructured unstructured[local-inference] chroma chromadb python-dotenv tiktoken gradio langdetect deep-translator llama-index
git clone https://github.com/Hamas-ur-Rehman/SalesRep-AI-Sales-Bot
cd SalesRep-AI-Sales-Bot
python3 main.py
  • Now please be paitent while it loads and after that you can try talking to it
  • IMPORTANT remember to add your openAI API key into the main.py file on line 3
  • Create a file called .env and add the following line to it make sure this file is in the same folder as the main.py file
OPENAI_API_KEY= ADD YOU OPEN AI API KEY HERE

TODOS: IMPORTANT + URGENT

  • Create an Inteface for the Demo
  • Work on Seperating the prompts to a seperate File for easier prompt injection
  • work on the installation instructions
  • if user engages in Swedish language, so will Alice.
  • make sure to qualify user preferences before recommending a product. at least 2 to 5 qustions before any product recommendation.
  • make text from Alice always short, not longer than 10 words in the beginning of the conversation
  • add introduction line with "Hey, can I help you get something?"

TODOS: IMPORTANT + NOT URGENT

  • Add prefilled conversation suggestions that will make it easier for the user to keep the conversation going
  • make the chat response time faster

About

This is an AI bot that using Langchain to QA on a database and provide customers with product recommendations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages