forked from RasaHQ/financial-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
220 lines (219 loc) · 6.69 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
session_config:
session_expiration_time: 0
carry_over_slots_to_new_session: true
intents:
- transfer_money:
use_entities: []
- inform
- pay_cc:
use_entities: []
- greet
- goodbye
- affirm
- deny
- thankyou
- ask_transfer_charge
- search_transactions:
use_entities: []
- check_balance:
use_entities:
- credit_card
- account_type
- check_earnings:
use_entities: []
- check_recipients
- session_start
- restart
- trigger_handoff
- human_handoff
- handoff:
triggers: utter_greet
- help
entities:
- amount-of-money
- payment_amount
- credit_card
- payment_date
- vendor_name
- time
- PERSON
- number
- account_type
- handoff_to
slots:
PERSON:
type: unfeaturized
account_balance:
type: unfeaturized
amount_of_money:
type: unfeaturized
amount_transferred:
type: unfeaturized
initial_value: 0
confirm:
type: unfeaturized
credit_card:
type: unfeaturized
credit_card_balance:
type: unfeaturized
currency:
type: unfeaturized
end_time:
type: unfeaturized
end_time_formatted:
type: unfeaturized
grain:
type: unfeaturized
known_recipients:
type: unfeaturized
payment_amount:
type: unfeaturized
payment_amount_type:
type: unfeaturized
initial_value: ''
requested_slot:
type: unfeaturized
search_type:
type: unfeaturized
start_time:
type: unfeaturized
start_time_formatted:
type: unfeaturized
time:
type: unfeaturized
time_formatted:
type: unfeaturized
transaction_history:
type: unfeaturized
vendor_list:
type: unfeaturized
vendor_name:
type: unfeaturized
handoff_to:
type: unfeaturized
responses:
utter_ask_transfer_form_amount_of_money:
- text: How much money do you want to transfer?
utter_ask_transfer_form_PERSON:
- text: Who do you want to transfer money to?
utter_goodbye:
- text: Bye
utter_noworries:
- text: You're welcome :)
utter_transfer_complete:
- text: Successfully transferred {currency}{amount_of_money} to {PERSON}.
utter_transfer_charge:
- text: You are entitled to six transfers within a statement cycle before being
charged. For subsequent transfers you will be charged {currency}10 per transaction.
utter_ask_cc_payment_form_payment_amount:
- text: How much do you want to pay?
utter_ask_cc_payment_form_credit_card:
- text: Towards which credit card account do you want to make a payment?
utter_ask_cc_payment_form_time:
- text: For which date would you like to schedule the payment?
utter_ask_transact_search_form_vendor_name:
- text: For which vendor do you want to see transactions? e.g Starbucks, Target,
Amazon
utter_ask_transact_search_form_time:
- text: In which timeframe would you like to search for transactions?
utter_no_payment_amount:
- text: Sorry, I don't understand that payment amount.
utter_no_paymentdate:
- text: Sorry, that is not a valid payment date.
utter_no_creditcard:
- text: Sorry, that is not a valid credit card account to make payments towards.
utter_no_vendor_name:
- text: Sorry, that's not a recognized vendor.
utter_no_transactdate:
- text: Sorry, that's not a recognized time frame.
utter_cc_pay_scheduled:
- text: Payment of {currency}{payment_amount}{payment_amount_type} towards your
{credit_card} account scheduled to be paid at {time_formatted}.
utter_searching_spend_transactions:
- text: Searching transactions{vendor_name} between {start_time_formatted} and {end_time_formatted}...
utter_found_spend_transactions:
- text: I found {numtransacts} transactions{vendor_name} totalling {currency}{total}.
utter_searching_deposit_transactions:
- text: Searching deposits made to your account between {start_time_formatted} and
{end_time_formatted}...
utter_found_deposit_transactions:
- text: I found {numtransacts} deposits made to your account totalling {currency}{total}
utter_ask_rephrase:
- text: I didn't quite understand that. Can you rephrase?
utter_ask_switch_goal:
- text: We haven't completed the transaction search yet. Are you sure you want to
switch to transfer money?
utter_ask_back_to_transact:
- text: Would you like to go back to the transaction search now?
utter_ask_back_to_transfer:
- text: Would you like to go back to transferring money now?
utter_ok:
- text: 👍
- text: ok
utter_ask_continue:
- text: Would you like to continue?
utter_default:
- text: Sorry, I didn't get that. Could you rephrase?
utter_ask_cc_payment_form_confirm:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No, cancel the transaction
text: Would you like to schedule a payment of {currency}{payment_amount}{payment_amount_type}
towards your {credit_card} account for {time_formatted}?
utter_ask_transfer_form_confirm:
- buttons:
- payload: /affirm
title: Yes
- payload: /deny
title: No, cancel the transaction
text: Would you like to transfer {currency}{amount_of_money} to {PERSON}?
utter_transfer_cancelled:
- text: Transfer cancelled.
utter_cc_pay_cancelled:
- text: Credit card account payment cancelled.
utter_account_balance:
- text: Your balance is {currency}{init_account_balance}.
utter_changed_account_balance:
- text: Your balance was {currency}{init_account_balance} and is now {currency}{account_balance}
after transfers and payments.
utter_unknown_recipient:
- text: Sorry, {PERSON} is not in your list of known recipients.
utter_insufficient_funds:
- text: Sorry, you don't have enough money to do that!
utter_credit_card_balance:
- text: The current balance for your {credit_card} account is {currency}{amount_of_money}.
utter_recipients:
- text: These are your known recpients to whom you can send money:{formatted_recipients}
utter_greet:
- text: Hi! I'm your Financial Assistant!
utter_ask_handoff:
- text: It looks like you want to be transferred to a human agent.
utter_handoff:
- text: Alright, I'll try to transfer you.
utter_wouldve_handed_off:
- text: If you were talking to me via chatroom, I would have handed you off to {handoffhost}.
utter_no_handoff:
- text: Since you haven't configured a host to hand off to, I can't send you anywhere!
utter_ask_whatelse:
- text: What else can I help you with?
utter_help:
- text: "I can help you with your financial accounts.
\nYou can ask me things like:
\n- What's my account balance?
\n- Pay off my credit card
\n- What did I spend at Target last month?
\n- I need to transfer money"
actions:
- action_account_balance
- action_session_start
- action_restart
- action_credit_card_balance
- action_recipients
- action_handoff
- action_handoff_options
forms:
- cc_payment_form
- transfer_form
- transact_search_form