-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
124 lines (124 loc) · 3.19 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
122
123
124
version: '2.0'
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: false
intents:
- schedule_day
- ticket_price
- use_public_transport
- user_agree_recommend:
use_entities: []
- greet:
use_entities: []
- goodbye:
use_entities: []
- cancel_recommendation:
use_entities: []
- list_more:
use_entities: []
- resolve_mention
entities:
- mention
- museum
- schedule_day
- ticket_price
- use_public_transport
slots:
mention:
type: text
influence_conversation: false
museum:
type: text
influence_conversation: false
listed_items:
type: list
influence_conversation: false
recommendations:
type: list
influence_conversation: true
use_public_transport:
type: categorical
influence_conversation: false
values:
- kendaraan umum
- kendaraan pribadi
- tidak pakai kendaraan
schedule_day:
type: list
influence_conversation: false
# ticket_price:
# type: list
# influence_conversation: false
ticket_price:
type: text
influence_conversation: false
responses:
utter_greet:
- text: |-
Hai! Perkenalkan aku Mersy :D
Aku adalah chatbot untuk merekomendasikan Museum di Kota Jakarta.
Apakah kamu ingin diberikan rekomendasi Museum di Jakarta?
utter_goodbye:
- text: Bye
utter_user_agree_recommend:
- text: Baiklah, tolong jawab pertanyaan - pertanyaan berikut sesuai preferensi kamu :)
utter_cancel_recommendation:
- text: Proses rekomendasi dibatalkan
utter_ask_use_public_transport:
- text: Apakah kamu akan menggunakan kendaraan umum, kendaraan pribadi atau tidak pakai kendaraan?
utter_ask_schedule_day:
- text: |-
Di hari apa saja kamu bisa mengunjungi museum?
Kamu bisa menyebutkan lebih dari 1
contoh:
- senin, kamis, jumat
- rabu sabtu minggu
# utter_ask_ticket_price:
# - text: |-
# Berapa harga tiket termurah dan termahal yang anda inginkan?
# contoh: 1000 sampai 5000, 1000 dan 5000, 1000 - 5000, 1000 5000
utter_ask_ticket_price:
- text: |-
pilih salah satu kategori harga tiket yang kamu mau:
- paling murah
- murah
- mahal
- paling mahal
utter_submit_recommend_form:
- text: Terima kasih dan Mohon tunggu sebentar, Aku sedang memproses rekomendasi museum untuk kamu...
utter_ask_rephrase:
- text: Maaf, Apakah bisa diulangi?
utter_recommendation_empty:
- text: Maaf, aku tidak menemukan museum yang kamu inginkan :(
actions:
- action_list_entities
- action_query_entities
- action_query_museum
- action_reset_all_slot
- action_resolve_mention
- action_submit_form
- utter_ask_rephrase
- utter_ask_schedule_day
- utter_ask_ticket_price
- utter_ask_use_public_transport
- utter_cancel_recommendation
- utter_goodbye
- utter_greet
- utter_recommendation_empty
- utter_submit_recommend_form
- utter_user_agree_recommend
forms:
recommend_form:
required_slots:
use_public_transport:
- type: from_entity
entity: use_public_transport
intent: use_public_transport
schedule_day:
- type: from_entity
entity: schedule_day
intent: schedule_day
ticket_price:
- type: from_entity
entity: ticket_price
intent: ticket_price