forked from RasaHQ/financial-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain.yml
161 lines (160 loc) · 4.87 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
session_config:
session_expiration_time: 0.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
- check_earnings:
use_entities: []
entities:
- amount-of-money
- payment_amount
- credit_card
- payment_date
- vendor_name
- time
- PERSON
- number
slots:
PERSON:
type: unfeaturized
account_balance:
type: unfeaturized
initial_value: 1000
amount_of_money:
type: unfeaturized
amount_transferred:
type: unfeaturized
confirm:
type: unfeaturized
credit_card:
type: unfeaturized
end_time:
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
time:
type: unfeaturized
grain:
type: unfeaturized
vendor_name:
type: unfeaturized
currency:
type: unfeaturized
initial_value: "$"
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_greet:
- text: Hi, how can I help you?
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 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}'
utter_searching_spend_transactions:
- text: Searching transactions{vendor_name} between {start_time}
and {end_time}...
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}
and {end_time}...
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:
- text: 'Would you like to schedule a payment of {currency}{payment_amount}{payment_amount_type}
towards your {credit_card} account for {time}?'
buttons:
- title: Yes
payload: /affirm
- title: No, cancel the transaction
payload: /deny
utter_ask_transfer_form_confirm:
- text: 'Would you like to transfer {currency}{amount_of_money} to {PERSON}?'
buttons:
- title: Yes
payload: /affirm
- title: No, cancel the transaction
payload: /deny
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 the transfer"
actions:
- action_account_balance
forms:
- cc_payment_form
- transfer_form
- transact_search_form