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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
{
"id": "workflow/document-approval",
"title": "Document Approval \u2014 Review, Comment, and Sign-off",
"description": "Document approval workflow card with document preview, reviewer assignments, comment thread, approval/reject actions, and signature capture. Uses Container for document metadata, Action buttons for decisions, and Input.Text for comments.",
"category": "workflow",
"tags": [
"workflow",
"approval",
"document",
"review",
"sign-off",
"signature",
"comment",
"decision",
"routing"
],
"use_cases": [
"Contract review and approval",
"Multi-step document sign-off",
"Review with comments and markup",
"Approval routing between stakeholders"
],
"host_targets": [
"generic",
"teams",
"outlook"
],
"complexity": "intermediate",
"card": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"metadata": {
"webUrl": "https://greentic.io/cards/document-approval",
"demo_mode": true
},
"body": [
{
"type": "Container",
"id": "approvalMenu",
"isVisible": true,
"style": "emphasis",
"bleed": true,
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "Image",
"url": "https://img.icons8.com/fluency/96/document.png",
"size": "Medium"
}
],
"verticalContentAlignment": "Center"
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Document Approval",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "Submit documents for review, approve pending items, or track status.",
"spacing": "None",
"isSubtle": true,
"wrap": true
}
]
}
]
},
{
"type": "Container",
"style": "attention",
"spacing": "Medium",
"items": [
{
"type": "TextBlock",
"text": "\ud83d\udd14 3 documents awaiting your approval",
"weight": "Bolder",
"color": "Attention"
}
]
},
{
"type": "ActionSet",
"spacing": "Medium",
"actions": [
{
"type": "Action.ToggleVisibility",
"title": "\ud83d\udce4 Submit Document",
"style": "positive",
"targetElements": [
{
"elementId": "approvalMenu",
"isVisible": false
},
{
"elementId": "submitDoc",
"isVisible": true
}
]
},
{
"type": "Action.ToggleVisibility",
"title": "\u2705 Approve / Reject",
"targetElements": [
{
"elementId": "approvalMenu",
"isVisible": false
},
{
"elementId": "approveDoc",
"isVisible": true
}
]
},
{
"type": "Action.ToggleVisibility",
"title": "\ud83d\udccb My Submissions",
"targetElements": [
{
"elementId": "approvalMenu",
"isVisible": false
},
{
"elementId": "mySubmissions",
"isVisible": true
}
]
}
]
}
]
},
{
"type": "Container",
"id": "submitDoc",
"isVisible": false,
"items": [
{
"type": "TextBlock",
"text": "\ud83d\udce4 Submit for Approval",
"size": "Large",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "Input.ChoiceSet",
"id": "doc_type",
"label": "Document Type",
"isRequired": true,
"choices": [
{
"title": "\ud83d\udcc4 Proposal / Quotation",
"value": "proposal"
},
{
"title": "\ud83d\udccb Contract / Agreement",
"value": "contract"
},
{
"title": "\ud83d\udcb0 Purchase Request",
"value": "purchase"
},
{
"title": "\ud83d\udcca Report / Presentation",
"value": "report"
},
{
"title": "\ud83d\udcdd Policy / SOP Change",
"value": "policy"
},
{
"title": "\ud83c\udfd7\ufe0f Project Charter",
"value": "project_charter"
},
{
"title": "\ud83d\udcb5 Budget Request",
"value": "budget"
},
{
"title": "\u2753 Other",
"value": "other"
}
]
},
{
"type": "Input.Text",
"id": "doc_title",
"label": "Document Title",
"placeholder": "e.g. MAP FAS Phase 2 \u2014 Client Proposal",
"isRequired": true
},
{
"type": "Input.Text",
"id": "doc_description",
"label": "Summary / Context",
"placeholder": "Briefly describe the document and why it needs approval...",
"isMultiline": true,
"isRequired": true
},
{
"type": "Input.ChoiceSet",
"id": "doc_priority",
"label": "Priority",
"value": "normal",
"choices": [
{
"title": "\ud83d\udd34 Urgent \u2014 Need today",
"value": "urgent"
},
{
"title": "\ud83d\udfe1 Normal \u2014 Within 3 days",
"value": "normal"
},
{
"title": "\ud83d\udfe2 Low \u2014 Within 1 week",
"value": "low"
}
]
},
{
"type": "Input.Number",
"id": "doc_value",
"label": "Document Value (IDR, if applicable)",
"placeholder": "e.g. 50000000"
},
{
"type": "TextBlock",
"text": "Approval Chain",
"weight": "Bolder",
"spacing": "Medium"
},
{
"type": "FactSet",
"facts": [
{
"title": "Level 1",
"value": "Direct Manager (auto-routed)"
},
{
"title": "Level 2",
"value": "Department Head (if > Rp 25M)"
},
{
"title": "Level 3",
"value": "Finance Director (if > Rp 100M)"
},
{
"title": "Level 4",
"value": "CEO (if > Rp 500M)"
}
]
},
{
"type": "Input.Toggle",
"id": "doc_notify_urgent",
"title": "Send urgent notification to approver(s)",
"value": "false"
},
{
"type": "ActionSet",
"spacing": "Medium",
"actions": [
{
"type": "Action.Submit",
"title": "\ud83d\udce4 Submit for Approval",
"style": "positive",
"data": {
"action": "submit_document",
"demo_mode": true
}
},
{
"type": "Action.ToggleVisibility",
"title": "\u2190 Back",
"targetElements": [
{
"elementId": "submitDoc",
"isVisible": false
},
{
"elementId": "approvalMenu",
"isVisible": true
}
]
}
]
}
]
},
{
"type": "Container",
"id": "approveDoc",
"isVisible": false,
"items": [
{
"type": "TextBlock",
"text": "\u2705 Pending Your Approval",
"size": "Large",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "Container",
"style": "attention",
"items": [
{
"type": "TextBlock",
"text": "\ud83d\udd34 URGENT",
"weight": "Bolder",
"color": "Attention",
"size": "Small"
},
{
"type": "TextBlock",
"text": "Telkom University AI Ops \u2014 SOW Amendment",
"weight": "Bolder",
"spacing": "None"
},
{
"type": "TextBlock",
"text": "\ud83d\udccb Contract \u2022 Rp 450,000,000 \u2022 Submitted by: Dewi Sari \u2022 Apr 11",
"size": "Small",
"isSubtle": true,
"spacing": "None",
"wrap": true
}
]
},
{
"type": "Container",
"style": "warning",
"separator": true,
"items": [
{
"type": "TextBlock",
"text": "Client Dinner Budget \u2014 MAP Group",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "\ud83d\udcb0 Purchase \u2022 Rp 3,500,000 \u2022 Submitted by: Reza Pratama \u2022 Apr 10",
"size": "Small",
"isSubtle": true,
"spacing": "None",
"wrap": true
}
]
},
{
"type": "Container",
"style": "warning",
"separator": true,
"items": [
{
"type": "TextBlock",
"text": "Databricks License Renewal \u2014 Q2",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "\ud83d\udcb0 Purchase \u2022 Rp 85,000,000 \u2022 Submitted by: Fajar Nugroho \u2022 Apr 9",
"size": "Small",
"isSubtle": true,
"spacing": "None",
"wrap": true
}
]
},
{
"type": "Input.ChoiceSet",
"id": "approve_select",
"label": "Select document to review",
"isRequired": true,
"choices": [
{
"title": "Telkom SOW Amendment \u2014 Rp 450M",
"value": "telkom_sow"
},
{
"title": "MAP Dinner Budget \u2014 Rp 3.5M",
"value": "map_dinner"
},
{
"title": "Databricks Renewal \u2014 Rp 85M",
"value": "databricks_renewal"
}
]
},
{
"type": "Input.ChoiceSet",
"id": "approve_decision",
"label": "Decision",
"isRequired": true,
"choices": [
{
"title": "\u2705 Approve",
"value": "approve"
},
{
"title": "\ud83d\udd04 Approve with comments",
"value": "approve_comments"
},
{
"title": "\u23f3 Request revision",
"value": "revision"
},
{
"title": "\u274c Reject",
"value": "reject"
}
]
},
{
"type": "Input.Text",
"id": "approve_comments",
"label": "Comments (required for revision/rejection)",
"isMultiline": true
},
{
"type": "ActionSet",
"spacing": "Medium",
"actions": [
{
"type": "Action.Submit",
"title": "\ud83d\udce8 Submit Decision",
"style": "positive",
"data": {
"action": "approve_document",
"demo_mode": true
}
},
{
"type": "Action.ToggleVisibility",
"title": "\u2190 Back",
"targetElements": [
{
"elementId": "approveDoc",
"isVisible": false
},
{
"elementId": "approvalMenu",
"isVisible": true
}
]
}
]
}
]
},
{
"type": "Container",
"id": "mySubmissions",
"isVisible": false,
"items": [
{
"type": "TextBlock",
"text": "\ud83d\udccb My Submissions",
"size": "Large",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "FactSet",
"facts": [
{
"title": "MAP FAS Phase 2 Proposal",
"value": "\u2705 Approved (Apr 5) \u2014 All 3 levels"
},
{
"title": "Azure Infra Budget Q2",
"value": "\u23f3 Pending L2 \u2014 Finance Director"
},
{
"title": "Intern Hiring Request",
"value": "\u2705 Approved (Mar 28)"
},
{
"title": "ANTAM POC Extension",
"value": "\ud83d\udd04 Revision requested \u2014 Update timeline"
}
]
},
{
"type": "ActionSet",
"spacing": "Medium",
"actions": [
{
"type": "Action.ToggleVisibility",
"title": "\u2190 Back",
"targetElements": [
{
"elementId": "mySubmissions",
"isVisible": false
},
{
"elementId": "approvalMenu",
"isVisible": true
}
]
}
]
}
]
}
]
},
"notes": "Multi-section card using Action.ToggleVisibility for in-card navigation. All non-main sections hidden by default."
}