GithubHelp home page GithubHelp logo

augibi / healthbotcontainersample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/healthbotcontainersample

0.0 1.0 0.0 253 KB

Health Bot Container Sample

HTML 20.29% JavaScript 73.53% CSS 6.18%

healthbotcontainersample's Introduction

Health Bot Container

Note: In order to use this Web Chat with the Health Bot service, you will need to obtain your Web Chat secret by going to "Integration/Secrets" on the navigation panel. Please refer to Microsoft Health Bot for a private preview and details.

A simple web page to hand off users to the Microsoft Health bot

1.Deploy the website:

Deploy to Azure

Note: It is recommended you use the default Linux host type when deploying the container. However, if you wish to enable online file editing using the App Service Editor, select 'Windows'.

2.Set the following environment variables:

APP_SECRET

WEBCHAT_SECRET

3.Configure scenario invocation (optional):

The Healthcare Bot service uses language models to interpret end user utterances and trigger the relevant scenario logic in response.

Alternatively, you can programmaticaly invoke a scenario before the end user provides any input.

To implement this behavior, uncomment the following code from the function initBotConversation() in the /public/index.js file:

triggeredScenario: {
    trigger"{scenario_id}",
    args{
        myVar1"{custom_arg_1}",
        myVar2"{custom_arg_2}"
    }
}

Replace {scenario_id} with the scenario ID of the scenario you would like to invoke. You can also pass different values through the "args" object. 

You can read more about programmatic client side scenario invocation here

4.Set the Bot service direct line channel endpoint (optional)

In some cases it is required to set the endpoint URI so that it points to a specific geography. The geographies supported by the bot service each have a unique direct line endpoint URI:

  • directline.botframework.com routes your client to the nearest datacenter. This is the best option if you do not know where your client is located.
  • asia.directline.botframework.com routes only to Direct Line servers in Eastern Asia.
  • europe.directline.botframework.com routes only to Direct Line servers in Europe.
  • northamerica.directline.botframework.com routes only to Direct Line servers in North America.

Pass your preferred geographic endpoint URI by setting the environment variable: DIRECTLINE_ENDPOINT_URI in your deployment. If no variable is found it will default to directline.botframework.com

Note: If you are deploying the code sample using the "Deploy to Azure" option, you should add the above secrets to the application settings for your App Service.

Agent webchat

If the agent webchat sample is also required, switch to the live agent handoff branch

healthbotcontainersample's People

Contributors

amir-microsoft avatar barneaoren avatar adamwalkermicrosoft avatar arieschwartzman avatar guybeckermicrosoft avatar itye-msft avatar amirt-microsoft avatar balteravishay avatar adamwalker-112358 avatar kant avatar eladiw avatar pjirsa avatar ms-santi avatar

Watchers

James Cloos 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.