diff --git a/README.md b/README.md index 435a6f36..6d6ef16d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Health Bot Container -A simple web page that allows users to communicate with the [Microsoft Healthcare Bot service](https://www.microsoft.com/en-us/research/project/health-bot/) through a WebChat. +A simple web page that allows users to communicate with the [Azure Health Bot](https://azure.microsoft.com/en-us/services/bot-services/health-bot/) through a WebChat. **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. @@ -18,7 +18,7 @@ A simple web page that allows users to communicate with the [Microsoft Healthcar 3.Configure scenario invocation (optional): -The Healthcare Bot service uses [language models](https://docs.microsoft.com/HealthBot/language_model_howto) to interpret end user utterances and trigger the relevant scenario logic in response. +The Health Bot service uses [language models](https://docs.microsoft.com/HealthBot/language_model_howto) 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. diff --git a/dockerfile b/dockerfile index f0c47081..738f59a6 100644 --- a/dockerfile +++ b/dockerfile @@ -1,5 +1,4 @@ FROM node:latest -MAINTAINER Microsoft Healthcare Bot Team # Create app directory WORKDIR /usr/src/app diff --git a/public/index.js b/public/index.js index d44cb552..40575d3a 100644 --- a/public/index.js +++ b/public/index.js @@ -76,6 +76,16 @@ function initBotConversation() { if (tokenPayload.directLineURI) { domain = "https://" + tokenPayload.directLineURI + "/v3/directline"; } + let location = undefined; + if (tokenPayload.location) { + location = tokenPayload.location; + } else { + // set default location if desired + /*location = { + lat: 44.86448450671394, + long: -93.32597021107624 + }*/ + } var botConnection = window.WebChat.createDirectLine({ token: tokenPayload.connectorToken, domain: domain @@ -109,6 +119,7 @@ function initBotConversation() { triggeredScenario: { trigger: "{scenario_id}", args: { + location: location, myVar1: "{custom_arg_1}", myVar2: "{custom_arg_2}" }