From cab83d518b93d857fe369aa83e5057a5b72d34a7 Mon Sep 17 00:00:00 2001 From: SadhulaSaiKumar Date: Wed, 30 Aug 2023 05:04:26 +0000 Subject: [PATCH] Upload files to 'chatbot/userdetails/data' --- chatbot/userdetails/data/nlu.yml | 99 ++++++++++++++++++++++++++++ chatbot/userdetails/data/rules.yml | 33 ++++++++++ chatbot/userdetails/data/stories.yml | 52 +++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 chatbot/userdetails/data/nlu.yml create mode 100644 chatbot/userdetails/data/rules.yml create mode 100644 chatbot/userdetails/data/stories.yml diff --git a/chatbot/userdetails/data/nlu.yml b/chatbot/userdetails/data/nlu.yml new file mode 100644 index 0000000..380aede --- /dev/null +++ b/chatbot/userdetails/data/nlu.yml @@ -0,0 +1,99 @@ +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? + + +- intent: request_names + examples: | + - i want to give you my name + - give name + - you need to know my name + - do you know my name? \ No newline at end of file diff --git a/chatbot/userdetails/data/rules.yml b/chatbot/userdetails/data/rules.yml new file mode 100644 index 0000000..1ba4123 --- /dev/null +++ b/chatbot/userdetails/data/rules.yml @@ -0,0 +1,33 @@ +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 + + +- rule: Activate form + steps: + - intent: request_names + - action: name_form + - active_loop: name_form + +- rule: Submit form + condition: + - active_loop: name_form + steps: + - action: name_form + - active_loop: null + - slot_was_set: + - requested_slot: null + - action: utter_submit + - action: utter_slots_values + - action: get_slot_data + - action: slots_to_clear \ No newline at end of file diff --git a/chatbot/userdetails/data/stories.yml b/chatbot/userdetails/data/stories.yml new file mode 100644 index 0000000..7d77160 --- /dev/null +++ b/chatbot/userdetails/data/stories.yml @@ -0,0 +1,52 @@ +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 + + +# - story: interactive_story_1 +# steps: +# - intent: greet +# - action: utter_greet +# - intent: request_names +# - action: name_form +# - active_loop: name_form +# - slot_was_set: +# - requested_slot: first_name +# - slot_was_set: +# - first_name: vincent +# - slot_was_set: +# - requested_slot: last_name +# - slot_was_set: +# - last_name: vincent-mcvincent +# - slot_was_set: +# - requested_slot: null +# - active_loop: null +# - action: utter_submit +# - action: utter_slots_values \ No newline at end of file