forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_recurrent_payment.yml
95 lines (92 loc) · 2.84 KB
/
setup_recurrent_payment.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
version: "3.1"
slots:
recurrent_payment_type:
type: categorical
values:
- direct debit
- standing order
mappings:
- type: custom
recurrent_payment_recipient:
type: text
mappings:
- type: custom
recurrent_payment_amount_of_money:
type: float
mappings:
- type: custom
recurrent_payment_frequency:
type: categorical
values:
- monthly
- yearly
mappings:
- type: custom
recurrent_payment_start_date:
type: any
mappings:
- type: custom
recurrent_payment_end_date:
type: any
mappings:
- type: custom
recurrent_payment_confirmation:
type: bool
mappings:
- type: custom
setup_recurrent_payment_successful:
type: bool
mappings:
- type: custom
responses:
utter_ask_recurrent_payment_type:
- text: "What type of payment would you like to set up?"
buttons:
- title: "Direct Debit"
payload: "direct debit"
- title: "Standing Order"
payload: "standing order"
utter_invalid_recurrent_payment_type:
- text: "Sorry, you requested a payment type that is not valid. Please select one of the available options."
utter_ask_recurrent_payment_recipient:
- text: "Who should receive the payment?"
utter_ask_recipient:
- text: "What is the name of the recipient?"
utter_ask_recurrent_payment_amount_of_money:
- text: "How much money should be transferred?"
utter_ask_recurrent_payment_frequency:
- text: "How often should the payment be made?"
buttons:
- title: "Monthly"
payload: "monthly"
- title: "Yearly"
payload: "yearly"
utter_invalid_recurrent_payment_frequency:
- text: "Sorry, you requested a payment frequency that is not valid. Please select one of the available options."
utter_ask_recurrent_payment_start_date:
- text: "When should the payment start?"
utter_ask_recurrent_payment_end_date:
- text: "When should the payment end?"
utter_invalid_recurrent_payment_end_date:
- text: "Sorry, you requested an end date that is before the start date."
utter_ask_recurrent_payment_confirmation:
- text: "Please confirm that you want to set up this payment."
buttons:
- title: "Yes"
payload: "True"
- title: "No"
payload: "False"
utter_payment_complete:
- text: "Your payment has been set up."
utter_payment_failed:
- text: "Sorry, your payment could not be set up."
utter_payment_cancelled:
- text: "Your payment has been cancelled."
utter_failed_payment_handover:
- text: "Let me connect you to an agent, to get the details of what happened to your payment."
utter_invalid_date:
- text: "Sorry, the date that you provided could not be validated."
actions:
- action_execute_recurrent_payment
- validate_recurrent_payment_start_date
- validate_recurrent_payment_end_date