GithubHelp home page GithubHelp logo

isabella232 / cognitive-services-studybot-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/cognitive-services-studybot-node

0.0 0.0 0.0 948 KB

Study chat bot app for students that allows school subject queries and returns relevant results.

License: MIT License

JavaScript 95.28% Batchfile 1.66% CSS 1.08% HTML 1.98%

cognitive-services-studybot-node's Introduction

page_type languages products description
sample
javascript
nodejs
azure
azure-cognitive-services
These samples create a Study Bot chat client using QnA Maker.

Study Bot (Node.js)

This sample has a StudyBotNode app which was created in Visual Studio, and it has a StudyBotNode_CLI which is the same app but decoupled from Visual Studio and run from the command line. Each app features an embedded bot that you will create in the Azure portal. Create the bot first, then download one of the Study Bot sample apps to embed your bot into. Follow the readme files for the bot and the apps.

These samples create a Study Bot chat client using QnA Maker (with Chitchat) and LUIS. Each query into the chat bot (v4) will be accompanied by relevant search results in an encyclopedia, Microsoft Academic, and a news/blogs section as a study aid. Teachers are able to create their own question and answer FAQs to create a study guide as input for the chat bot if they want it to follow a preferred curriculum. However, demo FAQs are available for this sample, included in the qna-luis-botv4-node/FAQs folder. The focus of this app is to enable a more relevant experience of studying, where students can study a subject with a customized chat bot along with multiple web resources.

Features

  • QnA Maker with LUIS: There are 3 knowledge bases (created from FAQs in qnamaker.ai) that LUIS directs the user to after a query is received in the chat bot. LUIS has utterances created (in luis.ai) that will allow the right knowledge base to be used. For instance, if the user types in "virus", LUIS knows to go to the biology knowledge base to retrieve a definition (answer) to the user's input. The QnA Maker feature Chitchat has been added to the bot v4 as a 4th knowledge base.

  • Speech service: Through the microphone button in the webchat, this sample can do Speech-to-Text and Text-to-Speech. When a user clicks the microphone button and speaks in their mic, the speech will be printed to the webchat and the bot will respond with an answer that is audible and printed in the webchat.

  • The web resources (tabs below the webchat) will take a student query, like "virus", automatically from the webchat queries and return relevant information about it in an encyclopedia, Microsoft Academic, as well as a general Bing search that returns mostly news and blogs on the query.

Prerequisites

  1. Start with the qna-luis-botv4-node sample. Once that is up and running, then download and run the Study Bot app (either the StudyBotNode or StudyBotNode_CLI) sample. The Study Bot depends on the bot you build in the qna-luis-botv4-node sample. Follow the README files in each sample.

  2. Visual Studio 2017+ or a command line (CLI)

  3. The qna-luis-botv4-node is a Node.js web app bot created in the Azure portal.

  4. The StudyBotNode app is a Node/Express Visual Studio app, whereas the StudyBotNode_CLI app uses Express but can be run from the command line.

Resources

cognitive-services-studybot-node's People

Contributors

microsoftopensource avatar msftgits avatar supernova-eng avatar wiazur avatar

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.