Skip to content

leetoufong/test-healthbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[08/01/2021] This repo has moved under CDC's private repository and is no longer supported/maintained.

test-healthbot

    ______ _____    ______ 
   / _____|____ \  / _____)
  | /      _   \ \| /      
  | |     | |   | | |      
  | \_____| |__/ /| \_____ 
   \______)_____/  \______)

Custom parser for interpretting JSON exports from CDC's Self-Checker health bot. UI styles are driven by CDC's Template Package version 4.

Developers:

  • Tou Fong Lee
  • Clay Davis

Technology Stack:

  • HTML
  • CSS
  • Javascript, jQuery, ES6 syntax (let, const, arrow functions)
  • Adaptive Cards
  • QnA Maker (possibly)

Dependencies

  • CDC Template Package v4
  • Local web server (http-server, Python, etc)

Getting Started:

  1. Open up your CLI of choice and clone this repository in desired location on your local hard drive.
  2. cd to the directory.
  3. Requires any simple command line tooling that spins up a local web server, such as http-server.
  4. Once in directory, spin up local web server. If using http-server, enter http-server into the CLI.
  5. Open up browser of choice and go to localhost url with correct port number. In the case of http-server, url should be http://localhost:8080.

Functionality Specifics

Card Types

There are 7 possible types:

  1. assignVariable - Assigns variables to the scenario object.
  2. action - Builds out key/value pairs to the scenario object based via JavaScript stored as strings on the onInit property
  3. prompt - Builds out the controls that users interact with to progress them down the decision tree. This control type may include AdaptiveCards.
  4. statement - Builds out messages to relay to user. This control type may include AdaptiveCards.
  5. branch - Branches users down the decision based on certain boolean conditions stored in the scenario object. If true, progress down the targetStepId path, else progress down the designer.next path.
  6. replaceScenario - Dynamically loads a new JSON object scenario (ie. covid19, covid19_core, covid19_core_pediatric). Updates the scope property in scenario object accordingly. This value is found in each JSON file's scenario_trigger property.
  7. AdaptiveCard - Calls Microsoft's Adaptive Cards dynamic framework to build out technology-agnostic snippets of UI. Adaptive Cards are usually a child type of prompt and statement card types.

Useful Links:

About

Testing out CDC's Azure Bot named Self-Checker Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors