Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.

Expand Down
1 change: 0 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM node:latest
MAINTAINER Microsoft Healthcare Bot Team

# Create app directory
WORKDIR /usr/src/app
Expand Down
11 changes: 11 additions & 0 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,6 +119,7 @@ function initBotConversation() {
triggeredScenario: {
trigger: "{scenario_id}",
args: {
location: location,
myVar1: "{custom_arg_1}",
myVar2: "{custom_arg_2}"
}
Expand Down