176 lines
3.9 KiB
JSON
176 lines
3.9 KiB
JSON
{
|
|
"name": "Copilot Setup",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"inputSource": "passthrough"
|
|
},
|
|
"id": "c055762a-8fe7-4141-a639-df2372f30060",
|
|
"typeVersion": 1.1,
|
|
"name": "When Executed by Another Workflow",
|
|
"type": "n8n-nodes-base.executeWorkflowTrigger",
|
|
"position": [
|
|
-288,
|
|
96
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"constantsKeyName": "copilot"
|
|
},
|
|
"type": "n8n-nodes-globals.globalConstants",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-64,
|
|
0
|
|
],
|
|
"id": "5a51dc99-5c56-4e6e-ad67-52698f87fa4e",
|
|
"name": "Copilot Settings",
|
|
"notesInFlow": true,
|
|
"credentials": {
|
|
"globalConstantsApi": {
|
|
"id": "xmv19uxMNq5yPWTc",
|
|
"name": "Copilot Settings - Engage"
|
|
}
|
|
},
|
|
"notes": "Settings for Copilot"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nconst uuid = require('uuid');\n\nreturn { \n call_uuid: uuid.v4(),\n conversationId: uuid.v4()\n};"
|
|
},
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
-64,
|
|
192
|
|
],
|
|
"id": "10edfbda-aa32-437a-b7f5-a0f86090ec5a",
|
|
"name": "UUIDs"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"combineBy": "combineAll",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
160,
|
|
96
|
|
],
|
|
"id": "35cf8d14-be4f-4517-8525-5644158f9d41",
|
|
"name": "Merge"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "b585e94c-5a47-4278-8413-5825c02cdfeb",
|
|
"name": "copilot",
|
|
"value": "={{ $json.copilot }}",
|
|
"type": "object"
|
|
},
|
|
{
|
|
"id": "dfdc7d1a-4afe-402a-8b2e-0971d4188115",
|
|
"name": "call_uuid",
|
|
"value": "={{ $json.call_uuid }}",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"id": "cebb1eb9-828b-44f8-b5e6-c062b629985a",
|
|
"name": "conversationId",
|
|
"value": "={{ $json.conversationId }}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.4,
|
|
"position": [
|
|
384,
|
|
96
|
|
],
|
|
"id": "ac3446d5-fd95-4889-a6cd-5af021e4e4a2",
|
|
"name": "Edit Fields"
|
|
}
|
|
],
|
|
"pinData": {},
|
|
"connections": {
|
|
"When Executed by Another Workflow": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Copilot Settings",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "UUIDs",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Copilot Settings": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"UUIDs": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 1
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Edit Fields",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Edit Fields": {
|
|
"main": [
|
|
[]
|
|
]
|
|
}
|
|
},
|
|
"active": false,
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"versionId": "4db9ffc7-ae4e-4c15-a993-b97fccc398ba",
|
|
"meta": {
|
|
"instanceId": "1d14171834eac77e3e796e3342933fbc57a33295e898b249017b9d12b57d9e0c"
|
|
},
|
|
"id": "YynY08QotHPGCfC3",
|
|
"tags": [
|
|
{
|
|
"createdAt": "2025-08-12T04:26:36.130Z",
|
|
"updatedAt": "2025-08-12T04:26:36.130Z",
|
|
"id": "C5NhHOyZA61CPBqG",
|
|
"name": "Copilot"
|
|
}
|
|
]
|
|
} |