[507a54]: / production / rasa-server / rasa / data / rules.yml

Download this file

81 lines (71 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "2.0"
rules:
- rule: submit form
condition:
- active_loop: entity_form
steps:
- action: entity_form
- active_loop: null
- action: get_answer
- rule: what_is form
steps:
- or:
- intent: what_is
- intent: usage
- intent: risk
- intent: lab_result
- intent: lab_prepare
- intent: lab_during
- intent: drug_warning
- intent: drug_dosage
- intent: drug_interaction
- intent: drug_sideeffects
- slot_was_set:
- entity_name: null
- action: intent_set
- action: entity_form
- active_loop: entity_form
- rule: what_is
steps:
- or:
- intent: what_is
- intent: usage
- intent: risk
- intent: lab_result
- intent: lab_prepare
- intent: lab_during
- intent: drug_warning
- intent: drug_dosage
- intent: drug_interaction
- intent: drug_sideeffects
- slot_was_set:
- entity_name
- action: intent_set
- action: get_answer
- rule: new_issue form
steps:
- intent: new_issue
- action: intent_set
- action: slot_reset
- action: entity_form
- active_loop: entity_form
- rule: Ask to rephrase
steps:
- intent: nlu_fallback
- action: utter_please_rephrase
- rule: Say hi anytime the user says hi
steps:
- intent: greet
- action: utter_greet
- 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: first introduce
steps:
- intent: start
- action: utter_start