-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain.yml
121 lines (106 loc) · 3.56 KB
/
domain.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3.1'
entities:
- country
- commodity
- date
intents:
- analyze
- out_of_scope
- greet
- ask_help
- change_mind
- get_information
slots:
countries:
type: list
mappings:
- type: from_entity
entity: country
commodities:
type: list
mappings:
- type: from_entity
entity: commodity
start_date:
type: text
mappings:
- type: custom
entity: date
end_date:
type: text
mappings:
- type: custom
entity: date
image_paths:
type: list
influence_conversation: false
mappings:
- type: custom
forms:
analyze_form:
ignored_intents:
- out_of_scope
- ask_help
- change_mind
- greet
required_slots:
- commodities
- countries
- start_date
- end_date
actions:
- action_analyze_prices
- action_fallback
- action_map_entities_to_slots
- action_greet_and_help
- validate_analyze_form
- action_deactivate_loop
- action_show_table
responses:
utter_fallback:
- text: "I'm sorry, I didn't quite understand that. Can you rephrase?"
- text: "I apologize, but I didn't catch that. Could you please rephrase?"
- text: "Sorry, I didn't get that. Can you say it differently?"
- text: "I didn't understand that. Could you try saying it another way?"
utter_help_message:
- text: |
I can help you compare commodity prices across multiple countries using data from the Humanitarian Data Exchange (HDX).
You can ask me questions like:
- 'Compare the price of milk and bread in Kazakhstan and Angola for the past two decades'
- 'Show me the latest wheat flour prices in Armenia'
- 'How can I compare prices in Colombia and Gabon'
Just mention the commodity and the countries you're interested in.
utter_greet:
- text: "Hello! How can I assist you today?"
- text: "Hi there! How can I help you today?"
- text: "Greetings! What can I assist you with today?"
- text: "Hello! What do you need help with today?"
utter_greet_again:
- text: "Hello again! How can I assist you further?"
- text: "Welcome back! How can I help you further?"
- text: "Hello again! What else do you need assistance with?"
- text: "Hi again! What would you like to do next?"
utter_ask_commodities:
- text: "Which commodities are you interested in?"
- text: "Can you tell me which commodities you're interested in?"
- text: "What commodities would you like to focus on?"
- text: "Which specific commodities are you looking into?"
utter_ask_countries:
- text: "Which countries do you want to analyze?"
- text: "Please specify the countries you'd like to analyze."
- text: "Which countries are you interested in for the analysis?"
- text: "Can you mention the countries you want to analyze?"
utter_ask_start_date:
- text: "Please provide the date period for the analysis."
- text: "Can you give me the date period for the analysis?"
utter_ask_end_date:
- text: "Please provide the date period for the analysis."
- text: "What is the end date for your analysis period?"
utter_cancel_analyze:
- text: "Alright, let's do something else. What would you like to analyze instead?"
- text: "Okay, let's switch gears. What else would you like to analyze?"
- text: "No problem, let's look at something else. What would you prefer to analyze?"
- text: "Sure, let's change the focus. What other analysis would you like to do?"
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true