-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathindex.html
More file actions
2587 lines (2431 loc) · 138 KB
/
index.html
File metadata and controls
2587 lines (2431 loc) · 138 KB
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
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>M365 Copilot Agents Cost Calculator</title>
<meta name="description" content="Estimate production costs for M365 Copilot agents — custom Copilot Studio agents, Agent Builder agents, SharePoint agents, and Azure Foundry agents. Based on Microsoft Learn and Azure pricing.">
<meta property="og:title" content="M365 Copilot Agents Cost Calculator">
<meta property="og:description" content="Plan production costs for Microsoft 365 Copilot Studio agents, Agent Builder agents, SharePoint agents, and Azure Foundry agents, with quick-start templates and Microsoft Learn-based billing rates.">
<meta property="og:type" content="website">
<meta property="og:image" content="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%230078d4'/%3E%3Cpath d='M18 20h28v6H18zm0 10h28v6H18zm0 10h18v6H18z' fill='white'/%3E%3C/svg%3E">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%230078d4'/%3E%3Cpath d='M18 20h28v6H18zm0 10h28v6H18zm0 10h18v6H18z' fill='white'/%3E%3C/svg%3E">
<!-- Microsoft Clarity -->
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "w7ddacbg0n");
</script>
<style>
:root {
--bg: #1b1b1b;
--card: #2d2d2d;
--card-alt: #252525;
--accent: #0078d4;
--accent-light: #4da3ff;
--green: #2ea043;
--yellow: #ffb900;
--red: #d13438;
--white: #ffffff;
--light: #cccccc;
--muted: #999999;
--border: #444444;
--input-bg: #1e1e1e;
--header-start: #0078d4;
--header-end: #005a9e;
--shadow: rgba(0,0,0,0.4);
}
body.theme-light {
--bg: #f3f6fb;
--card: #ffffff;
--card-alt: #f7f9fc;
--accent: #0f6cbd;
--accent-light: #004578;
--green: #107c10;
--yellow: #8a6f00;
--red: #a4262c;
--white: #1b1a19;
--light: #323130;
--muted: #605e5c;
--border: #d2d0ce;
--input-bg: #ffffff;
--header-start: #deecf9;
--header-end: #c7e0f4;
--shadow: rgba(15, 30, 60, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg); color: var(--white); line-height: 1.5; min-height: 100vh;
}
/* Header */
.header {
background: linear-gradient(135deg, var(--header-start) 0%, var(--header-end) 100%);
padding: 2rem 2rem 1.5rem;
}
.header h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--white); }
.header p { color: color-mix(in srgb, var(--white) 85%, transparent); font-size: 0.95rem; }
.header .badges { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.badge {
display: inline-block; background: color-mix(in srgb, var(--white) 15%, transparent);
padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem;
}
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
/* Steps */
.step { margin-bottom: 2rem; }
.step-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.step-num {
width: 28px; height: 28px; background: var(--accent); border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 0.85rem; font-weight: 600; flex-shrink: 0;
}
.step-title { font-size: 1.1rem; font-weight: 600; }
.step-subtitle {
font-size: 0.85rem; color: var(--muted);
margin-bottom: 1rem; margin-left: 2.6rem;
}
.learn-link {
font-size: 0.78rem; margin-left: 2.6rem; margin-bottom: 0.75rem;
display: block;
}
.learn-link a {
color: var(--accent-light); text-decoration: none;
display: inline-flex; align-items: center; gap: 0.3rem;
}
.learn-link a:hover { text-decoration: underline; }
/* Cards */
.card {
background: var(--card); border-radius: 10px; padding: 1.25rem;
margin-bottom: 1rem; border: 1px solid transparent;
}
.card:hover { border-color: var(--border); }
.card h3 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--light); }
/* Form elements */
.form-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem;
}
.field label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.field .hint { font-size: 0.7rem; color: var(--accent-light); }
.field input[type="number"], .field select {
width: 100%; background: var(--input-bg); border: 1px solid var(--border);
color: var(--white); padding: 0.45rem 0.65rem; border-radius: 6px; font-size: 0.9rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field select option { background: var(--input-bg); color: var(--white); }
/* Info button */
.info-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 18px; height: 18px; border-radius: 50%;
background: var(--border); color: var(--light); font-size: 0.7rem;
font-weight: 700; cursor: pointer; border: none;
vertical-align: middle; margin-left: 0.35rem;
position: relative; font-style: italic; font-family: Georgia, serif;
transition: background 0.2s;
}
.info-btn:hover { background: var(--accent); }
.info-btn:focus { outline: 2px solid var(--white); outline-offset: 1px; background: var(--accent); }
/* Tooltip */
.tooltip {
display: none; position: absolute; z-index: 100;
background: #393939; border: 1px solid var(--border);
border-radius: 8px; padding: 0.85rem 1rem;
font-size: 0.82rem; line-height: 1.5; color: var(--light);
width: 340px; left: 50%; transform: translateX(-50%);
top: calc(100% + 8px); font-style: normal; font-family: 'Segoe UI', sans-serif;
font-weight: 400; box-shadow: 0 4px 16px var(--shadow);
}
body.theme-light .tooltip { background: #ffffff; }
.tooltip::before {
content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
border-left: 6px solid transparent; border-right: 6px solid transparent;
border-bottom: 6px solid #393939;
}
body.theme-light .tooltip::before { border-bottom-color: #ffffff; }
.info-btn:hover .tooltip,
.info-btn:focus .tooltip { display: block; }
.tooltip a { color: var(--accent-light); text-decoration: underline; }
.tooltip strong { color: var(--white); }
/* Knowledge source rows */
.ks-row {
display: flex; align-items: center; gap: 0.75rem;
padding: 0.6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.ks-row:last-child { border-bottom: none; }
.ks-check {
display: flex; align-items: center; gap: 0.5rem;
flex: 0 0 220px; font-size: 0.88rem;
}
.ks-check input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.ks-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ks-count {
display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted);
}
.ks-count input {
width: 60px; background: var(--input-bg); border: 1px solid var(--border);
color: var(--white); padding: 0.3rem 0.5rem; border-radius: 5px;
font-size: 0.85rem; text-align: center;
}
.ks-count input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ks-count input:disabled { opacity: 0.3; }
.ks-cost { font-size: 0.75rem; color: var(--accent-light); margin-left: auto; }
/* Toggle row */
.toggle-row {
display: flex; align-items: center; gap: 0.5rem;
padding: 0.5rem 0; font-size: 0.88rem;
}
.toggle-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.toggle-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-row .cost-hint { font-size: 0.75rem; color: var(--accent-light); margin-left: auto; }
.toggle-row.free-row .cost-hint { color: var(--green); }
/* Sub-toggle (indented) */
.sub-toggle {
margin-left: 2rem; padding: 0.35rem 0; font-size: 0.82rem; color: var(--muted);
display: flex; align-items: center; gap: 0.5rem;
}
.sub-toggle input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }
/* Example prompts */
.example-card {
background: var(--card-alt); border: 1px solid var(--border);
border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.example-card .prompt {
font-style: italic; color: var(--light); margin-bottom: 0.6rem; font-size: 0.9rem;
padding-left: 0.75rem; border-left: 3px solid var(--accent);
}
.trace-step {
display: flex; gap: 0.5rem; align-items: baseline;
padding: 0.2rem 0; font-size: 0.78rem; color: var(--muted);
}
.trace-step .arrow { color: var(--accent); flex-shrink: 0; }
.trace-step .credits { margin-left: auto; color: var(--white); font-weight: 500; white-space: nowrap; }
.example-total {
margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border);
font-size: 0.85rem; font-weight: 600; display: flex; justify-content: space-between;
}
/* Results */
.results {
background: var(--card); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.results h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.results-summary {
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem; margin-bottom: 1.25rem;
}
.summary-box { background: var(--input-bg); border-radius: 8px; padding: 1rem; text-align: center; }
.summary-box .big { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-box .big.blue { color: var(--accent); }
.summary-box .big.green { color: var(--green); }
.summary-box .lbl { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.results-table {
width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.82rem;
}
.results-table th {
text-align: left; padding: 0.5rem 0.6rem;
background: var(--accent); color: var(--white); font-weight: 500; font-size: 0.78rem;
}
.results-table th:first-child { border-radius: 6px 0 0 0; }
.results-table th:last-child { border-radius: 0 6px 0 0; }
.results-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); }
.results-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.results-table .total-row td {
font-weight: 600; background: rgba(0,120,212,0.1); border-top: 2px solid var(--accent);
}
.results-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Bars */
.bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; font-size: 0.78rem; }
.bar-label { flex: 0 0 150px; color: var(--muted); text-align: right; }
.bar-track { flex: 1; height: 18px; background: var(--input-bg); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; min-width: 2px; }
.bar-value { flex: 0 0 90px; font-variant-numeric: tabular-nums; }
.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
@media (max-width: 768px) { .breakdown-grid { grid-template-columns: 1fr; } }
.breakdown-section h3 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--light); }
/* Capacity */
.capacity-panel { background: var(--input-bg); border-radius: 8px; padding: 1rem 1.25rem; }
.capacity-panel h3 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--light); }
.capacity-stat {
display: flex; justify-content: space-between; padding: 0.3rem 0;
font-size: 0.82rem; border-bottom: 1px solid var(--border);
}
.capacity-stat:last-child { border-bottom: none; }
.capacity-stat .label { color: var(--muted); }
.capacity-stat .value { font-weight: 500; font-variant-numeric: tabular-nums; }
.capacity-stat .value.ok { color: var(--green); }
.capacity-stat .value.warn { color: var(--yellow); }
.capacity-stat .value.danger { color: var(--red); }
.capacity-bar-container { margin: 0.75rem 0; }
.capacity-bar-bg { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; position: relative; }
.capacity-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s, background 0.3s; }
.capacity-bar-marker { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--red); }
/* Buttons */
.actions-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-export {
padding: 0.5rem 1.25rem; border-radius: 6px; border: 1px solid var(--border);
background: var(--card); color: var(--light); font-size: 0.85rem; cursor: pointer;
transition: all 0.2s;
}
.btn-export:hover { border-color: var(--accent); color: var(--accent); }
.btn-export:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-reset {
padding: 0.5rem 1.25rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.6);
background: rgba(255,255,255,0.12); color: #ffffff; font-size: 0.85rem; cursor: pointer;
transition: all 0.2s;
}
.btn-reset:hover { background: rgba(255,255,255,0.25); border-color: #ffffff; }
.btn-reset:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.note { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.note a { color: var(--accent-light); text-decoration: none; }
.note a:hover { text-decoration: underline; }
.banner {
background: rgba(255,185,0,0.08);
border: 1px solid rgba(255,185,0,0.28);
border-radius: 10px;
padding: 0.9rem 1rem;
margin-bottom: 1.25rem;
font-size: 0.82rem;
color: var(--light);
}
.banner strong { color: var(--white); }
.info-banner {
background: rgba(0,120,212,0.08);
border: 1px solid rgba(0,120,212,0.22);
border-radius: 8px;
padding: 0.8rem 0.9rem;
margin-bottom: 1rem;
font-size: 0.8rem;
color: var(--light);
}
.info-banner strong { color: var(--white); }
.inline-toolbar {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
align-items: end;
}
.toolbar-field {
min-width: 240px;
flex: 1 1 280px;
}
.theme-toggle {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.75rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--card);
color: var(--light);
font-size: 0.82rem;
}
.theme-toggle select {
background: var(--input-bg);
color: var(--white);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.35rem 0.55rem;
}
.footer-meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 0.5rem;
}
.version-badge {
font-size: 0.75rem;
color: var(--muted);
border: 1px solid var(--border);
border-radius: 999px;
padding: 0.2rem 0.55rem;
background: var(--card);
}
@media (max-width: 768px) {
.theme-toggle { margin-left: 0; width: 100%; justify-content: space-between; }
}
.empty-state { text-align: center; padding: 2rem; color: var(--muted); }
/* ═══════════════════════════════════
Light theme: accessibility & contrast fixes
═══════════════════════════════════ */
/* Header: use solid brand blue so its children (h1, p, badges, buttons) remain on a dark bg */
body.theme-light .header {
background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}
/* Force white text for elements that sit on the accent-coloured backgrounds */
body.theme-light .step-num,
body.theme-light .results-table th {
color: #ffffff;
}
/* btn-reset: replace the ghost-white style with a clear outlined accent button */
body.theme-light .btn-reset {
border: 1.5px solid var(--accent);
background: transparent;
color: var(--accent);
}
body.theme-light .btn-reset:hover {
background: rgba(15, 108, 189, 0.09);
border-color: var(--accent);
color: var(--accent);
}
body.theme-light .btn-reset:focus-visible {
outline-color: var(--accent);
background: rgba(15, 108, 189, 0.09);
}
/* btn-reset that lives in the dark-blue header stays white */
body.theme-light .header .btn-reset {
border-color: rgba(255,255,255,0.7);
background: rgba(255,255,255,0.15);
color: #ffffff;
}
body.theme-light .header .btn-reset:hover {
background: rgba(255,255,255,0.28);
border-color: #ffffff;
color: #ffffff;
}
/* btn-export in light mode: subtle border */
body.theme-light .btn-export {
border-color: var(--border);
background: var(--card);
color: var(--white);
}
body.theme-light .btn-export:hover { border-color: var(--accent); color: var(--accent); background: rgba(15,108,189,0.06); }
/* Summary boxes and capacity panel: tinted bg so they stand out on white cards */
body.theme-light .summary-box {
background: #eef2f9;
border: 1px solid var(--border);
}
body.theme-light .capacity-panel {
background: #eef2f9;
border: 1px solid var(--border);
}
/* Bar track: visible on white */
body.theme-light .bar-track { background: #dde3ec; }
/* Table: tinted alternate rows and total row */
body.theme-light .results-table tr:nth-child(even) td { background: rgba(0,0,0,0.03); }
body.theme-light .results-table .total-row td { background: rgba(15,108,189,0.07); }
/* Example card border: more visible on white bg */
body.theme-light .example-card { border-color: #c4d3e8; }
/* Banner/info-banner text: ensure readable in light mode */
body.theme-light .banner { background: rgba(255,185,0,0.10); border-color: rgba(200,140,0,0.35); }
body.theme-light .info-banner { background: rgba(15,108,189,0.07); border-color: rgba(15,108,189,0.22); }
/* Theme-toggle widget inside the dark header: invert colours */
body.theme-light .header .theme-toggle {
border-color: rgba(255,255,255,0.4);
background: rgba(255,255,255,0.15);
color: #ffffff;
}
body.theme-light .header .theme-toggle select {
background: #003a6e; /* explicit dark bg so options stay readable */
color: #ffffff;
border-color: rgba(255,255,255,0.3);
}
body.theme-light .header .theme-toggle select option {
background: #003a6e;
color: #ffffff;
}
/* Print styles */
@media print {
body { background: #fff; color: #000; }
.header { background: #0078d4 !important; -webkit-print-color-adjust: exact; }
.card, .results, .example-card { background: #f5f5f5; border: 1px solid #ccc; }
.info-btn { display: none; }
}
</style>
</head>
<body>
<div class="header">
<h1>M365 Copilot Agents Cost Calculator</h1>
<p>Estimate production costs for Copilot Studio agents, Agent Builder agents, SharePoint agents, and Azure Foundry agents</p>
<div class="badges">
<label class="theme-toggle" for="theme_mode">
<span>Theme</span>
<select id="theme_mode" onchange="setTheme(this.value)">
<option value="dark" selected>Dark</option>
<option value="light">Light</option>
</select>
</label>
<button class="btn-reset" onclick="resetAll()" style="margin-left:auto;">↻ Start Over</button>
</div>
</div>
<div class="container">
<div class="banner">
<strong>Planning estimate only.</strong> This calculator is intended for cost modeling before rollout. It is not a billing commitment, and actual charges can vary based on runtime behavior, orchestration paths, tenant configuration, model usage, Microsoft licensing changes, and feature availability.
</div>
<!-- ─── AGENT TYPE SELECTOR ─── -->
<div class="step">
<div class="step-header">
<span class="step-num" style="background:var(--green)">★</span>
<span class="step-title">Agent Type</span>
<button class="info-btn" aria-label="Info about agent types">i
<span class="tooltip">
Choose the type of agent you are building. This determines which features and billing rules apply.<br><br>
• <strong>Custom agent (Copilot Studio)</strong> — Full-featured agent with topics, tools, flows, AI prompts, and all knowledge sources. All billing rates apply.<br>
• <strong>Agent Builder agent (M365 Copilot)</strong> — Declarative agent created in Agent Builder. Supports instructions and knowledge sources. No topics, tools, flows, or AI prompts. Public website grounding is <strong>free</strong>. When pay-as-you-go is used, billing is configured in the Microsoft 365 admin center and billed to the linked Azure subscription under Microsoft 365 Copilot pay-as-you-go.<br>
• <strong>SharePoint agent</strong> — Auto-created from SharePoint sites. Grounded in SharePoint content via graph. No topics, tools, flows, or AI prompts. When pay-as-you-go is used, billing is configured in the Microsoft 365 admin center and billed to the linked Azure subscription under Microsoft 365 Copilot pay-as-you-go.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/cost-considerations#agents-in-copilot" target="_blank" rel="noopener noreferrer">Licensing & cost considerations →</a>
|
<a href="https://learn.microsoft.com/en-us/copilot/microsoft-365/pay-as-you-go/overview" target="_blank" rel="noopener noreferrer">M365 Copilot PAYG overview →</a>
</span>
</button>
</div>
<p class="step-subtitle">What type of agent are you estimating costs for?</p>
<div class="card">
<div class="inline-toolbar" style="margin-bottom:1rem;">
<div class="field toolbar-field">
<label>
Quick start template
<button class="info-btn" aria-label="Info about quick start templates">i
<span class="tooltip">
Apply a common enterprise agent archetype to prefill the calculator with a realistic starting point. These templates bias toward internal tenant knowledge such as SharePoint and enterprise connectors. You can adjust any field afterwards.
</span>
</button>
</label>
<select id="quickStartTemplate" onchange="applyTemplate(this.value)">
<option value="">Choose a template...</option>
<optgroup label="Copilot Studio agents">
<option value="faq">Enterprise FAQ agent</option>
<option value="hr">HR policy agent (internal knowledge)</option>
<option value="it">IT helpdesk with tools + flows</option>
<option value="ess_hr">Employee Self-Service — HR agent starter (ServiceNow HRSD + Workday)</option>
<option value="ess_it">Employee Self-Service — IT agent starter (ServiceNow ITSM + Self-Help)</option>
</optgroup>
<optgroup label="Azure Foundry agents">
<option value="foundry_general">General purpose assistant (GPT-4o)</option>
<option value="foundry_code">Code assistant (GPT-4.1)</option>
</optgroup>
</select>
</div>
</div>
<div class="form-grid" style="grid-template-columns:repeat(4,1fr);">
<label id="at_custom_label" style="display:flex;align-items:center;gap:0.5rem;font-size:0.9rem;cursor:pointer;padding:0.5rem 0.75rem;border-radius:6px;border:2px solid var(--accent);background:rgba(0,120,212,0.08);">
<input type="radio" name="agentType" value="custom" checked onchange="onAgentTypeChange()" style="accent-color:var(--accent);width:16px;height:16px;">
<span>Custom agent<br><span style="font-size:0.72rem;color:var(--muted);">Copilot Studio</span></span>
</label>
<label id="at_builder_label" style="display:flex;align-items:center;gap:0.5rem;font-size:0.9rem;cursor:pointer;padding:0.5rem 0.75rem;border-radius:6px;border:2px solid var(--border);">
<input type="radio" name="agentType" value="builder" onchange="onAgentTypeChange()" style="accent-color:var(--accent);width:16px;height:16px;">
<span>Agent Builder<br><span style="font-size:0.72rem;color:var(--muted);">M365 Copilot</span></span>
</label>
<label id="at_sharepoint_label" style="display:flex;align-items:center;gap:0.5rem;font-size:0.9rem;cursor:pointer;padding:0.5rem 0.75rem;border-radius:6px;border:2px solid var(--border);">
<input type="radio" name="agentType" value="sharepoint" onchange="onAgentTypeChange()" style="accent-color:var(--accent);width:16px;height:16px;">
<span>SharePoint agent</span>
</label>
<label id="at_foundry_label" style="display:flex;align-items:center;gap:0.5rem;font-size:0.9rem;cursor:pointer;padding:0.5rem 0.75rem;border-radius:6px;border:2px solid var(--border);">
<input type="radio" name="agentType" value="foundry" onchange="onAgentTypeChange()" style="accent-color:var(--accent);width:16px;height:16px;">
<span>Foundry Agent<br><span style="font-size:0.72rem;color:var(--muted);">Azure AI</span></span>
</label>
</div>
<div id="agentTypeNote" style="font-size:0.78rem;color:var(--accent-light);margin-top:0.75rem;padding:0.4rem 0.6rem;background:rgba(0,120,212,0.06);border-radius:6px;display:none;"></div>
</div>
</div>
<!-- ─── FOUNDRY AGENT CONFIGURATION ─── -->
<div class="step" id="step_foundry" style="display:none;">
<div class="step-header">
<span class="step-num" style="background:var(--accent);font-size:0.8rem;">F</span>
<span class="step-title">Foundry Agent Configuration</span>
<button class="info-btn" aria-label="Info about Foundry agents">i
<span class="tooltip">
<strong>Microsoft Foundry Agent Service</strong> is a fully managed platform for building, deploying, and scaling AI agents on Azure. Unlike Copilot Studio, billing is <strong>token-based</strong> (input + output tokens, USD per 1M tokens) charged directly to your Azure subscription — no Copilot Studio credits apply.<br><br>
Context accumulates each turn: every user message adds the full conversation history to the input, so costs grow with conversation length.<br><br>
<a href="https://learn.microsoft.com/en-us/azure/foundry/agents/overview" target="_blank" rel="noopener noreferrer">Foundry Agent Service overview →</a>
|
<a href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/" target="_blank" rel="noopener noreferrer">Azure OpenAI pricing →</a>
</span>
</button>
</div>
<p class="step-subtitle">Foundry agents are billed by tokens (input + output) via Azure. Configure your model and conversation pattern below.</p>
<span class="learn-link"><a href="https://learn.microsoft.com/en-us/azure/foundry/agents/overview" target="_blank" rel="noopener noreferrer">📚 Microsoft Foundry Agent Service (Microsoft Learn)</a></span>
<div class="card">
<h3 style="margin-top:0;margin-bottom:1rem;">Model & Token Configuration</h3>
<div class="form-grid">
<div class="field">
<label>
Model
<button class="info-btn" aria-label="Info about Foundry models">i
<span class="tooltip">
Choose the language model your Foundry agent uses. This sets the token price.<br><br>
<strong>Global Standard pay-as-you-go (USD / 1M tokens):</strong><br>
• GPT-5.4-nano: $0.20 in / $1.25 out<br>
• GPT-4.1-nano: $0.10 in / $0.40 out<br>
• GPT-4o mini: $0.15 in / $0.60 out<br>
• GPT-5-nano: $0.05 in / $0.40 out<br>
• GPT-5-mini: $0.25 in / $2.00 out<br>
• GPT-5.1-codex-mini: $0.25 in / $2.00 out<br>
• GPT-4.1-mini: $0.40 in / $1.60 out<br>
• GPT-5.4-mini: $0.75 in / $4.50 out<br>
• GPT-4.1: $2.00 in / $8.00 out<br>
• GPT-4o: $2.50 in / $10.00 out<br>
• o4-mini: $1.10 in / $4.40 out<br>
• o3: $2.00 in / $8.00 out<br>
• GPT-5: $1.25 in / $10.00 out<br>
• GPT-5.1: $1.25 in / $10.00 out<br>
• GPT-5.2: $1.75 in / $14.00 out<br>
• GPT-5.3: $1.75 in / $14.00 out<br>
• GPT-5.4 (<272k ctx): $2.50 in / $15.00 out<br>
• GPT-5.4 Pro (<272k ctx): $30.00 in / $180.00 out<br><br>
Long-context (>272k) and Data Zone variants are priced higher — see full Azure OpenAI pricing.<br><br>
<a href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/" target="_blank" rel="noopener noreferrer">Full Azure OpenAI pricing →</a>
</span>
</button>
</label>
<select id="foundry_model" onchange="recalculate()">
<option value="gpt4o_mini">GPT-4o mini — $0.15 / $0.60 per 1M tokens</option>
<option value="gpt4o" selected>GPT-4o (2024-11-20) — $2.50 / $10.00 per 1M tokens</option>
<option value="gpt41_nano">GPT-4.1-nano — $0.10 / $0.40 per 1M tokens</option>
<option value="gpt41_mini">GPT-4.1-mini — $0.40 / $1.60 per 1M tokens</option>
<option value="gpt41">GPT-4.1 — $2.00 / $8.00 per 1M tokens</option>
<option value="gpt5_nano">GPT-5-nano — $0.05 / $0.40 per 1M tokens</option>
<option value="gpt5_mini">GPT-5-mini — $0.25 / $2.00 per 1M tokens</option>
<option value="gpt5">GPT-5 (2025-08-07) — $1.25 / $10.00 per 1M tokens</option>
<option value="gpt5_1_codex_mini">GPT-5.1-codex-mini — $0.25 / $2.00 per 1M tokens</option>
<option value="gpt5_1">GPT-5.1 — $1.25 / $10.00 per 1M tokens</option>
<option value="gpt5_2">GPT-5.2 — $1.75 / $14.00 per 1M tokens</option>
<option value="gpt5_3">GPT-5.3 — $1.75 / $14.00 per 1M tokens</option>
<option value="gpt5_4_nano">GPT-5.4-nano — $0.20 / $1.25 per 1M tokens</option>
<option value="gpt5_4_mini">GPT-5.4-mini — $0.75 / $4.50 per 1M tokens</option>
<option value="gpt5_4">GPT-5.4 (<272k ctx) — $2.50 / $15.00 per 1M tokens</option>
<option value="gpt5_4_pro">GPT-5.4 Pro (<272k ctx) — $30.00 / $180.00 per 1M tokens</option>
<option value="o4_mini">o4-mini — $1.10 / $4.40 per 1M tokens</option>
<option value="o3">o3 — $2.00 / $8.00 per 1M tokens</option>
</select>
</div>
<div class="field">
<label>
System prompt size (tokens)
<button class="info-btn" aria-label="Info about system prompt tokens">i
<span class="tooltip">
The number of tokens in your agent's system prompt (instructions). Sent with <strong>every turn</strong> as part of the input context, so it directly multiplies cost.<br><br>
Typical sizes:<br>
• Simple instructions: 200–500 tokens<br>
• Detailed persona + rules: 500–2,000 tokens<br>
• Complex multi-step guidance: 2,000+ tokens<br><br>
1 token ≈ 4 characters in English.
</span>
</button>
</label>
<input type="number" id="foundry_systemTokens" min="0" value="500" oninput="recalculate()">
</div>
<div class="field">
<label>
Avg user message (tokens/turn)
<button class="info-btn" aria-label="Info about user tokens">i
<span class="tooltip">
Average tokens in each user message per turn.<br><br>
Typical sizes:<br>
• Short question: 20–100 tokens<br>
• Detailed query: 100–300 tokens<br>
• Long document or code: 1,000+ tokens<br><br>
1 token ≈ 4 characters in English.
</span>
</button>
</label>
<input type="number" id="foundry_userTokens" min="1" value="150" oninput="recalculate()">
</div>
<div class="field">
<label>
Avg assistant response (tokens/turn)
<button class="info-btn" aria-label="Info about output tokens">i
<span class="tooltip">
Average tokens in the agent's response per turn. Billed at the <strong>output token rate</strong> (typically 4–8× higher than input).<br><br>
Typical sizes:<br>
• Short answer: 50–200 tokens<br>
• Detailed explanation: 200–800 tokens<br>
• Long report or code: 800–2,000+ tokens
</span>
</button>
</label>
<input type="number" id="foundry_outputTokens" min="1" value="400" oninput="recalculate()">
</div>
<div class="field">
<label>
Turns per conversation
<button class="info-btn" aria-label="Info about turns for Foundry">i
<span class="tooltip">
Number of user ↔ assistant exchange pairs in a typical conversation.<br><br>
<strong>Context accumulation:</strong> each turn re-sends all previous messages as input. Input tokens grow with each turn, so longer conversations cost progressively more.
</span>
</button>
</label>
<input type="number" id="foundry_turns" min="1" value="5" oninput="recalculate()">
</div>
</div>
</div>
<div class="card" style="margin-top:1rem;">
<h3 style="margin-top:0;margin-bottom:1rem;">Foundry Built-in Tools</h3>
<div class="form-grid">
<div class="field">
<label>
File Search calls per conversation
<span class="hint">($2.50 / 1K calls)</span>
<button class="info-btn" aria-label="Info about file search">i
<span class="tooltip">
The Foundry <strong>File Search</strong> tool lets your agent search uploaded files using vector search. Files are chunked, embedded, and indexed automatically.<br><br>
Billing: <strong>$2.50 per 1,000 tool calls</strong> + vector storage at $0.11 / GB / day (first 1 GB free).<br><br>
<a href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/" target="_blank" rel="noopener noreferrer">Built-in tools pricing →</a>
</span>
</button>
</label>
<input type="number" id="foundry_fileSearchCalls" min="0" value="0" oninput="recalculate()">
</div>
<div class="field">
<label>
Code Interpreter sessions per conversation
<span class="hint">($0.033 / session)</span>
<button class="info-btn" aria-label="Info about code interpreter">i
<span class="tooltip">
The Foundry <strong>Code Interpreter</strong> allows your agent to write and execute code in a sandboxed environment — useful for data analysis, chart generation, and Math.<br><br>
Billing: <strong>$0.033 per session</strong>. A session is active for one hour from the first invocation.<br><br>
<a href="https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/" target="_blank" rel="noopener noreferrer">Built-in tools pricing →</a>
</span>
</button>
</label>
<input type="number" id="foundry_codeInterpreterSessions" min="0" value="0" oninput="recalculate()">
</div>
</div>
<p style="font-size:0.78rem;color:var(--muted);margin-top:0.75rem;">
ⓘ Web search (Bing Grounding) and MCP server calls incur additional charges not modeled here.
See <a href="https://www.microsoft.com/en-us/bing/apis/grounding-pricing" target="_blank" rel="noopener noreferrer" style="color:var(--accent-light);">Bing Grounding pricing</a> and the
<a href="https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/tool-catalog" target="_blank" rel="noopener noreferrer" style="color:var(--accent-light);">Foundry tool catalog</a> for details.
</p>
</div>
</div>
<!-- ─── STEP 1: KNOWLEDGE SOURCES ─── -->
<div class="step" id="step_knowledge">
<div class="step-header">
<span class="step-num">1</span>
<span class="step-title">Knowledge Sources</span>
<button class="info-btn" aria-label="Info about knowledge sources">i
<span class="tooltip">
<strong>Knowledge sources</strong> let your agent find and present information from internal or external data.
When a user asks a question, the agent searches the configured knowledge source and generates an answer using AI (generative answer).
Different sources have different credit costs depending on the retrieval method used.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio" target="_blank" rel="noopener noreferrer">Learn more on Microsoft Learn →</a>
</span>
</button>
</div>
<p class="step-subtitle">Which knowledge sources does your agent use? Select all that apply.</p>
<span class="learn-link"><a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#supported-knowledge-sources" target="_blank" rel="noopener noreferrer">📚 Supported knowledge sources (Microsoft Learn)</a></span>
<div class="card" id="knowledgeCard">
<!-- SharePoint / OneDrive -->
<div class="ks-row">
<label class="ks-check">
<input type="checkbox" id="ks_sharepoint" onchange="toggleKS(this,'ks_sharepoint_n');recalculate()">
SharePoint / OneDrive
<button class="info-btn" aria-label="Info about SharePoint">i
<span class="tooltip">
Connects to a SharePoint URL and uses <strong>GraphSearch</strong> to return results.
Requires the agent user's Microsoft Entra ID authentication.
When <em>Tenant graph grounding</em> is enabled (recommended), each query costs <strong>12 credits</strong> (10 graph + 2 generative answer).
Without it, each query costs <strong>2 credits</strong> (generative answer only).<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#tenant-graph-grounding-with-semantic-search" target="_blank" rel="noopener noreferrer">Tenant graph grounding →</a>
</span>
</button>
</label>
<div class="ks-count">
<span>sites:</span>
<input type="number" id="ks_sharepoint_n" min="0" value="1" disabled oninput="recalculate()">
</div>
<span class="ks-cost" id="ks_sharepoint_cost">12 cr/query (with graph)</span>
</div>
<div class="sub-toggle" id="ks_sharepoint_graph_row" style="display:none;">
<label style="display:flex;align-items:center;gap:0.5rem;">
<input type="checkbox" id="ks_sharepoint_graph" checked onchange="recalculate()">
Tenant graph grounding enabled
</label>
<button class="info-btn" aria-label="Info about tenant graph grounding">i
<span class="tooltip">
Provides significantly better knowledge retrieval and response quality by using semantic search over your tenant-wide Microsoft Graph.
Requires a Microsoft 365 Copilot license in the tenant. Turned on by default in Copilot Studio.
Adds <strong>10 credits</strong> per query for tenant graph grounding. Graph/Copilot connectors should be modeled with this grounding path enabled.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#tenant-graph-grounding-with-semantic-search" target="_blank" rel="noopener noreferrer">Learn more →</a>
</span>
</button>
</div>
<!-- Dataverse -->
<div class="ks-row" id="ks_row_dataverse">
<label class="ks-check">
<input type="checkbox" id="ks_dataverse" onchange="toggleKS(this,'ks_dataverse_n');recalculate()">
Dataverse
<button class="info-btn" aria-label="Info about Dataverse">i
<span class="tooltip">
Connects to the configured Dataverse environment and uses a <strong>retrieval-augmented generation (RAG)</strong> technique to return results.
Requires the agent user's Microsoft Entra ID authentication.
Limits: 2 Dataverse knowledge sources (up to 15 tables each) in classic mode; unlimited in generative mode.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#supported-knowledge-sources" target="_blank" rel="noopener noreferrer">Learn more →</a>
</span>
</button>
</label>
<div class="ks-count">
<span>tables:</span>
<input type="number" id="ks_dataverse_n" min="0" value="1" disabled oninput="recalculate()">
</div>
<span class="ks-cost">2 cr/query (generative answer)</span>
</div>
<!-- Public websites -->
<div class="ks-row" id="ks_row_website">
<label class="ks-check">
<input type="checkbox" id="ks_website" onchange="toggleKS(this,'ks_website_n');recalculate()">
Public websites
<button class="info-btn" aria-label="Info about websites">i
<span class="tooltip">
Searches the query input on <strong>Bing</strong>, only returns results from the provided websites.
Limits: 4 URLs in classic mode; 25 in generative mode.
No authentication required.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#supported-knowledge-sources" target="_blank" rel="noopener noreferrer">Learn more →</a>
</span>
</button>
</label>
<div class="ks-count">
<span>URLs:</span>
<input type="number" id="ks_website_n" min="0" value="1" disabled oninput="recalculate()">
</div>
<span class="ks-cost">0 cr (free — not graph-grounded)</span>
</div>
<!-- Uploaded files -->
<div class="ks-row" id="ks_row_files">
<label class="ks-check">
<input type="checkbox" id="ks_files" onchange="toggleKS(this,'ks_files_n');recalculate()">
Uploaded files
<button class="info-btn" aria-label="Info about files">i
<span class="tooltip">
Searches documents uploaded to <strong>Dataverse</strong> and returns results from the document contents.
Supports language-agnostic querying across all supported file types.
Limits: unlimited in classic mode (limited by Dataverse storage); not counted in the 25 knowledge source limit in generative mode.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#supported-knowledge-sources" target="_blank" rel="noopener noreferrer">Learn more →</a>
</span>
</button>
</label>
<div class="ks-count">
<span>files:</span>
<input type="number" id="ks_files_n" min="0" value="1" disabled oninput="recalculate()">
</div>
<span class="ks-cost">2 cr/query (generative answer)</span>
</div>
<!-- Enterprise data connectors -->
<div class="ks-row" id="ks_row_connectors">
<label class="ks-check">
<input type="checkbox" id="ks_connectors" onchange="toggleKS(this,'ks_connectors_n');recalculate()">
Enterprise data (Graph/Copilot connectors)
<button class="info-btn" aria-label="Info about enterprise connectors">i
<span class="tooltip">
Connects to data synced into <strong>Microsoft Graph</strong> through Graph/Copilot connectors and indexed for enterprise retrieval.
Requires the agent user's Microsoft Entra ID authentication.
For graph-grounded connector scenarios, billing is <strong>10 credits</strong> for tenant graph grounding plus <strong>2 credits</strong> for the generative answer = <strong>12 credits total per query</strong>.
This source should be modeled as graph-grounded retrieval, not as a plain 2-credit knowledge lookup.
Limits: 2 per custom agent in classic mode; unlimited in generative mode.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio#supported-knowledge-sources" target="_blank" rel="noopener noreferrer">Learn more →</a>
</span>
</button>
</label>
<div class="ks-count">
<span>connectors:</span>
<input type="number" id="ks_connectors_n" min="0" value="1" disabled oninput="recalculate()">
</div>
<span class="ks-cost" id="ks_connectors_cost">12 cr/query (with graph)</span>
</div>
<p style="font-size:0.78rem;color:var(--muted);margin-top:0.75rem;">ⓘ Source counts (sites, tables, URLs, files, connectors) are for planning reference and are included in the CSV export — they do not affect credit calculations. Billing is determined by query <em>type</em> and turn mix, not by the number of connected sources.</p>
</div>
</div>
<!-- ─── STEP 2: AGENT COMPONENTS ─── -->
<div class="step" id="step_components">
<div class="step-header">
<span class="step-num">2</span>
<span class="step-title">Topics, Tools, Prompts & Flows</span>
<button class="info-btn" aria-label="Info about agent components">i
<span class="tooltip">
Agent components determine what your agent can do.<br>
• <strong>Topics</strong> define conversation paths and authored responses.<br>
• <strong>Tools/Connectors</strong> let the agent call external APIs and services.<br>
• <strong>AI Prompts</strong> (text and generative AI tools) direct the AI model to perform specific tasks.<br>
• <strong>Agent Flows</strong> automate repetitive tasks with predefined, deterministic sequences.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/fundamentals-what-is-copilot-studio" target="_blank" rel="noopener noreferrer">Copilot Studio overview →</a>
</span>
</button>
</div>
<p class="step-subtitle">How many of each does your agent have?</p>
<div class="card">
<div class="form-grid">
<div class="field">
<label>
Authored (classic) topics
<span class="hint">(1 credit when triggered)</span>
<button class="info-btn" aria-label="Info about classic topics">i
<span class="tooltip">
Predefined responses manually authored by agent makers. Static and don't change unless manually updated.
Use them where you want precise, controlled responses. Each triggers <strong>1 Copilot Credit</strong> (classic answer).<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/authoring-create-edit-topics" target="_blank" rel="noopener noreferrer">Create and edit topics →</a>
</span>
</button>
</label>
<input type="number" id="comp_classicTopics" min="0" value="0" oninput="recalculate()">
</div>
<div class="field">
<label>
Tools / Connectors
<span class="hint">(5 cr per action + 2 cr gen answer)</span>
<button class="info-btn" aria-label="Info about tools">i
<span class="tooltip">
Tools let your agent interact with external systems: send emails, query databases, call APIs, etc.
Types include: prebuilt connectors, custom connectors, agent flows, prompts, REST APIs, MCP servers, and computer use.
Each tool call is an <strong>agent action</strong> (5 credits). The AI also generates a response (+2 credits for generative answer).<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-tools-custom-agent" target="_blank" rel="noopener noreferrer">Add tools to custom agents →</a>
</span>
</button>
</label>
<input type="number" id="comp_tools" min="0" value="0" oninput="recalculate()">
</div>
<div class="field">
<label>
AI Prompt actions
<span class="hint">(text & generative AI tools — see tier below)</span>
<button class="info-btn" aria-label="Info about AI prompts">i
<span class="tooltip">
Prompt tools direct the underlying AI model to perform specific tasks: summarize text, generate code, classify data, etc.
Billed as <strong>Text and generative AI tools</strong> in three tiers based on the underlying model:<br>
• <strong>Basic</strong>: 1 credit per 10 responses<br>
• <strong>Standard</strong>: 15 credits per 10 responses<br>
• <strong>Premium</strong>: 100 credits per 10 responses<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-prompt-node" target="_blank" rel="noopener noreferrer">Use prompts →</a>
|
<a href="https://learn.microsoft.com/en-us/ai-builder/message-management" target="_blank" rel="noopener noreferrer">Prompt builder licensing →</a>
</span>
</button>
</label>
<input type="number" id="comp_prompts" min="0" value="0" oninput="recalculate()">
</div>
<div class="field">
<label>
Text & generative AI tools tier
<button class="info-btn" aria-label="Info about AI tools tiers">i
<span class="tooltip">
The official billing category is <strong>Text and generative AI tools</strong>.
The three tiers — basic, standard, and premium — are based on <strong>the underlying language model</strong> used by the prompt.<br>
• <strong>Basic</strong>: simpler/lighter models (1 cr / 10 responses)<br>
• <strong>Standard</strong>: mid-tier models (15 cr / 10 responses)<br>
• <strong>Premium</strong>: advanced reasoning models (100 cr / 10 responses)<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/requirements-messages-management#copilot-credits-billing-rates" target="_blank" rel="noopener noreferrer">Billing rates →</a>
|
<a href="https://learn.microsoft.com/en-us/ai-builder/licensing-prompt-tokens" target="_blank" rel="noopener noreferrer">Prompt tokens →</a>
</span>
</button>
</label>
<select id="comp_promptTier" onchange="recalculate()">
<option value="basic">Basic (1 cr / 10 responses)</option>
<option value="standard" selected>Standard (15 cr / 10 responses)</option>
<option value="premium">Premium (100 cr / 10 responses)</option>
</select>
</div>
<div class="field">
<label>
Agent flows
<span class="hint">(7 cr trigger + 13 cr/100 actions)</span>
<button class="info-btn" aria-label="Info about agent flows">i
<span class="tooltip">
<strong>Agent flows</strong> are created natively in Copilot Studio and automate repetitive tasks with predefined sequences of actions.
They are deterministic — the same input always produces the same output.
Each flow run costs <strong>5 cr</strong> (agent action trigger) + <strong>2 cr</strong> (generative answer) + <strong>13 cr per 100 flow actions</strong>.
Example: 50 actions = 5 + 2 + ⌈50×13/100⌉ = <strong>14 cr</strong>.
Testing from the flow designer or agent test chat doesn't consume capacity.
Power Automate cloud flows can be <em>converted</em> to agent flows (one-way operation).<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/flows-overview" target="_blank" rel="noopener noreferrer">Agent flows overview →</a>
</span>
</button>
</label>
<input type="number" id="comp_flows" min="0" value="0" oninput="recalculate()">
</div>
<div class="field">
<label>
Actions per flow run
<span class="hint">(avg. steps in each flow)</span>
<button class="info-btn" aria-label="Info about flow actions">i
<span class="tooltip">
Each agent flow consists of a series of actions (steps). Every action counts toward the <strong>13 credits per 100 actions</strong> billing rate.
Estimate the average number of actions (e.g., triggers, conditions, connectors, loops, AI steps) in your typical agent flow.
Example: a flow with 5 actions = 5 (action trigger) + 2 (gen answer) + ⌈5×13/100⌉ = <strong>8 credits per flow run</strong>.<br><br>
<a href="https://learn.microsoft.com/en-us/microsoft-copilot-studio/flows-overview#manage-agent-flow-capacity-usage" target="_blank" rel="noopener noreferrer">Agent flow capacity →</a>
</span>
</button>
</label>
<input type="number" id="comp_flowActions" min="1" value="5" oninput="recalculate()">
</div>
</div>