Giter VIP home page Giter VIP logo

bots's Introduction

I, For One, Welcome Our New Bot Overloads

Repo for talk on Microsoft's Bot Framework as given at Prairie.Code() on Oct 28, 2016 and CenWI Dev UG on Dec 1, 2016.

A blog post on the Bot Framework can be found here

Demo 1 - Simple Weather Bot

  • Simple example of having a bot get the weather for a particular city.
  • The bot needs to be mentioned in order for it to "do its work"
  • It is possible that many results could be returned by the geo service
  • At first the bot takes the first result to get the weather
  • Then to prompt the user as to which city to get the weather for, a hero card is created and sent back as an attachment. However, it becomes difficult to handle all the requests (hero card and "first time" requests).

Demo 2 - IDialogs and IDialogContexts

  • Extend the first example, but this time using IDialogs to show how a conversation and be suspended and then resumed.
  • More intelligent conversations can now occur because dialogs encapsulate smaller portions of an overall flow of a larger bot.

Geo and Weather Service Setup

For both services, some additional steps are necessary in order to contact the Google geocoding and DarkSky APIs.

  1. Go here: https://developers.google.com/maps/documentation/geocoding/get-api-key to get a Google Maps API key. Enter that key on line 18 of GeoService.cs

  2. Go to https://darksky.net/dev/ and register for an account and get an API key from them as well. Enter that on line 59 of WeatherService.cs

bots's People

Contributors

codemillmatt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

revealer409

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.