Skip to content

sontung2310/Retail_Chatbot

Repository files navigation

Building Chatbot for Laptop store/ E-commerce

Chatbot description

  • Recommend an appropriate laptop based on the customer's desires. Users send their requirements or the features they are looking for in a laptop, and the chatbot will recommend some options and explain why those products are suitable.
  • Engage in chit-chat, interact with users, and answer questions that are not related to the laptop domain.
  • The chatbot can interact with users through both text and voice.

Flow chart of Chatbot

Alt text

How to run the Chatbot:

  • Run pip install -r requirements.txt to install all dependencies
  • Run python get_api.py --openai_key="YOUR_OPENAPI_KEY" to start the LLM part which will answer the user's question
  • In bot.py, fill line 18 and 19 with your own AZURE_SPEECH_KEY and AZURE_SPEECH_REGION
  • Run python app.py to start the Chatbot

Testing the bot using Bot Framework Emulator

Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

  • Install the Bot Framework Emulator version 4.3.0 or greater from here

Connect to the bot using Bot Framework Emulator

  • Launch Bot Framework Emulator
  • Enter a Bot URL; for example http://localhost:3978/api/messages

Screenshot of Demo

  • When input is text: Alt text

  • When input is speech: Alt text

27ab232 (First commit) 981142d (Chatbot version 1)

Releases

No releases published

Packages

No packages published

Languages