Git Product home page Git Product logo

bot-luis-form's Introduction

BOT-LUIS-FORM

This repository is a code sample for creating a bot that uses LUIS in order to extract user intent and entities. For each intent, we define a list of fields we would like to have filled-in by the user in order to be able to process the request. This is configuration based and can be found in the intentForms.json file. The bot will use all of the values LUIS was able to extract, and will prompt the user to provide values for the missing fields.

Main code can be found in dialogs.js.

Using

git clone https://github.com/CatalystCode/bot-luis-form.git
cd bot-luis-form
npm install
npm start
  • In order to use this sample you'll need to onboard with LUIS and create your own LUIS application. The LUIS model that was used for this demo can be imported into your LUIS app. It can be found in the luis-model folder.
  • Edit the file luis.js and update the luisEndpoint variable with the endpoint of your LUIS application.
  • Open the bot emulator, connect to the bot, say hi and enter your request when the bot asks how it can help.

A few examples:

  • I want to schedule a test drive for Seat Leon for tomorrow
  • My name is Ami, and I would like to schedule a test drive

The bot will use LUIS to extract all the information it can: the intent and the different entities. It will prompt you to fill in the fields LUIS couldn't extract because it didn't understand or they were not provided by the user.

License

MIT

bot-luis-form's People

Contributors

amiturgman 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.