diff --git a/.gitignore b/.gitignore index 6b62ae99450f0cea9169e504ba8104ecec95c5d5..d5160845afa143f438931b475cf59aa5c3ef299e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ /venv .vscode + +/rasa-example + .rasa */models -__pycache__/ +__pycache__/ \ No newline at end of file diff --git a/rasa/data/nlu.yml b/rasa/data/nlu.yml index 2f6c3f8c7d3ea3efc3914f76621594843cd4defd..f5ff2a6c9715f0b112ea7c2c8a362b6587db331a 100644 --- a/rasa/data/nlu.yml +++ b/rasa/data/nlu.yml @@ -1,91 +1,3 @@ version: "3.1" nlu: -- intent: greet - examples: | - - hey - - hello - - hi - - hello there - - good morning - - good evening - - moin - - hey there - - let's go - - hey dude - - goodmorning - - goodevening - - good afternoon - -- intent: goodbye - examples: | - - cu - - good by - - cee you later - - good night - - bye - - goodbye - - have a nice day - - see you around - - bye bye - - see you later - -- intent: affirm - examples: | - - yes - - y - - indeed - - of course - - that sounds good - - correct - -- intent: deny - examples: | - - no - - n - - never - - I don't think so - - don't like that - - no way - - not really - -- intent: mood_great - examples: | - - perfect - - great - - amazing - - feeling like a king - - wonderful - - I am feeling very good - - I am great - - I am amazing - - I am going to save the world - - super stoked - - extremely good - - so so perfect - - so good - - so perfect - -- intent: mood_unhappy - examples: | - - my day was horrible - - I am sad - - I don't feel very well - - I am disappointed - - super sad - - I'm so sad - - sad - - very sad - - unhappy - - not good - - not very good - - extremly sad - - so saad - - so sad - -- intent: bot_challenge - examples: | - - are you a bot? - - are you a human? - - am I talking to a bot? - - am I talking to a human? diff --git a/rasa/data/rules.yml b/rasa/data/rules.yml index a9987ee2a3fb897755e17f51b1a047b35958e981..825bea23062307758b6254df28fb9f317b7d48cc 100644 --- a/rasa/data/rules.yml +++ b/rasa/data/rules.yml @@ -1,13 +1,3 @@ version: "3.1" rules: - -- rule: Say goodbye anytime the user says goodbye - steps: - - intent: goodbye - - action: utter_goodbye - -- rule: Say 'I am a bot' anytime the user challenges - steps: - - intent: bot_challenge - - action: utter_iamabot diff --git a/rasa/data/stories.yml b/rasa/data/stories.yml index 6ff78ee20864522455b67723f323ce59d68a1772..edc436ec50d0016d54440d85224480c82b464d7e 100644 --- a/rasa/data/stories.yml +++ b/rasa/data/stories.yml @@ -1,30 +1,3 @@ version: "3.1" stories: - -- story: happy path - steps: - - intent: greet - - action: utter_greet - - intent: mood_great - - action: utter_happy - -- story: sad path 1 - steps: - - intent: greet - - action: utter_greet - - intent: mood_unhappy - - action: utter_cheer_up - - action: utter_did_that_help - - intent: affirm - - action: utter_happy - -- story: sad path 2 - steps: - - intent: greet - - action: utter_greet - - intent: mood_unhappy - - action: utter_cheer_up - - action: utter_did_that_help - - intent: deny - - action: utter_goodbye diff --git a/rasa/domain.yml b/rasa/domain.yml index 932195fe3877752419a6a291dd7b54918c541f45..eec41203a4ba1ba468e127d953e54c0476c66391 100644 --- a/rasa/domain.yml +++ b/rasa/domain.yml @@ -1,33 +1,8 @@ version: "3.1" intents: - - greet - - goodbye - - affirm - - deny - - mood_great - - mood_unhappy - - bot_challenge responses: - utter_greet: - - text: "Hey! How are you?" - - utter_cheer_up: - - text: "Here is something to cheer you up:" - image: "https://i.imgur.com/nGF1K8f.jpg" - - utter_did_that_help: - - text: "Did that help you?" - - utter_happy: - - text: "Great, carry on!" - - utter_goodbye: - - text: "Bye" - - utter_iamabot: - - text: "I am a bot, powered by Rasa." session_config: session_expiration_time: 60