forked from RasaHQ/rasa-calm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify_account.yml
64 lines (62 loc) · 1.78 KB
/
verify_account.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
version: "3.1"
slots:
verify_account_email:
type: text
mappings:
- type: custom
based_in_california:
type: bool
mappings:
- type: custom
verify_account_sufficient_california_income:
type: bool
mappings:
- type: custom
verify_account_confirmation:
type: bool
mappings:
- type: custom
responses:
utter_ask_verify_account_email:
- text: What's your email address?
utter_verify_account_success:
- text: Your account was successfully verified
utter_verify_account_cancelled:
- text: Cancelling account verification...
utter_ask_based_in_california:
- text: Are you based in California?
buttons:
- payload: "yes"
title: Yes
- payload: "no"
title: No
utter_ask_verify_account_sufficient_california_income:
- text: Does your yearly income exceed 100,000 USD?
buttons:
- payload: "yes"
title: Yes
- payload: "no"
title: No
utter_ca_income_insufficient:
- text: Unfortunately, we cannot increase your transfer limits under these circumstances.
utter_ask_verify_account_confirmation:
- condition:
- type: slot
name: based_in_california
value: true
text: Your email address is {verify_account_email} and you are based in California with a yearly income exceeding 100,000$, correct?
buttons:
- payload: "yes"
title: Yes
- payload: "no"
title: No, cancel
- condition:
- type: slot
name: based_in_california
value: false
text: Your email address is {verify_account_email} and you are not based in California, correct?
buttons:
- payload: "yes"
title: Yes
- payload: "no"
title: No, cancel