ソースを参照

Upload files to 'chatbot/userdetails/data'

SadhulaSaiKumar 1年前
コミット
cab83d518b
3個のファイルの変更184行の追加0行の削除
  1. 99
    0
      chatbot/userdetails/data/nlu.yml
  2. 33
    0
      chatbot/userdetails/data/rules.yml
  3. 52
    0
      chatbot/userdetails/data/stories.yml

+ 99
- 0
chatbot/userdetails/data/nlu.yml ファイルの表示

@@ -0,0 +1,99 @@
1
+version: "3.1"
2
+
3
+nlu:
4
+- intent: greet
5
+  examples: |
6
+    - hey
7
+    - hello
8
+    - hi
9
+    - hello there
10
+    - good morning
11
+    - good evening
12
+    - moin
13
+    - hey there
14
+    - let's go
15
+    - hey dude
16
+    - goodmorning
17
+    - goodevening
18
+    - good afternoon
19
+
20
+- intent: goodbye
21
+  examples: |
22
+    - cu
23
+    - good by
24
+    - cee you later
25
+    - good night
26
+    - bye
27
+    - goodbye
28
+    - have a nice day
29
+    - see you around
30
+    - bye bye
31
+    - see you later
32
+
33
+- intent: affirm
34
+  examples: |
35
+    - yes
36
+    - y
37
+    - indeed
38
+    - of course
39
+    - that sounds good
40
+    - correct
41
+
42
+- intent: deny
43
+  examples: |
44
+    - no
45
+    - n
46
+    - never
47
+    - I don't think so
48
+    - don't like that
49
+    - no way
50
+    - not really
51
+
52
+- intent: mood_great
53
+  examples: |
54
+    - perfect
55
+    - great
56
+    - amazing
57
+    - feeling like a king
58
+    - wonderful
59
+    - I am feeling very good
60
+    - I am great
61
+    - I am amazing
62
+    - I am going to save the world
63
+    - super stoked
64
+    - extremely good
65
+    - so so perfect
66
+    - so good
67
+    - so perfect
68
+
69
+- intent: mood_unhappy
70
+  examples: |
71
+    - my day was horrible
72
+    - I am sad
73
+    - I don't feel very well
74
+    - I am disappointed
75
+    - super sad
76
+    - I'm so sad
77
+    - sad
78
+    - very sad
79
+    - unhappy
80
+    - not good
81
+    - not very good
82
+    - extremly sad
83
+    - so saad
84
+    - so sad
85
+
86
+- intent: bot_challenge
87
+  examples: |
88
+    - are you a bot?
89
+    - are you a human?
90
+    - am I talking to a bot?
91
+    - am I talking to a human?
92
+
93
+
94
+- intent: request_names
95
+  examples: |
96
+    - i want to give you my name
97
+    - give name
98
+    - you need to know my name
99
+    - do you know my name?

+ 33
- 0
chatbot/userdetails/data/rules.yml ファイルの表示

@@ -0,0 +1,33 @@
1
+version: "3.1"
2
+
3
+rules:
4
+
5
+- rule: Say goodbye anytime the user says goodbye
6
+  steps:
7
+  - intent: goodbye
8
+  - action: utter_goodbye
9
+
10
+- rule: Say 'I am a bot' anytime the user challenges
11
+  steps:
12
+  - intent: bot_challenge
13
+  - action: utter_iamabot
14
+
15
+
16
+- rule: Activate form
17
+  steps:
18
+  - intent: request_names
19
+  - action: name_form
20
+  - active_loop: name_form
21
+
22
+- rule: Submit form
23
+  condition:
24
+  - active_loop: name_form
25
+  steps:
26
+  - action: name_form
27
+  - active_loop: null
28
+  - slot_was_set:
29
+    - requested_slot: null
30
+  - action: utter_submit
31
+  - action: utter_slots_values
32
+  - action: get_slot_data
33
+  - action: slots_to_clear

+ 52
- 0
chatbot/userdetails/data/stories.yml ファイルの表示

@@ -0,0 +1,52 @@
1
+version: "3.1"
2
+
3
+stories:
4
+
5
+# - story: happy path
6
+#   steps:
7
+#   - intent: greet
8
+#   - action: utter_greet
9
+#   - intent: mood_great
10
+#   - action: utter_happy
11
+
12
+# - story: sad path 1
13
+#   steps:
14
+#   - intent: greet
15
+#   - action: utter_greet
16
+#   - intent: mood_unhappy
17
+#   - action: utter_cheer_up
18
+#   - action: utter_did_that_help
19
+#   - intent: affirm
20
+#   - action: utter_happy
21
+
22
+# - story: sad path 2
23
+#   steps:
24
+#   - intent: greet
25
+#   - action: utter_greet
26
+#   - intent: mood_unhappy
27
+#   - action: utter_cheer_up
28
+#   - action: utter_did_that_help
29
+#   - intent: deny
30
+#   - action: utter_goodbye
31
+
32
+
33
+# - story: interactive_story_1
34
+#   steps:
35
+#   - intent: greet
36
+#   - action: utter_greet
37
+#   - intent: request_names
38
+#   - action: name_form
39
+#   - active_loop: name_form
40
+#   - slot_was_set:
41
+#     - requested_slot: first_name
42
+#   - slot_was_set:
43
+#     - first_name: vincent
44
+#   - slot_was_set:
45
+#     - requested_slot: last_name
46
+#   - slot_was_set:
47
+#     - last_name: vincent-mcvincent
48
+#   - slot_was_set:
49
+#     - requested_slot: null
50
+#   - active_loop: null
51
+#   - action: utter_submit
52
+#   - action: utter_slots_values

読み込み中…
キャンセル
保存