GithubHelp home page GithubHelp logo

martinkearn / bot-shopo Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 2.8 MB

A sample bot designed around common shopping and retail scenarios

License: MIT License

C# 54.93% Batchfile 13.93% HTML 31.14%
bot-framework luis azure-bot-service

bot-shopo's Introduction

Basic Bot template

This bot has been created using Microsoft Bot Framework,

  • Use LUIS to implement core AI capabilities
  • Implement a multi-turn conversation using Dialogs
  • Handle user interruptions for such things as Help or Cancel
  • Prompt for and validate requests for information from the user

Prerequisite to run this bot locally

  • Download the bot code from the Build blade in the Azure Portal
  • Update the appsettings.json file in the root of the bot project with the botFilePath and botFileSecret
  • You can find the botFilePath and botFileSecret in the Azure App Service application settings.

Your appsettings.json file should look like this

{
    "botFilePath": "<copy value from App settings>",
    "botFileSecret": "<copy value from App settings>"
}

Run in Visual Studio

  • Open the .sln file with Visual Studio.
  • Press F5.

Run in Visual Studio Code

  • Open the bot project folder with Visual Studio Code.
  • Bring up a terminal.
  • Type 'dotnet run'.

Testing the bot using Bot Framework Emulator

Microsoft 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 from here.

Connect to bot using Bot Framework Emulator

  • Launch the Bot Framework Emulator
  • File -> Open bot and navigate to the bot project folder
  • Select <your-bot-name>.bot file

Deploy this bot to Azure

Publish from Visual Studio

  • Open the .PublishSettings file you find in the PostDeployScripts folder
  • Copy the userPWD value
  • Right click on the Project and click on "Publish..."
  • Paste the password you just copied and publish

Publish using the CLI tools

You can use the MSBot Bot Builder CLI tool to clone and configure any services this sample depends on. To install all Bot Builder tools -

Ensure you have Node.js version 8.5 or higher

npm i -g msbot chatdown ludown qnamaker luis-apis botdispatch luisgen

To clone this bot, run

msbot clone services -f deploymentScripts/msbotClone -n <BOT-NAME> -l <Azure-location> --subscriptionId <Azure-subscription-id>

Further reading

bot-shopo's People

Contributors

martinkearn avatar

Stargazers

 avatar  avatar

Watchers

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