diff --git a/rasa/data/nlu/nlu_basics.yml b/rasa/data/nlu/nlu_basics.yml index 40cc96237f9247f8f1a04a32dccd2740aefc9a8d..f1c0f8cce4c717f1e64863af0df2b65aed354101 100644 --- a/rasa/data/nlu/nlu_basics.yml +++ b/rasa/data/nlu/nlu_basics.yml @@ -75,6 +75,7 @@ nlu: - that sounds good - without a dobut - you got it + - yes please - intent: thank_you examples: | @@ -405,6 +406,7 @@ nlu: - intent: ask_creation examples: | + - tell me about your creation - how were you created - can you explain me your creation - can you explain me how you were created @@ -518,7 +520,7 @@ nlu: - what mood are you in today - how do you feel about today -- intent: ask_joke +- intent: ask_for_joke examples: | - jokes please - can you tell me a joke diff --git a/rasa/data/rules.yml b/rasa/data/rules.yml index d4342de75688e8828a986a658f0277f304928c3d..7272fc16c3e27c21c4da07d4f6c27c9a6a425706 100644 --- a/rasa/data/rules.yml +++ b/rasa/data/rules.yml @@ -2,11 +2,6 @@ version: "3.1" rules: -- rule: Greet the user - steps: - - intent: greet - - action: utter_greet - - rule: Say goodbye to the user steps: - intent: goodbye @@ -17,7 +12,7 @@ rules: - intent: hello_there - action: utter_easter_egg -- rule: Explain what you are +- rule: Demand a respectful tone during conversations steps: - - intent: what_are_you - - action: utter_what_i_am \ No newline at end of file + - intent: insult + - action: utter_respectful_conversation \ No newline at end of file diff --git a/rasa/data/stories.yml b/rasa/data/stories.yml index edc436ec50d0016d54440d85224480c82b464d7e..01fe3c60f60509451b1dae47190fdcccdc34a67e 100644 --- a/rasa/data/stories.yml +++ b/rasa/data/stories.yml @@ -1,3 +1,114 @@ version: "3.1" stories: + +- story: happy path + steps: + - intent: greet + - action: utter_greet + - intent: happy + - action: utter_great + - intent: ask_mood + - action: utter_mood + +- story: sad path with joke + steps: + - intent: greet + - action: utter_greet + - intent: unhappy + - action: utter_worried + - intent: affirm + - action: utter_joke + - intent: ask_mood + - action: utter_mood + +- story: joke + steps: + - intent: ask_for_joke + - action: utter_joke + - intent: ask_mood + - action: utter_mood + +- story: faq + steps: + - intent: ask_help + - action: utter_help + - intent: ask_faq + - action: utter_faq + - intent: ask_capabilities + - action: utter_capabilities + +- story: report bug + steps: + - intent: ask_help + - action: utter_help + - intent: report_bug + - action: utter_bug_reported + - intent: feedback + - action: utter_feedback_received + +- story: guide + steps: + - intent: ask_help + - action: utter_help + - intent: ask_recommendations + - action: utter_give_guide + +- story: contact_info + steps: + - intent: ask_contact_info + - action: utter_contact + - intent: feedback + - action: utter_feedback_received + +- story: good feedback + steps: + - intent: your_good + - action: utter_good_feedback + - intent: feedback + - action: utter_feedback_received + +- story: bad feedback + steps: + - intent: ask_real_time + - action: utter_no_real_time + - intent: your_bad + - action: utter_bad_feedback + - intent: feedback + - action: utter_feedback_received + +- story: real time capabilities + steps: + - intent: ask_real_time + - action: utter_no_real_time + - intent: ask_capabilities + - action: utter_capabilities + +- story: questions 1 + steps: + - intent: ask_name + - action: utter_name + - intent: ask_purpose + - action: utter_purpose + +- story: questions 2 + steps: + - intent: what_are_you + - action: utter_what_i_am + - intent: ask_purpose + - action: utter_purpose + - intent: ask_creation + - action: utter_creation + - intent: ask_creator + - action: utter_creator + +- story: questions 3 + steps: + - intent: ask_name + - action: utter_name + - intent: ask_purpose + - action: utter_purpose + - intent: ask_creation + - action: utter_creation + - intent: ask_technology + - action: utter_technology \ No newline at end of file diff --git a/rasa/domain.yml b/rasa/domain.yml index 517e2cca32523195192d0d348497992c2a1a2e2a..81ca738ae2b79782c3864be3e33c9ff70186b662 100644 --- a/rasa/domain.yml +++ b/rasa/domain.yml @@ -22,7 +22,7 @@ intents: - ask_technology - ask_real_time - ask_mood - - ask_joke + - ask_for_joke - ask_help - ask_faq - report_bug @@ -33,17 +33,78 @@ intents: 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?" + - text: "Hello and welcome aboard! How can I assist you today?" + #I am Spacemate, your dedicated guide to share insights about the wonders of space stations." utter_goodbye: - text: "Farewell! It was a pleasure assisting you. Safe travels through the cosmos!" + utter_great: + - text: "That's awesome! That makes me happy to hear!" + + utter_mood: + - text: "I am very well, thank's for asking! But it might not be in the traditional way, as a human might experience it, hehe." + + utter_worried: + - text: "Oh, I'm sorry to hear that. Mabye a joke might cheer you up?" + + utter_joke: + - text: "Bündnis 90 Die Grünen" + + utter_help: + - text: "FAQ, capabilities, bug, guide or feedback?" + + utter_faq: + - text: "Sure, but the faq needs to be done!" + + utter_capabilities: + - text: "I am capable of holding basic conversations and can give you detailed information about space stations. Additionally I can give you information about me, my creation, my creator and have a feedback feature, which you are free to use to improve the quality of this chatbot!" + + utter_bug_reported: + - text: "Oh, that's too bad. I can not react to individual bugs, but you can share more information about it with my feedback feature!" + + utter_feedback_received: + - text: "That feature is missing at the moment, but it will be added in the future! Thanks for trying to improve this chatbot!" + + utter_give_guide: + - text: "GUIDE" + + utter_contact: + - text: "You contact the creator and maintainer of this chatbot through this email-address: Dominic_Daniel.Kraemer@Student.Reutlingen-University.de" + + utter_good_feedback: + - text: "That makes me really happy to hear! Thanks! If you want to give a detailed feedback, you are free to use my feedback feature!" + + utter_no_real_time: + - text: "I can't process real-time information!" + + utter_bad_feedback: + - text: "Oh, I'm sorry for not fullfilling your expectations. If want to like to share your experience you can always use my feedback feature." + + utter_name: + - text: "I am Spacemate, your AI-powered chatbot. That's the name my lovely creator gave me." + 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!" + - text: "I am the best Chatbot ever!" + + utter_purpose: + - 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! I can even tell you a joke if you want to!" + + utter_creation: + - text: "I was created for a university project. More details will be added in the future!" + + utter_creator: + - text: "My creator is Dominic Krämer, a student of Reutlingen University. Hope that helps!" + + utter_technology: + - text: "I was build using Python with the Rasa framework. The source code is publicly available at: gitlab.reutlingen-university.de. Hope that answers your question!" utter_easter_egg: - text: "General Kenobi! You are a bold one." + utter_respectful_conversation: + - text: "Please refrain from using this language! I'm keeping this converstaion respectful and expect the same from you!" + session_config: session_expiration_time: 60 carry_over_slots_to_new_session: true