GithubHelp home page GithubHelp logo

party-bot's Introduction

PartyBot Bot

This bot has been created using Microsoft Bot Framework,

This bot is designed to do the following:

Create Awesome Parties

About the generator

The goal of the BotBuilder Yeoman generator is to both scaffold out a bot according to general best practices, and to provide some templates you can use when implementing commonly requested features and dialogs in your bot. As a result, you will notice that all dialogs are located in a folder called dialogs, and the one you chose when running the wizard becomes the default (or root) dialog. You are free to use the additional dialogs provided (or delete them) as you see fit.

One thing to note is it's not possible to completely generate a bot or dialog, as the questions you need to ask of your user will vary wildly depending on your scenario. As such, we hope we've given you a good starting point for building your bots with Bot Framework.

Dialogs

This generator provides the following dialogs:

  • LUIS Dialog, for use with LUIS
  • QnA Maker Dialog, for use with QnA Maker
  • Echo Dialog, for simple bots

Each class has three properties to help simplify addition to an existing bot:

  • id: Used for the id
  • waterfall: The logic (or waterfall) for the dialog
  • name: The intent name for the dialog for triggering

You can add a dialog to a bot with the following code:

// declare your dialog

bot.dialog(dialog.id, dialog.waterfall).triggerAction({ matches: dialog.name });

By using this structure, it would be possible to dynamically load all of the dialogs in the dialogs folder, and then add them to the bot.

Getting Started

Dependencies

  • Restify Used to host the web service for the bot, and for making REST calls
  • dotenv Used to manage environmental variables

Structure

app.js references the bot and starts a Restify server. bot.js loads the dialog type you selected when running the generator and adds it as the default dialog. dialogs.js contains the list of sample dialogs.

Configuring the bot

Update .env with the appropriate keys:

  • KBID and SUBSCRIPTION_KEY for QnA Maker
  • LUIS_MODEL_URL for LUIS
  • App ID and Key for registered bots.

In the case of LUIS, you will need to update the dialog in dialogs.js to work with the appropriate intent and entities.

The dialogs

  • Echo dialog is designed for simple Hello, World demos and to get you started.
  • LUIS dialog has the basic code to retrieve an entity

Running the bot

node app.js

Additional Resources

party-bot's People

Contributors

anderskristo avatar sbtn avatar

Watchers

Erik Edlund avatar James Cloos avatar  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.