Code Monkey home page Code Monkey logo

plugin-mibew's Introduction

Mibew Bot Framework Plugin

Plugin Bot framework to mibew.

Installation

  1. Get the archive with the plugin sources. At the moment the only option is to build the plugin from sources.

  2. Untar/unzip the plugin's archive.

  3. Put files of the plugins to the <Mibew root>/plugins folder.

  4. Add plugins configs to "plugins" structure in "<Mibew root>/configs/config.yml". If the "plugins" stucture looks like plugins: [] it will become:

    plugins:
        "TaisaPlus:Bot": # Plugin's configurations are described below
            BotName: "Option bot name cannot be empty"
            hostDirectLine: "Option hostDirectLine ...api/conversation cannot be empty"
            botSecret: "Option botSecret cannot be empty"
            hostToken: "Option hostToken ...api/token cannot be empty"
            message_error_user_bot_does_not_understand: "Optional message"
            message_error_user_bot_can_not_find_an_answer: "Optional message"
            message_error_user_bot_does_not_find_information: "Optional message"
            message_error_user_bot_does_not_have_access_to_information: "Optional message"
            ...

    Ejemplo

    plugins:
        "TaisaPlus:Bot": # Plugin's configurations are described below
            BotName: "EchoBotElias"
            hostDirectLine: "https://directline.botframework.com/api/conversations"
            botSecret: "GBNvay8yhg4.cwA.13A.wrEqcQ3xdh_x7axL3QmObNTXGrny8eCgxnrOqdCj0OM"
            hostToken: "https://directline.botframework.com/api/tokens"
            message_error_user_bot_does_not_understand: "No entiendo lo que dices..."
            message_error_user_bot_can_not_find_an_answer: "Espera un momento..."
            message_error_user_bot_does_not_find_information: "Espera un momento..."
            message_error_user_bot_does_not_have_access_to_information: "No encuentro información..."
            ...
  5. Navigate to "<Mibew Base URL>/operator/plugin" page and enable the plugin.

Build from sources

There are several actions one should do before use the latest version of the plugin from the repository:

  1. Obtain a copy of the repository using git clone, download button, or another way.
  2. Install node.js and npm.
  3. Install Gulp.
  4. Install npm dependencies using npm install.
  5. Run Gulp to build the sources using gulp default.

Finally .tar.gz and .zip archives of the ready-to-use Plugin will be available in release directory.

Creating bots compatible with BotFramework

The bot must be able to return the following errors with messages:

  1. message: 'Bot does not understand'
  2. message: 'Bot can not find an answer'
  3. message: 'Bot does not find information'
  4. message: 'Bot does not have access to information'

plugin-mibew's People

Contributors

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