diff --git a/chatbot/data/nlu.yml b/chatbot/data/nlu.yml new file mode 100644 index 0000000..d381c45 --- /dev/null +++ b/chatbot/data/nlu.yml @@ -0,0 +1,126 @@ +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: question1 + examples: | + - "The tagging between DSRs cannot be changed" + - "Changing the tagging between DSRs is not allowed." + - "There is no way to modify the tagging between DSRs." + + +- intent: question3 + examples: | + - "nan" + - "nan" + - "The sales graph in DMS is only presenting the total sales and is not displaying the party-wise graph. Additionally, other graphs only exhibit customer codes, not their names. Kindly rectify this problem." + + +- intent: question4 + examples: | + - "Regarding the customer E.B. Taiging and purchase invoice, could you please provide more information?" + - "Can you please give me further details on the customer E.B. Taiging and purchase invoice?" + - "I need more information about the customer E.B. Taiging and purchase invoice. Could you please help me with that?" + + +- intent: question5 + examples: | + - "We have created the DC and tagged the EB today, but the volume is not being shown. Kindly rectify this issue as soon as possible." + - "Regarding the DC and EB tagging, we have completed the process today. However, the volume is not visible. Please fix this issue as soon as you can." + - "We have successfully created the DC and tagged the EB today. However, the volume is not showing up. We kindly request you to rectify this issue as soon as possible." + + +- intent: question6 + examples: | + - "In my login, I am unable to select the Madurai branch from where I have billed materials as I belong to the Trichy branch. Could you please help me resolve this issue?" + - "I am from Trichy branch, and I have billed materials from Madurai branch. However, I am unable to select the Madurai branch in my login. Can you please assist me in resolving this issue?" + - "The Madurai branch is where I billed the materials from, but I belong to the Trichy branch, and I am unable to select it in my login. Could you please provide me with a solution to this issue?" + diff --git a/chatbot/data/rules.yml b/chatbot/data/rules.yml new file mode 100644 index 0000000..e84658f --- /dev/null +++ b/chatbot/data/rules.yml @@ -0,0 +1,53 @@ +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: Ticketquestion1 + steps: + - intent: question1 + - action: utter_question1_1 + - action: utter_question1_2 + - action: utter_question1_3 + - action: action_service + +- rule: Ticketquestion3 + steps: + - intent: question3 + - action: utter_question3_1 + - action: utter_question3_2 + - action: utter_question3_3 + - action: action_service + +- rule: Ticketquestion4 + steps: + - intent: question4 + - action: utter_question4_1 + - action: utter_question4_2 + - action: utter_question4_3 + - action: action_service + +- rule: Ticketquestion5 + steps: + - intent: question5 + - action: utter_question5_1 + - action: utter_question5_2 + - action: utter_question5_3 + - action: action_service + +- rule: Ticketquestion6 + steps: + - intent: question6 + - action: utter_question6_1 + - action: utter_question6_2 + - action: utter_question6_3 + - action: action_service diff --git a/chatbot/data/stories.yml b/chatbot/data/stories.yml new file mode 100644 index 0000000..7daaf5c --- /dev/null +++ b/chatbot/data/stories.yml @@ -0,0 +1,88 @@ +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 + - action: action_service + + + +- 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 + - action: action_service + + +- story: sad path 3 + steps: + - intent: connect_support + - action: utter_video + - action: action_suport_service + + + + +- story: docs path + steps: + - intent: docs + entities: + - content_type: "Blogs" + - slot_was_set: + - content_type: "Blogs" + - action: utter_blogs + + + +- story: video path + steps: + - intent: video + entities: + - content_type: "video" + - slot_was_set: + - content_type: "video" + - action: action_suport_service + + + + +- story: connecting support + steps: + - intent: connect_support + entities: + - content_type: "text" + - slot_was_set: + - content_type: "text" + - action: utter_connect_support + - action: action_save_conersation + - action: action_clear_conversation + +- story: noconnecting support + steps: + - intent: noconnect_support + entities: + - content_type: "text" + - slot_was_set: + - content_type: "text" + - action: utter_noconnect_support + \ No newline at end of file