From dc4c81048eead090d309403365e72e093e96767d Mon Sep 17 00:00:00 2001 From: Karine Dery Date: Mon, 20 Jul 2020 16:09:55 -0400 Subject: [PATCH] chore: migrate to Rasa 2.0.0.a1 --- .circleci/config.yml | 2 +- action-server/Dockerfile | 2 +- .../covidflow/actions/action_fallback.py | 43 - .../actions/action_unsupported_intent.py | 4 +- .../actions/question_answering_form.py | 2 +- action-server/covidflow/constants.py | 2 +- .../actions/test_question_answering_form.py | 8 +- core/Dockerfile | 2 +- core/Makefile | 4 +- core/config/config.core.yml | 10 +- core/config/config.en.yml | 4 + core/config/config.fr.yml | 4 +- .../policies/unsupported_intent_policy.py | 5 +- core/data/rules.yml | 406 +++++++ core/data/stories.md | 1004 +---------------- core/domain/domain.core.yml | 16 +- .../interactions/user/less.jinja | 3 - .../interactions/user/more.jinja | 3 - .../no_symptoms_more_with_error.yml | 2 +- load-tests/Makefile | 2 +- 20 files changed, 485 insertions(+), 1043 deletions(-) delete mode 100644 action-server/covidflow/actions/action_fallback.py create mode 100644 core/data/rules.yml delete mode 100644 integration-tests-en/interactions/user/less.jinja delete mode 100644 integration-tests-en/interactions/user/more.jinja diff --git a/.circleci/config.yml b/.circleci/config.yml index 3dc155c6..2e4c6c82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -318,7 +318,7 @@ jobs: COMPONENT_PATH: /app/core-<> working_directory: /app/core docker: - - image: rasa/rasa:1.9.4-full + - image: rasa/rasa:2.0.0a1-full entrypoint: ["/bin/bash"] steps: - checkout: diff --git a/action-server/Dockerfile b/action-server/Dockerfile index c7d4c783..3eed322c 100644 --- a/action-server/Dockerfile +++ b/action-server/Dockerfile @@ -1,4 +1,4 @@ -FROM rasa/rasa:1.9.4 as base +FROM rasa/rasa:2.0.0a1 as base EXPOSE 8080 COPY poetry.lock poetry.lock diff --git a/action-server/covidflow/actions/action_fallback.py b/action-server/covidflow/actions/action_fallback.py deleted file mode 100644 index db6a6fac..00000000 --- a/action-server/covidflow/actions/action_fallback.py +++ /dev/null @@ -1,43 +0,0 @@ -import copy -from typing import Any, Dict, List, Text - -from rasa_sdk import Action, Tracker -from rasa_sdk.events import ActionExecuted, UserUtteranceReverted, UserUttered -from rasa_sdk.executor import CollectingDispatcher - -from .lib.log_util import bind_logger - -ACTION_NAME = "action_fallback" - - -class ActionFallback(Action): - def name(self) -> Text: - return ACTION_NAME - - def run( - self, - dispatcher: CollectingDispatcher, - tracker: Tracker, - domain: Dict[Text, Any], - ) -> List[Dict[Text, Any]]: - bind_logger(tracker) - - last_user_event = tracker.get_last_event_for("user") - last_user_event = copy.deepcopy(last_user_event) - text = last_user_event["text"] - - fallback_user_event = UserUttered( - text, - parse_data={ - "text": text, - "intent": {"name": "fallback", "confidence": 1.0}, - "intent_ranking": [{"name": "fallback", "confidence": 1.0}], - "entities": [], - }, - ) - - return [ - UserUtteranceReverted(), - ActionExecuted("action_listen"), - fallback_user_event, - ] diff --git a/action-server/covidflow/actions/action_unsupported_intent.py b/action-server/covidflow/actions/action_unsupported_intent.py index 4e732c74..2e292712 100644 --- a/action-server/covidflow/actions/action_unsupported_intent.py +++ b/action-server/covidflow/actions/action_unsupported_intent.py @@ -30,8 +30,8 @@ def run( text, parse_data={ "text": text, - "intent": {"name": "fallback", "confidence": 1.0}, - "intent_ranking": [{"name": "fallback", "confidence": 1.0}], + "intent": {"name": "nlu_fallback", "confidence": 1.0}, + "intent_ranking": [{"name": "nlu_fallback", "confidence": 1.0}], "entities": [], }, ) diff --git a/action-server/covidflow/actions/question_answering_form.py b/action-server/covidflow/actions/question_answering_form.py index af898f09..6289839a 100644 --- a/action-server/covidflow/actions/question_answering_form.py +++ b/action-server/covidflow/actions/question_answering_form.py @@ -78,7 +78,7 @@ async def _activate_if_required( intent = _get_intent(tracker) # Fallback QA - if intent == "fallback": + if intent == "nlu_fallback": question = tracker.latest_message.get("text", "") result = await self.validate_active_question( diff --git a/action-server/covidflow/constants.py b/action-server/covidflow/constants.py index 36f03e1c..870d61f2 100644 --- a/action-server/covidflow/constants.py +++ b/action-server/covidflow/constants.py @@ -1,5 +1,5 @@ class Symptoms: # Not using an enum to avoid persisting enum values - NONE = "none" + NONE = "neni" MILD = "mild" MODERATE = "moderate" SEVERE = "severe" diff --git a/action-server/tests/actions/test_question_answering_form.py b/action-server/tests/actions/test_question_answering_form.py index 8e9b411c..ae42c11c 100644 --- a/action-server/tests/actions/test_question_answering_form.py +++ b/action-server/tests/actions/test_question_answering_form.py @@ -351,7 +351,7 @@ def test_fallback_question_success(self, mock_protocol): ) tracker = self.create_tracker( - active_form=False, intent="fallback", text=QUESTION + active_form=False, intent="nlu_fallback", text=QUESTION ) self.run_form(tracker, DOMAIN) @@ -377,7 +377,7 @@ def test_fallback_question_failure(self, mock_protocol): ) tracker = self.create_tracker( - active_form=False, intent="fallback", text=QUESTION + active_form=False, intent="nlu_fallback", text=QUESTION ) self.run_form(tracker, DOMAIN) @@ -413,7 +413,7 @@ def test_fallback_question_out_of_distribution(self, mock_protocol): ) tracker = self.create_tracker( - active_form=False, intent="fallback", text=QUESTION + active_form=False, intent="nlu_fallback", text=QUESTION ) self.run_form(tracker, DOMAIN) @@ -449,7 +449,7 @@ def test_fallback_question_need_assessment(self, mock_protocol): ) tracker = self.create_tracker( - active_form=False, intent="fallback", text=QUESTION + active_form=False, intent="nlu_fallback", text=QUESTION ) self.run_form(tracker, DOMAIN) diff --git a/core/Dockerfile b/core/Dockerfile index 17b55998..1302848d 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -1,4 +1,4 @@ -FROM rasa/rasa:1.9.4-full +FROM rasa/rasa:2.0.0a1-full EXPOSE 8080 COPY poetry.lock poetry.lock diff --git a/core/Makefile b/core/Makefile index 172056f4..d9177490 100644 --- a/core/Makefile +++ b/core/Makefile @@ -3,7 +3,7 @@ # include source code in any python subprocess export PYTHONPATH = . -RASA_VERSION=1.9.4 +RASA_VERSION=2.0.0a1 UID:=$(shell id -u) GID:=$(shell id -g) @@ -62,7 +62,7 @@ test: train-en: sh scripts/prepare-training-data.sh en - docker run \ + docker run -it \ --rm -v ${PWD}:/app \ --user ${UID}:${GID} \ rasa/rasa:${RASA_VERSION}-full train \ diff --git a/core/config/config.core.yml b/core/config/config.core.yml index e586fd43..cdbf5f56 100644 --- a/core/config/config.core.yml +++ b/core/config/config.core.yml @@ -1,7 +1,7 @@ # Configuration for Rasa Core. # https://rasa.com/docs/rasa/core/policies/ policies: - - name: FormPolicy + - name: RulePolicy - name: AugmentedMemoizationPolicy max_history: 10 - name: TEDPolicy @@ -9,11 +9,5 @@ policies: epochs: 100 evaluate_on_number_of_examples: 0 random_seed: 42 - - name: MappingPolicy - - name: "FallbackPolicy" - nlu_threshold: 0.3 - ambiguity_threshold: 0.0 - core_threshold: 0.0 - fallback_action_name: "action_fallback" - name: core.policies.unsupported_intent_policy.UnsupportedIntentPolicy - fallback_action_name: 'action_unsupported_intent' + fallback_action_name: "action_unsupported_intent" diff --git a/core/config/config.en.yml b/core/config/config.en.yml index c80b10ee..8be86857 100644 --- a/core/config/config.en.yml +++ b/core/config/config.en.yml @@ -5,10 +5,14 @@ language: en pipeline: - name: ConveRTTokenizer - name: ConveRTFeaturizer + case_sensitive: false - name: RegexFeaturizer - name: LexicalSyntacticFeaturizer + case_sensitive: false - name: CountVectorsFeaturizer + case_sensitive: false - name: CountVectorsFeaturizer + case_sensitive: false analyzer: "char_wb" min_ngram: 1 max_ngram: 4 diff --git a/core/config/config.fr.yml b/core/config/config.fr.yml index 579425ee..180b566b 100644 --- a/core/config/config.fr.yml +++ b/core/config/config.fr.yml @@ -2,11 +2,13 @@ language: "fr" # your two-letter language code pipeline: - name: WhitespaceTokenizer - case_sensitive: false - name: RegexFeaturizer - name: LexicalSyntacticFeaturizer + case_sensitive: false - name: CountVectorsFeaturizer + case_sensitive: false - name: CountVectorsFeaturizer + case_sensitive: false analyzer: "char_wb" min_ngram: 1 max_ngram: 4 diff --git a/core/core/policies/unsupported_intent_policy.py b/core/core/policies/unsupported_intent_policy.py index 079eccac..5d3b6fdd 100644 --- a/core/core/policies/unsupported_intent_policy.py +++ b/core/core/policies/unsupported_intent_policy.py @@ -17,7 +17,7 @@ "get_assessment", "ask_question", "navigate_test_locations", - "fallback", + "nlu_fallback", ] AFFIRM_DENY_INTENTS = [ @@ -25,7 +25,7 @@ "affirm", ] -FALLBACK_INTENT = "fallback" +FALLBACK_INTENT = "nlu_fallback" SUPPORTED_INTENTS_BY_ACTION = { "action_greeting_messages": [ @@ -61,7 +61,6 @@ "utter_ask_when_first_symptoms": AFFIRM_DENY_INTENTS, } -FALLBACK_INTENT = "fallback" GET_ASSESSMENT_INTENT = "get_assessment" SELF_ASSESS_DONE_SLOT = "self_assess_done" diff --git a/core/data/rules.yml b/core/data/rules.yml new file mode 100644 index 00000000..f69215db --- /dev/null +++ b/core/data/rules.yml @@ -0,0 +1,406 @@ +rules: + # Replace mapping policy + - rule: Send Validation Code + steps: + - intent: send_validation_code + - action: action_send_validation_code + + - rule: Send Daily checkin reminder + steps: + - intent: send_daily_checkin_reminder + - action: action_send_daily_checkin_reminder + + - rule: Greet + steps: + - intent: greet + - action: action_greeting_messages + + - rule: Severe symptoms + steps: + - form: assessment_form + - ... + - action: assessment_form + - form: null + - slot: symptoms + value: severe + - action: action_severe_symptoms_recommendations + + - rule: moderate symptoms + steps: + - form: assessment_form + - ... + - action: assessment_form + - form: null + - slot: symptoms + value: moderate + - action: home_assistance_form + - action: action_suspect_moderate_symptoms_recommendations + - action: daily_ci_enroll_form + - action: action_suspect_moderate_symptoms_final_recommendations + - action: action_visit_package + - action: utter_ask_anything_else_with_test_navigation + + - rule: mild symptoms + steps: + - form: assessment_form + - ... + - action: assessment_form + - form: null + - slot: symptoms + value: mild + - action: home_assistance_form + - action: action_suspect_mild_symptoms_exposure_recommendations + - action: daily_ci_enroll_form + - action: action_suspect_mild_symptoms_exposure_final_recommendations + - action: action_visit_package + - action: utter_ask_anything_else_with_test_navigation + + - rule: contact risk + steps: + - form: assessment_form + - ... + - action: assessment_form + - form: null + - slot: has_contact_risk + value: true + - action: home_assistance_form + - action: action_suspect_mild_symptoms_exposure_recommendations + - action: daily_ci_enroll_form + - action: action_suspect_mild_symptoms_exposure_final_recommendations + - action: action_visit_package + - action: utter_ask_anything_else_with_test_navigation + + - rule: no symptoms + steps: + - form: assessment_form + - ... + - action: assessment_form + - form: null + - action: action_suspect_no_symptoms_recommendations + - action: action_visit_package + - action: utter_ask_anything_else_without_test_navigation + + # QA rules + - rule: QA success + steps: + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: success + - action: utter_ask_another_question + + - rule: greet QA out_of_distribution + steps: + - intent: greet + - action: action_greeting_messages + - intent: nlu_fallback + - action: question_answering_form + - slot: question_answering_status + value: out_of_distribution + - action: utter_ask_how_may_i_help_fallback + + - rule: QA out_of_distribution + steps: + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: out_of_distribution + - action: utter_cant_answer + - action: utter_ask_different_question + + - rule: greet QA failure + steps: + - intent: greet + - action: action_greeting_messages + - intent: nlu_fallback + - action: question_answering_form + - slot: question_answering_status + value: failure + - action: utter_ask_how_may_i_help_fallback + + - rule: assessment QA failure + steps: + - slot: self_assess_done + value: true + - ... + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: failure + - action: utter_question_answering_error + - action: utter_try_again_later + - action: action_qa_goodbye + + - rule: no assessment QA failure + steps: + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: failure + - action: utter_question_answering_error + - action: utter_ask_assess_after_error + + - rule: assessment QA need_assessment + steps: + - slot: self_assess_done + value: true + - ... + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: need_assessment + - action: utter_need_assessment_already_done + - action: utter_ask_another_question + + - rule: no assessment QA need_assessment + steps: + - form: question_answering_form + - ... + - action: question_answering_form + - form: null + - slot: question_answering_status + value: need_assessment + - action: utter_need_assessment + - action: utter_ask_assess_to_answer + + ## Questions rules + # utter_ask_anything_else_with(out)_test_navigation + - rule: utter_ask_anything_else_with_test_navigation affirm + steps: + - ... + - action: utter_ask_anything_else_with_test_navigation + - intent: affirm + - action: question_answering_form + - form: question_answering_form + - ... + + - rule: utter_ask_anything_else_without_test_navigation affirm + steps: + - ... + - action: utter_ask_anything_else_without_test_navigation + - intent: affirm + - action: question_answering_form + - form: question_answering_form + - ... + + - rule: utter_ask_anything_else_with_test_navigation done + steps: + - ... + - action: utter_ask_anything_else_with_test_navigation + - intent: done + - action: action_goodbye + + - rule: utter_ask_anything_else_without_test_navigation done + steps: + - ... + - action: utter_ask_anything_else_without_test_navigation + - intent: done + - action: action_goodbye + + - rule: utter_ask_anything_else_with_test_navigation deny + steps: + - ... + - action: utter_ask_anything_else_with_test_navigation + - intent: deny + - action: action_goodbye + + - rule: utter_ask_anything_else_without_test_navigation deny + steps: + - ... + - action: utter_ask_anything_else_without_test_navigation + - intent: deny + - action: action_goodbye + + # utter_ask_assess_to_answer + - rule: utter_ask_assess_to_answer deny + steps: + - ... + - action: utter_ask_assess_to_answer + - intent: deny + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_assess_to_answer done + steps: + - ... + - action: utter_ask_assess_to_answer + - intent: done + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_assess_to_answer affirm + steps: + - ... + - action: utter_ask_assess_to_answer + - intent: affirm + - action: assessment_form + - form: assessment_form + - ... + + # utter_ask_assess_after_error + - rule: utter_ask_assess_after_error deny + steps: + - ... + - action: utter_ask_assess_after_error + - intent: deny + - action: utter_try_again_later + - action: action_qa_goodbye + + - rule: utter_ask_assess_after_error done + steps: + - ... + - action: utter_ask_assess_after_error + - intent: done + - action: utter_try_again_later + - action: action_qa_goodbye + + - rule: utter_ask_assess_after_error fallback + steps: + - ... + - action: utter_ask_assess_after_error + - intent: nlu_fallback + - action: utter_try_again_later + - action: action_qa_goodbye + + - rule: utter_ask_assess_after_error affirm + steps: + - ... + - action: utter_ask_assess_after_error + - intent: affirm + - action: assessment_form + - form: assessment_form + - ... + + # utter_ask_another_question + - rule: utter_ask_another_question deny + steps: + - ... + - action: utter_ask_another_question + - intent: deny + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_another_question done + steps: + - ... + - action: utter_ask_another_question + - intent: done + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_another_question affirm + steps: + - ... + - action: utter_ask_another_question + - intent: affirm + - action: question_answering_form + - form: question_answering_form + - ... + + # utter_ask_different_question + - rule: utter_ask_different_question deny + steps: + - ... + - action: utter_ask_different_question + - intent: deny + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_different_question done + steps: + - ... + - action: utter_ask_different_question + - intent: done + - action: utter_please_visit_again + - action: action_qa_goodbye + + - rule: utter_ask_different_question affirm + steps: + - ... + - action: utter_ask_different_question + - intent: affirm + - action: question_answering_form + - form: question_answering_form + - ... + + # utter_ask_daily_checkin__invalid_id__want_assessment + - rule: utter_ask_daily_checkin__invalid_id__want_assessment affirm + steps: + - ... + - action: utter_ask_daily_checkin__invalid_id__want_assessment + - intent: affirm + - action: assessment_form + - form: assessment_form + - ... + + ## Fallback with error messages + - rule: utter_ask_test_navigation__continue error + steps: + - ... + - action: utter_ask_test_navigation__continue + - intent: nlu_fallback + - action: action_ask_test_navigation__continue_error + + - rule: utter_ask_daily_checkin__invalid_id__want_assessment error + steps: + - ... + - action: utter_ask_daily_checkin__invalid_id__want_assessment + - intent: nlu_fallback + - action: utter_ask_daily_checkin__invalid_id__want_assessment_error + + - rule: utter_ask_daily_ci__feel error + steps: + - ... + - action: utter_ask_daily_ci__feel + - intent: nlu_fallback + - action: utter_ask_daily_ci__feel_error + + - rule: utter_ask_when_first_symptoms error + steps: + - ... + - action: utter_ask_when_first_symptoms + - intent: nlu_fallback + - action: utter_ask_when_first_symptoms_error + + - rule: utter_ask_when_tested error + steps: + - ... + - action: utter_ask_when_tested + - intent: nlu_fallback + - action: utter_ask_when_tested_error + + ## Generic intent rules + + - rule: Get assessment + steps: + - ... + - intent: get_assessment + - action: assessment_form + - form: assessment_form + - ... + + - rule: Ask question + steps: + - ... + - intent: ask_question + - action: question_answering_form + - form: question_answering_form + - ... + + - rule: Fallback + steps: + - ... + - intent: nlu_fallback + - action: question_answering_form + - form: question_answering_form + - ... diff --git a/core/data/stories.md b/core/data/stories.md index 37b79011..09fe6547 100644 --- a/core/data/stories.md +++ b/core/data/stories.md @@ -1,157 +1,3 @@ -## greet -* greet{"metadata":{}} - - action_greeting_messages - -## suspect - severe symptoms -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "severe"} - - action_severe_symptoms_recommendations - -## suspect - moderate symptoms question -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "moderate"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## suspect - moderate symptoms -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "moderate"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## suspect - mild symptoms -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "mild"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye - -## suspect - no symptoms contact risk -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - slot{"has_contact_risk": true} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* done - - utter_test_navigation__come_back - - action_goodbye - -## suspect - no symptoms contact risk -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - slot{"has_contact_risk": true} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## suspect - no symptoms no contact risk -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - action_suspect_no_symptoms_recommendations - - action_visit_package - - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - ## tested positive - severe symptoms * tested_positive - tested_positive_form @@ -177,16 +23,8 @@ - form{"name": null} - action_visit_package - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## tested positive - moderate symptoms * tested_positive @@ -223,20 +61,6 @@ - form{"name": null} - action_visit_package - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * navigate_test_locations - action_test_navigation_explanations - utter_ask_test_navigation__continue @@ -281,14 +105,8 @@ - form{"name": null} - action_visit_package - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye +* done OR deny + - action_goodbye ## tested positive - no symptoms tested less than 14 days no check-in * tested_positive @@ -296,7 +114,7 @@ - form{"name": "tested_positive_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - action_tested_positive_no_symptoms_recommendations - utter_ask_when_tested * deny @@ -310,14 +128,8 @@ - form{"name": null} - action_visit_package - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye +* done OR deny + - action_goodbye ## tested positive - no symptoms tested less than 14 days error * tested_positive @@ -325,10 +137,10 @@ - form{"name": "tested_positive_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - action_tested_positive_no_symptoms_recommendations - utter_ask_when_tested -* fallback +* nlu_fallback - utter_ask_when_tested_error * deny - utter_when_tested_less_14_recommendation @@ -350,7 +162,7 @@ - form{"name": "tested_positive_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - action_tested_positive_no_symptoms_recommendations - utter_ask_when_tested * affirm @@ -365,30 +177,16 @@ - form{"name": "tested_positive_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - action_tested_positive_no_symptoms_recommendations - utter_ask_when_tested -* fallback +* nlu_fallback - utter_ask_when_tested_error * affirm - action_tested_positive_maybe_cured_final_recommendations - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## return for check-in - severe symptoms * checkin_return @@ -415,16 +213,8 @@ - form{"name": "home_assistance_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## return for check-in - moderate symptoms - no check-in * checkin_return @@ -442,7 +232,11 @@ - form{"name": "home_assistance_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* done OR deny +* navigate_test_locations + - action_test_navigation_explanations + - utter_ask_test_navigation__continue +* done + - utter_test_navigation__come_back - action_goodbye ## return for check-in - mild symptoms - with check-in @@ -489,15 +283,8 @@ - form{"name": "home_assistance_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## return for check-in - no symptoms - first symptoms >= 14 days ago * checkin_return @@ -505,7 +292,7 @@ - form{"name": "checkin_return_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - utter_returning_no_symptoms - utter_ask_when_first_symptoms * affirm @@ -520,24 +307,16 @@ - form{"name": "checkin_return_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - utter_returning_no_symptoms - utter_ask_when_first_symptoms -* fallback +* nlu_fallback - utter_ask_when_first_symptoms_error * affirm - utter_social_distancing_leave_home - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## return for check-in - no symptoms - first symptoms < 14 days ago * checkin_return @@ -545,20 +324,14 @@ - form{"name": "checkin_return_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - utter_returning_no_symptoms - utter_ask_when_first_symptoms * deny - utter_self_isolate_symptom_free - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye +* done OR deny + - action_goodbye ## return for check-in - no symptoms - first symptoms < 14 days ago error * checkin_return @@ -566,10 +339,10 @@ - form{"name": "checkin_return_form"} - form{"name": null} - slot{"self_assess_done": true} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - utter_returning_no_symptoms - utter_ask_when_first_symptoms -* fallback +* nlu_fallback - utter_ask_when_first_symptoms_error * deny - utter_self_isolate_symptom_free @@ -577,260 +350,6 @@ * done OR deny - action_goodbye -## QA - failure - no assessment after -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* deny OR done OR fallback - - utter_try_again_later - - action_qa_goodbye - -## QA - failure - assessment after -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* affirm OR get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "mild"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## QA - failure - test navigation -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* continue OR affirm - - utter_test_navigation__acknowledge_continue - - test_navigation_form - - form{"name": "test_navigation_form"} - - form{"name": null} - - action_test_navigation__anything_else -* done OR deny - - action_goodbye - -## QA - success -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## QA - out of distribution -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## QA - success - another question -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## QA - success - assessment after -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - slot{"has_contact_risk": true} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## QA - out of distribution - another question - test navigation -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* done - - utter_test_navigation__come_back - - action_goodbye - -## QA - need assessment - no assessment after -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment - - utter_ask_assess_to_answer -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## QA - need assessment - assessment after -* greet{"metadata":{}} - - action_greeting_messages -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment - - utter_ask_assess_to_answer -* affirm OR get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "moderate"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## fallback QA - failure -* greet{"metadata":{}} - - action_greeting_messages -* fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_ask_how_may_i_help_fallback - -## fallback QA - success -* greet{"metadata":{}} - - action_greeting_messages -* fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## fallback QA - out of distribution -* greet{"metadata":{}} - - action_greeting_messages -* fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_ask_how_may_i_help_fallback - -## fallback QA - no assessment after -* greet{"metadata":{}} - - action_greeting_messages -* fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment - - utter_ask_assess_to_answer -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - ## daily check-in - early opt out - done * daily_checkin{"metadata":{}} - action_initialize_daily_checkin @@ -850,15 +369,8 @@ * opt_out - action_daily_ci_early_opt_out - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel worse - severe symptoms * daily_checkin{"metadata":{}} @@ -884,7 +396,7 @@ * continue - utter_daily_ci__early_opt_out__acknowledge_continue_ci - utter_ask_daily_ci__feel -* fallback +* nlu_fallback - utter_ask_daily_ci__feel_error * worse - daily_ci_feel_worse_form @@ -912,15 +424,8 @@ - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel worse - mild symptoms * daily_checkin{"metadata":{}} @@ -940,16 +445,8 @@ - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel worse - no symptoms * daily_checkin{"metadata":{}} @@ -963,22 +460,14 @@ - daily_ci_feel_worse_form - form{"name": "daily_ci_feel_worse_form"} - form{"name": null} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - slot{"self_assess_done": true} - daily_ci_keep_or_cancel_form - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel no change - moderate symptoms * daily_checkin{"metadata":{}} @@ -1028,23 +517,8 @@ - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel no change - error - mild symptoms * daily_checkin{"metadata":{}} @@ -1054,7 +528,7 @@ * continue - utter_daily_ci__early_opt_out__acknowledge_continue_ci - utter_ask_daily_ci__feel -* fallback +* nlu_fallback - utter_ask_daily_ci__feel_error * no_change - daily_ci_feel_no_change_form @@ -1081,22 +555,14 @@ - daily_ci_feel_no_change_form - form{"name": "daily_ci_feel_no_change_form"} - form{"name": null} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - slot{"self_assess_done": true} - daily_ci_keep_or_cancel_form - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - feel better - moderate symptoms * daily_checkin{"metadata":{}} @@ -1116,14 +582,8 @@ - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye +* done OR deny + - action_goodbye ## daily check-in - feel better - mild symptoms * daily_checkin{"metadata":{}} @@ -1158,20 +618,14 @@ - daily_ci_feel_better_form - form{"name": "daily_ci_feel_better_form"} - form{"name": null} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - slot{"self_assess_done": true} - daily_ci_keep_or_cancel_form - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye +* done OR deny + - action_goodbye ## daily check-in - feel better - error - no symptoms * daily_checkin{"metadata":{}} @@ -1181,28 +635,20 @@ * continue - utter_daily_ci__early_opt_out__acknowledge_continue_ci - utter_ask_daily_ci__feel -* fallback +* nlu_fallback - utter_ask_daily_ci__feel_error * better - daily_ci_feel_better_form - form{"name": "daily_ci_feel_better_form"} - form{"name": null} - - slot{"symptoms": "none"} + - slot{"symptoms": "neni"} - slot{"self_assess_done": true} - daily_ci_keep_or_cancel_form - form{"name": "daily_ci_keep_or_cancel_form"} - form{"name": null} - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question * done OR deny - - utter_please_visit_again - - action_qa_goodbye + - action_goodbye ## daily check-in - invalid ID - nothing else * daily_checkin{"metadata":{}} @@ -1220,7 +666,7 @@ - action_initialize_daily_checkin - slot{"invalid_reminder_id": true} - utter_ask_daily_checkin__invalid_id__want_assessment -* fallback +* nlu_fallback - utter_ask_daily_checkin__invalid_id__want_assessment_error * deny - utter_ask_daily_checkin__invalid_id__anything_else @@ -1228,227 +674,6 @@ - utter_daily_checkin__invalid_id__visit_dialogue - action_goodbye -## daily check-in - invalid ID - wants assessment - severe symptoms -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm OR get_assessment - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "severe"} - - action_severe_symptoms_recommendations - -## daily check-in - invalid ID - wants assessment - severe symptoms -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* fallback - - utter_ask_daily_checkin__invalid_id__want_assessment_error -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "severe"} - - action_severe_symptoms_recommendations - -## daily check-in - invalid ID - wants assessment - moderate symptoms -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "moderate"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_moderate_symptoms_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## daily check-in - invalid ID - wants assessment - mild symptoms -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "mild"} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* done OR deny - - action_goodbye - -## daily check-in - invalid ID - wants assessment - mild symptoms -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - action_suspect_no_symptoms_recommendations - - action_visit_package - - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment_already_done - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## daily check-in - invalid ID - wants assessment - no symptoms no contact -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - action_suspect_no_symptoms_recommendations - - action_visit_package - - utter_ask_anything_else_without_test_navigation -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye - -## daily check-in - invalid ID - wants assessment - no symptoms contact risk -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* affirm - - assessment_form - - form{"name": "assessment_form"} - - form{"name": null} - - slot{"self_assess_done": true} - - slot{"symptoms": "none"} - - slot{"has_contact_risk": true} - - home_assistance_form - - form{"name": "home_assistance_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_recommendations - - daily_ci_enroll_form - - form{"name": "daily_ci_enroll_form"} - - form{"name": null} - - action_suspect_mild_symptoms_exposure_final_recommendations - - action_visit_package - - utter_ask_anything_else_with_test_navigation -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* deny - - action_test_navigation__anything_else -* done OR deny - - utter_test_navigation__come_back - - action_goodbye - -## daily check-in - invalid ID - ask question - failure example -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* deny - - utter_ask_daily_checkin__invalid_id__anything_else -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* deny - - utter_try_again_later - - action_qa_goodbye - -## daily check-in - invalid ID - ask question - ood two questions -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* deny - - utter_ask_daily_checkin__invalid_id__anything_else -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_try_again_later - - action_qa_goodbye - -## daily check-in - invalid ID - ask question - need assessment -* daily_checkin{"metadata":{}} - - action_initialize_daily_checkin - - slot{"invalid_reminder_id": true} - - utter_ask_daily_checkin__invalid_id__want_assessment -* deny - - utter_ask_daily_checkin__invalid_id__anything_else -* ask_question - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment - - utter_ask_assess_to_answer -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - ## Test navigation - done * greet{"metadata":{}} - action_greeting_messages @@ -1471,118 +696,6 @@ - utter_test_navigation__come_back - action_goodbye -## Test navigation - no ask question -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* deny - - action_test_navigation__anything_else -* affirm OR ask_question OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "out_of_distribution"} - - utter_cant_answer - - utter_ask_different_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## Test navigation - continue fallback come back later -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* fallback - - action_ask_test_navigation__continue_error -* done - - utter_test_navigation__come_back - - action_goodbye - -## Test navigation - early ask question - failure -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* fallback - - action_ask_test_navigation__continue_error -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* deny OR done OR fallback - - utter_try_again_later - - action_qa_goodbye - -## Test navigation - early ask question - need assessment -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* fallback - - action_ask_test_navigation__continue_error -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "need_assessment"} - - utter_need_assessment - - utter_ask_assess_to_answer -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## Test navigation - early ask question - success -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* fallback - - action_ask_test_navigation__continue_error -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* done OR deny - - utter_please_visit_again - - action_qa_goodbye - -## Test navigation - early ask question - two questions -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* fallback - - action_ask_test_navigation__continue_error -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "success"} - - utter_ask_another_question -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* deny OR done OR fallback - - utter_try_again_later - - action_qa_goodbye - ## Test navigation - navigate tests - nothing else * greet{"metadata":{}} - action_greeting_messages @@ -1597,26 +710,3 @@ - action_test_navigation__anything_else * done OR deny - action_goodbye - -## Test navigation - navigate tests - question -* greet{"metadata":{}} - - action_greeting_messages -* navigate_test_locations - - action_test_navigation_explanations - - utter_ask_test_navigation__continue -* continue OR affirm - - utter_test_navigation__acknowledge_continue - - test_navigation_form - - form{"name": "test_navigation_form"} - - form{"name": null} - - action_test_navigation__anything_else -* ask_question OR affirm OR fallback - - question_answering_form - - form{"name": "question_answering_form"} - - form{"name": null} - - slot{"question_answering_status": "failure"} - - utter_question_answering_error - - utter_ask_assess_after_error -* deny OR done OR fallback - - utter_try_again_later - - action_qa_goodbye diff --git a/core/domain/domain.core.yml b/core/domain/domain.core.yml index 8fe69dbe..7e6d6a44 100644 --- a/core/domain/domain.core.yml +++ b/core/domain/domain.core.yml @@ -1,6 +1,6 @@ intents: - - greet: - use_entities: [] + - greet + - nlu_fallback - goodbye - affirm - deny @@ -26,13 +26,10 @@ intents: - cancel - continue - opt_out - - send_validation_code: - triggers: action_send_validation_code - - send_daily_checkin_reminder: - triggers: action_send_daily_checkin_reminder + - send_validation_code + - send_daily_checkin_reminder - navigate_test_locations: use_entities: [] - - fallback - q_a entities: @@ -42,7 +39,6 @@ entities: - validation_code actions: - - action_fallback - action_unsupported_intent - action_visit_package - action_initialize_daily_checkin @@ -67,6 +63,7 @@ actions: - action_qa_goodbye forms: + - home_assistance_form - assessment_form - tested_positive_form - checkin_return_form @@ -76,7 +73,6 @@ forms: - daily_ci_feel_worse_form - daily_ci_keep_or_cancel_form - question_answering_form - - home_assistance_form - test_navigation_form slots: @@ -111,7 +107,7 @@ slots: - severe - moderate - mild - - none + - neni has_cough: type: unfeaturized diff --git a/integration-tests-en/interactions/user/less.jinja b/integration-tests-en/interactions/user/less.jinja deleted file mode 100644 index 59e72403..00000000 --- a/integration-tests-en/interactions/user/less.jinja +++ /dev/null @@ -1,3 +0,0 @@ -{ - "message": "/less" -} diff --git a/integration-tests-en/interactions/user/more.jinja b/integration-tests-en/interactions/user/more.jinja deleted file mode 100644 index 15e6764c..00000000 --- a/integration-tests-en/interactions/user/more.jinja +++ /dev/null @@ -1,3 +0,0 @@ -{ - "message": "/more" -} diff --git a/integration-tests-en/scenarios/checkin_return/no_symptoms_more_with_error.yml b/integration-tests-en/scenarios/checkin_return/no_symptoms_more_with_error.yml index 350b8c45..554964dc 100644 --- a/integration-tests-en/scenarios/checkin_return/no_symptoms_more_with_error.yml +++ b/integration-tests-en/scenarios/checkin_return/no_symptoms_more_with_error.yml @@ -16,7 +16,7 @@ bot: checkin_return/ask_when_first_symptoms - user: navigate_tests bot: checkin_return/ask_when_first_symptoms_error -- user: more +- user: affirm bot: checkin_return/ask_anything_else_no_symptoms_more - user: done bot: thank_you_take_care diff --git a/load-tests/Makefile b/load-tests/Makefile index 9c62847c..40005836 100644 --- a/load-tests/Makefile +++ b/load-tests/Makefile @@ -1,6 +1,6 @@ .PHONY: init install lint format test locust-rasa -RASA_VERSION=1.9.4 +RASA_VERSION=2.0.0a1 UID:=$(shell id -u) GID:=$(shell id -g)