Giter Site home page Giter Site logo

sjfbo / sobota-smart-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.29 MB

A weather bot which uses the MS Bot Framework and LUIS (Language Understanding Intelligent Service) for NLP.

JavaScript 50.47% Batchfile 49.53%
botframeworkv4 botframework luis luis-ai nodejs node node-js slack-bot slackbot slack

sobota-smart-bot's Introduction

Sobota, a not so smart bot

visual demo

This bot has been created using Bot Framework, it shows how to:

  • Use LUIS to implement core AI capabilities.
  • Sobota understands (within some limits) a user request (in English) to get the current weather in a city via the OpenWeatherMap API.

Note:

  • Some cities' names might not be recognized by LUIS, the default trained model that I improved a bit is still not so good for some less known cities.
  • Works perfectly well as a Slack application if you add a channel on your Azure web app for the bot!

Prerequisites

  • Node.js version 10.14 or higher
    # determine node version
    node --version

To run the bot locally

  • Download the bot code from the Build blade in the Azure Portal (make sure you click "Yes" when asked "Include app settings in the downloaded zip file?").
    • If you clicked "No" you will need to copy all the Application Settings properties from your App Service to your local .env file.
  • Install modules
    npm install
  • Run the bot
    npm start

Testing the bot using Bot Framework Emulator

Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

  • Install the Bot Framework Emulator version 4.5.2 or greater from here

Connect to the bot using Bot Framework Emulator

  • Launch Bot Framework Emulator
  • File -> Open Bot
  • Enter a Bot URL of http://localhost:3978/api/messages

Deploy the bot to Azure

After creating the bot and testing it locally, you can deploy it to Azure to make it accessible from anywhere. To learn how, see Deploy your bot to Azure for a complete set of deployment instructions.

Further reading

sobota-smart-bot's People

Contributors

dependabot[bot] avatar sjfbo avatar

Stargazers

 avatar  avatar

Watchers

 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.