-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduction Copilot Tutorial v1.0 2025-07.json
More file actions
592 lines (592 loc) · 23 KB
/
Copy pathProduction Copilot Tutorial v1.0 2025-07.json
File metadata and controls
592 lines (592 loc) · 23 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
{
"name": "Production Copilot Tutorial v1.1 2025-07",
"version": "1",
"items": [
{
"type": "http",
"name": "Get api version",
"filename": "Get api version.bru",
"seq": 2,
"request": {
"url": "{{assistant_server_url}}/version",
"method": "GET",
"headers": [],
"params": [],
"body": {
"mode": "none",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "inherit"
}
}
},
{
"type": "folder",
"name": "Assistants (Agents)",
"filename": "Assistants -Agents-",
"root": {
"meta": {
"name": "Assistants (Agents)"
}
},
"items": [
{
"type": "http",
"name": "Create Assistant -see Scripts section-",
"filename": "Create Assistant -see Scripts section-.bru",
"seq": 4,
"request": {
"url": "{{assistant_server_url}}/openai/assistant",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"Tutorial: Shopfloor Snapshot-xxx\",\n \"description\": \"This agent provides a snapshot of your plant.\",\n \"instructions\": {{instructions}},\n \"isEnabled\": true,\n \"toolIds\": [\n \"your-skill-id-1\",\n \"your-skill-id-2\",\n \"your-skill-id-3\",\n \"your-skill-id-4\",\n \"your-skill-id-5\",\n \"your-skill-id-6\"\n ]\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {
"req": "const instructions = \n\"You are a helpful plant assistant.\\n\" + \n\"Whenever a user asks, execute these steps in sequence. Always summarize your findings. Begin your answer with 'Here is today's summary for your plant:'\\n\\n\" +\n\" *(STEP) Current status*: Get the plant status and summarize it per machine for the user. Provide the output for the user before you proceed to the next step.\\n\\n\" +\n\" *(STEP) Recent events and cases*: Get recent events, get recent cases. Then list a summary for the user with the 5 (five) most interesting events and cases. Ignore timestamps and avoid duplicate entries. Never skip this step! Provide the output for the user before you proceed to the next step.\\n\\n\" +\n\" *(STEP) Recommendations*. Check if any case data matches to recent events and the machine states. If possible provide a recommendation to solve the current problem. Mention ONLY cases that are related to current machines in ERROR state. If there are no recommendations skip this section completely'.\\n\\n\" +\n\" *(STEP) Reference Data*. Only if you have given a recommendation: summarize historical events and cases that were used to create it. If there is no recommendation skip this section completely.\\n\\n\" +\n\"Always summarize your findings.\"\n\nbru.setVar(\"instructions\", JSON.stringify(instructions));"
},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Delete Assistant By Id - attention -",
"filename": "Delete Assistant By Id - attention -.bru",
"seq": 5,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/:id",
"method": "DELETE",
"headers": [],
"params": [
{
"name": "id",
"value": "<add the assistant-id with care>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Get Assistant By Id with details",
"filename": "Get Assistant By Id with details.bru",
"seq": 3,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/:id/details",
"method": "GET",
"headers": [],
"params": [
{
"name": "id",
"value": "<Enter your agent id here - e.g. copy from Copilot Studio>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Get Assistant By Id",
"filename": "Get Assistant By Id.bru",
"seq": 2,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/:id",
"method": "GET",
"headers": [],
"params": [
{
"name": "id",
"value": "<Enter your agent id here - e.g. copy from Copilot Studio>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Get Assistants",
"filename": "Get Assistants.bru",
"seq": 1,
"request": {
"url": "{{assistant_server_url}}/openai/assistant",
"method": "GET",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Update Assistant By Id -see Scripts section-",
"filename": "Update Assistant By Id -see Scripts section-.bru",
"seq": 4,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/:id",
"method": "PUT",
"headers": [],
"params": [
{
"name": "id",
"value": "<Enter your agent id here - e.g. copy from Copilot Studio>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "{\n \"name\": \"Tutorial: Shopfloor Snapshot-xxx\",\n \"description\": \"This agent provides a snapshot of your plant.\",\n \"isEnabled\": true,\n \"instructions\": {{instructions}},\n \"toolIds\": [\n \"your-skill-id-1\",\n \"your-skill-id-2\",\n \"your-skill-id-3\",\n \"your-skill-id-4\",\n \"your-skill-id-5\",\n \"your-skill-id-6\"\n ]\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {
"req": "const instructions = \n\"You are a helpful plant assistant.\\n\" + \n\"Whenever a user asks, execute these steps in sequence. Always summarize your findings. Begin your answer with 'Here is today's summary for your plant:'\\n\\n\" +\n\" *(STEP) Current status*: Get the plant status and summarize it per machine for the user. Provide the output for the user before you proceed to the next step.\\n\\n\" +\n\" *(STEP) Recent events and cases*: Get recent events, get recent cases. Then list a summary for the user with the 5 (five) most interesting events and cases. Ignore timestamps and avoid duplicate entries. Never skip this step! Provide the output for the user before you proceed to the next step.\\n\\n\" +\n\" *(STEP) Recommendations*. Check if any case data matches to recent events and the machine states. If possible provide a recommendation to solve the current problem. Mention ONLY cases that are related to current machines in ERROR state. If there are no recommendations skip this section completely'.\\n\\n\" +\n\" *(STEP) Reference Data*. Only if you have given a recommendation: summarize historical events and cases that were used to create it. If there is no recommendation skip this section completely.\\n\\n\" +\n\"Always summarize your findings.\"\n\nbru.setVar(\"instructions\", JSON.stringify(instructions));"
},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
}
]
},
{
"type": "folder",
"name": "Tools (Skills)",
"filename": "Tools -Skills-",
"root": {
"meta": {
"name": "Tools (Skills)"
}
},
"items": [
{
"type": "http",
"name": "Create New Tool- CreateCase_proposal",
"filename": "Create New Tool- CreateCase_proposal.bru",
"seq": 8,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"createCaseProposal\",\n \"callMethod\": \"post\",\n \"description\": \"Helps the user to create a new case with information about the current problem, so that the maintenance team can act on the issues. Suggests a title and short summary description based on the current situation. Then asks the user for confirmation. After user confirmation, use the createNewCase function to save the data in the system.\",\n \"parameters\":[], \n \"required\": [],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-create-a-new-case-proposal>\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Create New Tool- CreateNewCase",
"filename": "Create New Tool- CreateNewCase.bru",
"seq": 7,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"createNewCase\",\n \"callMethod\": \"post\",\n \"description\": \"Create a new case based on the provided title and description\",\n \"parameters\":[\n {\n \"name\": \"title\",\n \"type\": \"string\",\n \"description\": \"The title of the case as string. \",\n \"parameterUsage\": \"body\"\n }, \n {\n \"name\": \"description\",\n \"type\": \"string\",\n \"description\": \"The description of the case as string. \",\n \"parameterUsage\": \"body\"\n }], \n \"required\": [\n \"title\"\n ],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-create-a-new-case>\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Create New Tool- GetCases",
"filename": "Create New Tool- GetCases.bru",
"seq": 5,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"getCases\",\n \"callMethod\": \"post\",\n \"description\": \"Returns the cases history as a list of texts, with datetime, title, description, type for each entry. Cases contain knowledge about existing problems in the plant and can help to find solutions to current problems\",\n \"parameters\": [],\n \"required\": [],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-get-cases>\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Create New Tool- GetEnergyCost",
"filename": "Create New Tool- GetEnergyCost.bru",
"seq": 6,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"getEnergyCost\",\n \"callMethod\": \"post\",\n \"description\": \"Returns the current energy cost in EUR / MWh\",\n \"parameters\": [],\n \"required\": [],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-get-energy-cost>\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Create New Tool- GetEvents",
"filename": "Create New Tool- GetEvents.bru",
"seq": 4,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"getEvents\",\n \"callMethod\": \"post\",\n \"description\": \"Gets the recent events of the plant as a list of texts. Each list entry has a timestamp, severity, title, description. The title refers to the asset that was the source of the event. Events provide information about historical issues or problems with machines in the plant and can help to find solutions to current problems. You must ALWAYS summarize these events and avoid duplicate entries.\",\n \"parameters\": [],\n \"required\": [],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-get-events\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Create New Tool- GetPlantStatus",
"filename": "Create New Tool- GetPlantStatus.bru",
"seq": 3,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"getPlantStatus\",\n \"callMethod\": \"post\",\n \"description\": \"Gets the current status of the plant, as input for further analysis. The status comprises the operating state for the critical machines and equipment in the format machine-name: machine-state. e.g. stencilprinter: error, smt-machine: warning\",\n \"parameters\": [],\n \"required\": [],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-get-the-current-plant-status>\",\n \"type\": \"external\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Delete Tool By Id - attention -",
"filename": "Delete Tool By Id - attention -.bru",
"seq": 10,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools/:id",
"method": "DELETE",
"headers": [],
"params": [
{
"name": "id",
"value": "<add the tool-id with care>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Get Tool By Id",
"filename": "Get Tool By Id.bru",
"seq": 2,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools/:id",
"method": "GET",
"headers": [],
"params": [
{
"name": "id",
"value": "<Enter your skill id here - e.g. copy from Copilot Studio>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Get Tools",
"filename": "Get Tools.bru",
"seq": 1,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools",
"method": "GET",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
},
{
"type": "http",
"name": "Update Tool By Id",
"filename": "Update Tool By Id.bru",
"seq": 9,
"request": {
"url": "{{assistant_server_url}}/openai/assistant/tools/:id",
"method": "PUT",
"headers": [],
"params": [
{
"name": "id",
"value": "<Enter your skill id here - e.g. copy from Copilot Studio>",
"type": "path",
"enabled": true
}
],
"body": {
"mode": "json",
"json": "{\n \"name\": \"createNewCase\",\n \"callMethod\": \"post\",\n \"description\": \"Create a new case based on the provided title and description\",\n \"parameters\": [\n {\n \"name\": \"title\",\n \"type\": \"string\",\n \"description\": \"The title of the case as string. \",\n \"parameterUsage\": \"body\"\n },\n {\n \"name\": \"description\",\n \"type\": \"string\",\n \"description\": \"The description of the case as string. \",\n \"parameterUsage\": \"body\"\n }\n ],\n \"required\": [\n \"title\"\n ],\n \"endpoint\": \"<your-skills-endpoint-in-vfc-to-create-a-new-case-proposal>\",\n \"type\": \"external\",\n \"scope\": \"global\"\n}",
"formUrlEncoded": [],
"multipartForm": [],
"file": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"docs": "",
"auth": {
"mode": "none"
}
}
}
]
}
],
"environments": [],
"root": {
"request": {
"auth": {
"mode": "none"
},
"script": {
"req": "let session_var = bru.getCollectionVar(\"session\");\nlet xsrf_token_var = bru.getCollectionVar(\"xsrf_token\");\n\nreq.setHeader('X-XSRF-TOKEN', xsrf_token_var);\nreq.setHeader('Cookie', \"SESSION=\" + session_var + \"; XSRF-TOKEN=\" + xsrf_token_var);\n"
},
"vars": {
"req": [
{
"name": "assistant_server_url",
"value": "https://<yourTenantName>-operationsinsight.eu1.mindsphere.io/api/assistant/v3",
"enabled": true,
"local": false,
"uid": "HIO4f1fXKftlIdCAT3red"
},
{
"name": "session",
"value": "xxxx",
"enabled": true,
"local": false,
"uid": "ZVQ03DVpWQKjA1BlX5z2n"
},
{
"name": "xsrf_token",
"value": "xxxx",
"enabled": true,
"local": false,
"uid": "ZzofytBfzu08iA0cQ7iVZ"
}
]
}
},
"docs": "This collection allows to manage the custom agents in Insights Hub. Custom agents (Assistants) with custom skills (tools) can be created.",
"meta": {
"name": "Production Copilot Tutorial v1.1 2025-07-07"
}
},
"brunoConfig": {
"version": "1",
"name": "Production Copilot Tutorial v1.1 2025-07",
"type": "collection",
"ignore": [
"node_modules",
".git"
],
"size": 0.010851860046386719,
"filesCount": 20
}
}