-
Notifications
You must be signed in to change notification settings - Fork 1
/
RoboAdvisor_Export.json
197 lines (197 loc) · 6.42 KB
/
RoboAdvisor_Export.json
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
{
"metadata": {
"schemaVersion": "1.0",
"importType": "LEX",
"importFormat": "JSON"
},
"resource": {
"name": "RoboAdvisor",
"version": "1",
"intents": [
{
"rejectionStatement": {
"messages": [
{
"contentType": "PlainText",
"content": "I will be pleased to assist you in the future."
}
]
},
"name": "RecommendPortfolio",
"version": "3",
"fulfillmentActivity": {
"codeHook": {
"uri": "arn:aws:lambda:ap-southeast-2:003388478180:function:recommendPortfolio",
"messageVersion": "1.0"
},
"type": "CodeHook"
},
"sampleUtterances": [
"I want to save money for my retirement",
"I'm {age} and I would like to invest for my retirement",
"I'm {age} and I want to invest for my retirement",
"I want the best option to invest for my retirement",
"I'm worried about my retirement",
"I want to invest for my retirement",
"I would like to invest for my retirement",
"How can I get started my retirement investment plan?",
"Hope I am not too late to invest for my retirement"
],
"slots": [
{
"sampleUtterances": [],
"slotType": "AMAZON.NUMBER",
"obfuscationSetting": "NONE",
"slotConstraint": "Required",
"valueElicitationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "How old are you?"
}
],
"maxAttempts": 2
},
"priority": 2,
"name": "age"
},
{
"sampleUtterances": [],
"slotType": "AMAZON.FirstName",
"obfuscationSetting": "NONE",
"slotConstraint": "Required",
"valueElicitationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "Thank you for trusting me to help, could you please give me your name?"
}
],
"maxAttempts": 2
},
"priority": 1,
"name": "firstName"
},
{
"sampleUtterances": [],
"slotType": "AMAZON.NUMBER",
"obfuscationSetting": "NONE",
"slotConstraint": "Required",
"valueElicitationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "How much do you want to invest?"
}
],
"maxAttempts": 2
},
"priority": 3,
"name": "investmentAmount"
},
{
"sampleUtterances": [],
"slotType": "riskLevel",
"slotTypeVersion": "1",
"obfuscationSetting": "NONE",
"slotConstraint": "Required",
"valueElicitationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "What level of investment risk would you like to take?"
}
],
"responseCard": "{\"version\":1,\"contentType\":\"application/vnd.amazonaws.card.generic\",\"genericAttachments\":[{\"imageUrl\":\"https://github.com/chirathlv/unit13-challenge/blob/main/RoboAdvisor/Icons/none.png?raw=true\",\"subTitle\":\"No risk at all\",\"title\":\"None\",\"buttons\":[{\"text\":\"None\",\"value\":\"None\"}]},{\"imageUrl\":\"https://github.com/chirathlv/unit13-challenge/blob/main/RoboAdvisor/Icons/low.png?raw=true\",\"subTitle\":\"Just a bit of risk\",\"title\":\"Very Low or Low\",\"buttons\":[{\"text\":\"Very Low\",\"value\":\"Very Low\"},{\"text\":\"Low\",\"value\":\"Low\"}]},{\"imageUrl\":\"https://github.com/chirathlv/unit13-challenge/blob/main/RoboAdvisor/Icons/medium.png?raw=true\",\"subTitle\":\"Let's start becoming wild\",\"title\":\"Medium\",\"buttons\":[{\"text\":\"Medium\",\"value\":\"Medium\"}]},{\"imageUrl\":\"https://github.com/chirathlv/unit13-challenge/blob/main/RoboAdvisor/Icons/high.png?raw=true\",\"subTitle\":\"I have no fear!\",\"title\":\"High or Very High\",\"buttons\":[{\"text\":\"High\",\"value\":\"High\"},{\"text\":\"Very High\",\"value\":\"Very High\"}]}]}",
"maxAttempts": 2
},
"priority": 4,
"name": "riskLevel"
}
],
"confirmationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "Would you like me to search for the best investment portfolio for you now?"
}
],
"maxAttempts": 3
},
"dialogCodeHook": {
"uri": "arn:aws:lambda:ap-southeast-2:003388478180:function:recommendPortfolio",
"messageVersion": "1.0"
}
}
],
"slotTypes": [
{
"description": "riskLevel",
"name": "riskLevel",
"version": "1",
"enumerationValues": [
{
"value": "High",
"synonyms": [
"Maximum"
]
},
{
"value": "Very Low",
"synonyms": [
"Very Low"
]
},
{
"value": "Low",
"synonyms": [
"Minimal"
]
},
{
"value": "Medium",
"synonyms": [
"Medium"
]
},
{
"value": "Very High",
"synonyms": [
"Very High"
]
},
{
"value": "None",
"synonyms": [
"None"
]
}
],
"valueSelectionStrategy": "TOP_RESOLUTION"
}
],
"voiceId": "Nicole",
"childDirected": false,
"locale": "en-AU",
"idleSessionTTLInSeconds": 300,
"clarificationPrompt": {
"messages": [
{
"contentType": "PlainText",
"content": "Sorry, can you please repeat that?"
}
],
"maxAttempts": 5
},
"abortStatement": {
"messages": [
{
"contentType": "PlainText",
"content": "Sorry, I could not understand. Goodbye."
}
]
},
"detectSentiment": false,
"enableModelImprovements": true
}
}