forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_recurrent_payment.yml
42 lines (42 loc) · 1.66 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
flows:
setup_recurrent_payment:
name: setup recurrent payment
description: set up a recurring payment, which can either be a direct debit or a standing order
steps:
- collect: recurrent_payment_type
description: the type of payment
- collect: recurrent_payment_recipient
utter: utter_ask_recipient
description: the name of a person
- collect: recurrent_payment_amount_of_money
description: the amount of money without any currency designation
- collect: recurrent_payment_frequency
description: the frequency of the payment
- collect: recurrent_payment_start_date
description: the start date of the payment
- collect: recurrent_payment_end_date
description: the end date of the payment
rejections:
- if: slots.recurrent_payment_end_date < slots.recurrent_payment_start_date
utter: utter_invalid_recurrent_payment_end_date
- collect: recurrent_payment_confirmation
description: accepts True or False
ask_before_filling: true
next:
- if: not slots.recurrent_payment_confirmation
then:
- action: utter_payment_cancelled
next: END
- else: execute_payment
- id: execute_payment
action: action_execute_recurrent_payment
next:
- if: slots.setup_recurrent_payment_successful
then:
- action: utter_payment_complete
next: END
- else: payment_failed
- id: payment_failed
action: utter_payment_failed
- action: utter_failed_payment_handover
- action: utter_failed_handoff