-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.yml
78 lines (62 loc) · 1.4 KB
/
rules.yml
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
version: "3.1"
rules:
- rule: Set user mode
steps:
- intent: set_user_mode
- action: utter_greet
- rule: Say 'I am a bot' anytime the user challenges
steps:
- intent: bot_challenge
- action: utter_iamabot
- rule: product search
steps:
- intent: ask_product
- action: utter_ask_brand
- rule: search for product by name
steps:
- intent: inform_brand
- action: query_brand_type
- rule: search for all products
steps:
- intent: find_all_products
- action: query_all_products
- rule: search for all transactions
steps:
- intent: find_all_transactions
- action: query_all_transactions
- rule: testing for custom action
steps:
- intent: test_custom_action
- action: custom_action_test
- rule: show all information
steps:
- intent: find_all_info
- action: query_all_information
- rule: show all brands available
steps:
- intent: find_all_brands
- action: query_unique_brands
- rule: find all info by tag
steps:
- intent: find_tag
- action: query_tag
- rule: find all products by tag
steps:
- intent: find_products_tag
- action: query_products_tag
- rule: page redirect
steps:
- intent: page_redirect
- action: redirect_page
- rule: are you ok
steps:
- intent: default_text
- action: utter_are_you_ok
- rule: close bot
steps:
- intent: end_bot
- action: utter_end_bot
- rule: close app
steps:
- intent: end_app
- action: utter_end_app