diff --git a/.gitignore b/.gitignore index d5160845afa143f438931b475cf59aa5c3ef299e..03d175735b87efda7f3803b24df0d94311961e3d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .vscode /rasa-example +notes.txt .rasa */models diff --git a/rasa/data/nlu.yml b/rasa/data/nlu.yml index f5ff2a6c9715f0b112ea7c2c8a362b6587db331a..ede5754a046ac6933c40d67c4b8a114a280818e0 100644 --- a/rasa/data/nlu.yml +++ b/rasa/data/nlu.yml @@ -1,3 +1,61 @@ version: "3.1" nlu: +- intent: greet + examples: | + - hello + - hi + - hey + - howdy + - greetings + - yo + - good morning + - good evening + - good afternoon + - good day + - goodmorning + - goodevening + - goodafternoon + - hey there + - howdy partner + - what's up + - nice seeing you + - cheers mate + +- intent: goodbye + examples: | + - bye + - later + - peace + - farewell + - bye bye + - good bye + - goodbye + - good night + - goodnight + - see you + - see you soon + - see you later + - so long + - until next time + - have a nice day + +- intent: hello_there + examples: | + - hello there + +- intent: what_are_you + examples: | + - what are you? + - what exactly are you? + - are you a bot? + - are you a robot? + - are you human? + - are you a person + - are you a robot or human? + - are you an AI? + - who are you? + - explain what you are + - tell me about yourself + - what is your purpose + diff --git a/rasa/data/rules.yml b/rasa/data/rules.yml index 825bea23062307758b6254df28fb9f317b7d48cc..d4342de75688e8828a986a658f0277f304928c3d 100644 --- a/rasa/data/rules.yml +++ b/rasa/data/rules.yml @@ -1,3 +1,23 @@ version: "3.1" rules: + +- rule: Greet the user + steps: + - intent: greet + - action: utter_greet + +- rule: Say goodbye to the user + steps: + - intent: goodbye + - action: utter_goodbye + +- rule: Easter Egg + steps: + - intent: hello_there + - action: utter_easter_egg + +- rule: Explain what you are + steps: + - intent: what_are_you + - action: utter_what_i_am \ No newline at end of file diff --git a/rasa/domain.yml b/rasa/domain.yml index eec41203a4ba1ba468e127d953e54c0476c66391..a3b878cb0a0b6ad826a3a7a19747c78740e3dcf4 100644 --- a/rasa/domain.yml +++ b/rasa/domain.yml @@ -1,8 +1,23 @@ version: "3.1" intents: + - greet + - goodbye + - hello_there + - what_are_you responses: + utter_greet: + - text: "Hello and welcome aboard! I am Spacemate, your dedicated guide to share insights about the wonders of space stations. How can I assist you today?" + + utter_goodbye: + - text: "Farewell! It was a pleasure assisting you. Safe travels through the cosmos!" + + utter_what_i_am: + - text: "I am Spacemate, an AI-powered chatbot, designed to be your guide and assistant in exploring all things space stations. I provide information, fun facts, and much more!" + + utter_easter_egg: + - text: "General Kenobi! You are a bold one." session_config: session_expiration_time: 60