Code Monkey home page Code Monkey logo

ecommerce-chatbot's Introduction

E-Commerce Chatbot

An example of a chatbot built with Microsoft Bot Framework and featuring e-commerce capabilities via:

I presented this bot on API Strat in Boston as an example of a smart app built with cognitive APIs. This bot is also going to SATURN and SYNTAX.

Video

Ecommerce Chatbot Video

How To Run

If you would like to run it, you would need:

Deploy your bot (I used Azure App Service) and register it with the dev.botframework.com.

Set the following environment variables:

  • MICROSOFT_APP_ID - you will get it from the dev.botframework.com during registration
  • MICROSFT_APP_PASSWORD - you will get it from the dev.botframework.com during registration
  • RECOMMENDATION_API_KEY - your API key to the Recommendations API service from the Microsoft Cognitive Services
  • RECOMMENDATION_MODEL- you can create multiple recommendation models and this way you can choose which one the bot will use for suggestions
  • RECOMMENDATION_BUILD - a given model (your product catalog, historical transactions, and business rules) can have multiple recommendation builds and this is how you tell which one the bot will use
  • SEARCH_APP_NAME - the name of your Azure Search service. The code assumes that you have all three indexes in the same Azure Search resource
  • SEARCH_API_KEY- your API key to the Azure Search service
  • LUIS_ENDPOINT - the URL of your published LUIS model. Please keep the Add verbose flag on and remove &q= from the URL. THe bot framework will add it.
  • SENTIMENT_API_KEY - your API key to the Text Analytics service.

If you would like to connect the Bing Spell Check service, you would do so in LUIS when publishing your endpoint. This integration is transparent to the app and all you do is provision your Azure subscription key to the service and connect it to your LUIS app.

To-Do

  • The shopping cart is currently kept in the bot's memory (session.privateConversationData.cart) and does not sync back to Moltin
  • Checkout process is not integrated with Moltin
  • The bot is not multi-lingual

License

MIT

ecommerce-chatbot's People

Watchers

 avatar  avatar

Forkers

malotian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.