Updating n8n flows for AOS demo environment

This commit is contained in:
2025-09-26 13:28:07 -05:00
parent 91f47f01a5
commit 33ac363338
2 changed files with 452 additions and 120 deletions

View File

@@ -11,7 +11,7 @@
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-288,
192
96
]
},
{
@@ -29,65 +29,12 @@
"notesInFlow": true,
"credentials": {
"globalConstantsApi": {
"id": "BAaySM6nkSxflDzN",
"name": "Copilot Settings - verint.com"
"id": "xmv19uxMNq5yPWTc",
"name": "Copilot Settings - Engage"
}
},
"notes": "Settings for Copilot"
},
{
"parameters": {},
"type": "n8n-nodes-globals.globalConstants",
"typeVersion": 1,
"position": [
-64,
384
],
"id": "57b5ca51-7c90-4c55-aace-3223cc46e368",
"name": "m2m - v2 - settings",
"credentials": {
"globalConstantsApi": {
"id": "gh5k8MY0pyS6Fbkc",
"name": "Work Assist - m2m - v2 - 78ab8a80-88a3-4db0-a3f9-36e7aeef18db"
}
}
},
{
"parameters": {
"method": "POST",
"url": "https://api.verint.com/vcp/identity-dev/integration/auth/v2/oauth/token",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "grant_type",
"value": "client_credentials"
},
{
"name": "client_id",
"value": "={{ $json.constants.client_id_v2 }}"
},
{
"name": "client_secret",
"value": "={{ $json.constants.client_secret_v2 }}"
},
{
"name": "audience",
"value": "api://vcp/wa-cloudevent"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
160,
384
],
"id": "e537cdb1-c5f6-4883-98ba-e883dd963e96",
"name": "V2 Auth Token"
},
{
"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};"
@@ -137,12 +84,6 @@
"name": "conversationId",
"value": "={{ $json.conversationId }}",
"type": "string"
},
{
"id": "eea41372-42da-4dc5-87f7-30263e332fc0",
"name": "v2_auth",
"value": "={ \n access_token: \"{{ $json.access_token }}\",\n token_type: \"{{ $json.token_type }}\"\n}",
"type": "object"
}
]
},
@@ -151,26 +92,11 @@
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
608,
192
384,
96
],
"id": "ac3446d5-fd95-4889-a6cd-5af021e4e4a2",
"name": "Edit Fields"
},
{
"parameters": {
"mode": "combine",
"combineBy": "combineAll",
"options": {}
},
"type": "n8n-nodes-base.merge",
"typeVersion": 3.2,
"position": [
384,
192
],
"id": "9b038fd8-3182-4e8c-a0b1-056dff0f0c19",
"name": "Merge1"
}
],
"pinData": {},
@@ -187,11 +113,6 @@
"node": "UUIDs",
"type": "main",
"index": 0
},
{
"node": "m2m - v2 - settings",
"type": "main",
"index": 0
}
]
]
@@ -207,17 +128,6 @@
]
]
},
"m2m - v2 - settings": {
"main": [
[
{
"node": "V2 Auth Token",
"type": "main",
"index": 0
}
]
]
},
"UUIDs": {
"main": [
[
@@ -233,49 +143,34 @@
"main": [
[
{
"node": "Merge1",
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
},
"V2 Auth Token": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Edit Fields": {
"main": [
[]
]
},
"Merge1": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "019c4940-4f70-4e41-a24c-a3eecf367a9a",
"versionId": "4db9ffc7-ae4e-4c15-a993-b97fccc398ba",
"meta": {
"instanceId": "1d14171834eac77e3e796e3342933fbc57a33295e898b249017b9d12b57d9e0c"
},
"id": "YynY08QotHPGCfC3",
"tags": []
"tags": [
{
"createdAt": "2025-08-12T04:26:36.130Z",
"updatedAt": "2025-08-12T04:26:36.130Z",
"id": "C5NhHOyZA61CPBqG",
"name": "Copilot"
}
]
}