-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cards.js
150 lines (148 loc) · 4.96 KB
/
Cards.js
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
var cards = {}
cards.adaptiveCard = {
contentType: "application/vnd.microsoft.card.adaptive",
content: {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"body": [
{
"type": "Container",
"speak": "<s>Card created by Renee Dothard: Insurance Card schema</s>",
"items": [
{
"type": "TextBlock",
"text": "Card created: Publish Adaptive Card schema for Insurance",
"weight": "bolder",
"size": "medium"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"size": "auto",
"items": [
{
"type": "Image",
"url": "https://http://www.clipproject.info/images/joomgallery/originals/people_35/aunt_clipart_-_people_clip_art_free_20121124_1587035614.gif",
"size": "small",
"style": "person"
}
]
},
{
"type": "Column",
"size": "stretch",
"items": [
{
"type": "TextBlock",
"text": "**Renee Dothard**",
"wrap": true
},
{
"type": "TextBlock",
"separation": "none",
"text": "Created {{DATE(2017-09-11T06:08:39Z,Long)}} {{TIME(2017-09-11T11:21:39Z)}}",
"isSubtle": true,
"wrap": true
}
]
}
]
}
]
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Welcome, Renee to the insurance claims bot. Let's get started by selecting one of the options below that I can assist you with.",
"speak": "",
"wrap": true
},
{
"type": "FactSet",
"speak": "It has been assigned to: David Claux",
"facts": [
{
"title": "Small Business:",
"value": "Policy Number 123456"
},
{
"title": "Coverage Type:",
"value": "Liability and Flood"
},
{
"title": "Policy Owner:",
"value": "Renee Dothard"
},
{
"title": "Effective Date:",
"value": "09/01/2017"
}
]
}
]
}
],
"actions": [
{
"type": "Action.ShowCard",
"title": "Make a new claim",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "Input.Date",
"id": "dueDate",
"title": "Select due date"
}
],
"actions": [
{
"type": "Action.Http",
"title": "OK",
"url": "http://xyz.com",
"headers": {
"content-type": "application/json"
},
"body": "{ 'comment' : '{{comment.value}}' }"
}
]
}
},
{
"type": "Action.ShowCard",
"title": "Check status on existing claim",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "Input.Text",
"id": "comment",
"isMultiline": true,
"placeholder": "Enter your comment"
}
],
"actions": [
{
"type": "Action.Http",
"method": "POST",
"title": "OK",
"url": "http://xyz.com",
"headers": {
"content-type": "application/json"
},
"body": "{ 'comment' : '{{comment.value}}' }"
}
]
}
},
{
"type": "Action.OpenUrl",
"title": "Have an agent contact me",
"url": "https://www.allianz.com/en/press/press_service/press-offices/"
}
]}}
module.exports = cards;