From 33d4e24519afd7a2cc3250a9cb4e768b67a1a4a1 Mon Sep 17 00:00:00 2001 From: Phil Jirsa Date: Tue, 9 Feb 2021 14:41:33 -0700 Subject: [PATCH 1/3] Add location coords to initconversation --- public/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) 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}" } From 37787a091b4102c1bd5ffa4678b619e546475356 Mon Sep 17 00:00:00 2001 From: alonit Date: Mon, 22 Feb 2021 16:30:31 +0200 Subject: [PATCH 2/3] - Remove MAINTAINER from Dockerfile as it is deprecated - Rename brand to Azure Health Bot --- README.md | 4 ++-- dockerfile | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 435a6f36..6e7acc89 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://www.microsoft.com/en-us/research/project/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 From 7edbc05ee172ea3dae2529d6cfd60e460fad2829 Mon Sep 17 00:00:00 2001 From: alonit Date: Thu, 4 Mar 2021 16:48:52 +0200 Subject: [PATCH 3/3] change url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e7acc89..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 [Azure Health Bot](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.