294 lines
8.8 KiB
JSON
294 lines
8.8 KiB
JSON
{
|
||
"name": "Simulator - Order Status Scenario",
|
||
"nodes": [
|
||
{
|
||
"parameters": {},
|
||
"type": "n8n-nodes-base.manualTrigger",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-1760,
|
||
-1744
|
||
],
|
||
"id": "3e564b4d-a471-497d-b0b6-334091190988",
|
||
"name": "When clicking ‘Execute workflow’"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"amount": 0.5
|
||
},
|
||
"type": "n8n-nodes-base.wait",
|
||
"typeVersion": 1.1,
|
||
"position": [
|
||
-1088,
|
||
-1744
|
||
],
|
||
"id": "51268989-20ba-430a-9444-c8fe8c53d3f6",
|
||
"name": "Wait",
|
||
"webhookId": "f56a4ed8-60bd-49b4-b4c9-db20a31d427d"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "https://apigw.us-east-1.wrk-1.aws.hydra.verint.com/int/wa/v1/cloud-event",
|
||
"sendHeaders": true,
|
||
"headerParameters": {
|
||
"parameters": [
|
||
{
|
||
"name": "Authorization",
|
||
"value": "={{ $json.v2_auth.token_type }} {{ $json.v2_auth.access_token }}"
|
||
}
|
||
]
|
||
},
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "={\n \"source\": \"//iva/us-east-1/demo/transfer\",\n \"id\": \"2025051416334592900000000000000001\",\n \"type\": \"iva.transfer.data.v1\",\n \"time\": \"{{$now.toISO()}}\",\n \"customerId\": \"{{ $json.copilot.customer_id }}\",\n \"upn\": \"{{ $json.copilot.upn }}\",\n \"userUUID\": \"{{ $json.copilot.user_uuid }}\", \n \"data\": {\n \"conversationId\": \"2025051416334592900000000000000001\",\n \"customData\": {\n \"summary\": \"Caller is inquiring about the prior authorization status and shipping ETA of his son's hemophelia medication..\",\n \"purpose\": \"Order Status\",\n \"customerName\": \"Mr. David Campbell\",\n \"memberId\": \"902489671\",\n \"queue\": \"Order Status\",\n \"timeInQueue\": \"4m 21s\",\n \"address\": \"456 Elm Street, Springfield, IL 62701\",\n \"language\": \"English\",\n \"lastContact\": \"Called 23 days ago\",\n \"callerVerified\": \"Authenticated\"\n }\n }\n}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.2,
|
||
"position": [
|
||
-1312,
|
||
-1744
|
||
],
|
||
"id": "8c221737-e8a8-4646-9ce6-1b9161876cc6",
|
||
"name": "Smart Transfer (1)",
|
||
"executeOnce": false,
|
||
"notesInFlow": true,
|
||
"notes": "Simulate Recorder Start Call Event"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "https://apigw.us-east-1.wrk-1.aws.hydra.verint.com/int/wa/v2/call-summary",
|
||
"authentication": "genericCredentialType",
|
||
"genericAuthType": "oAuth2Api",
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "={\n \"customerId\": \"{{ $('Setup').item.json.copilot.customer_id }}\",\n \"id\": \"288506ac-bbfc-44cf-883f-9d7a90464eac\",\n \"upn\": \"{{ $('Setup').item.json.copilot.upn }}\",\n \"summary\": \"Caller inquired about the prior authorization status and shipment ETA for his son's medication order,. which was delayed due to a rejected claim needing additional documentation. CSR informed him that the provider must submit a statement, six months of bleed history, and lab tests, and she emailed him the requirements. The interaction ended well, with the caller stating he would call his provider to resolve this situation immediately.\",\n \"title\": \"Call complete summary\",\n \"callId\": \"{{ $('Setup').item.json.copilot.user_uuid }}\",\n \"callerNumber\": \"562-765-9276\",\n \"startTime\": \"{{$now.toISO()}}\",\n \"endTime\": \"{{$now.toISO()}}\",\n \"editable\": false\n}\n",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.2,
|
||
"position": [
|
||
-416,
|
||
-1744
|
||
],
|
||
"id": "51023cd7-0335-48d7-8d43-4989dcec56ed",
|
||
"name": "Summary",
|
||
"credentials": {
|
||
"oAuth2Api": {
|
||
"id": "issr2dcagkdcFCuZ",
|
||
"name": "Work Assist INT (v1) - internal"
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"parameters": {
|
||
"workflowId": {
|
||
"__rl": true,
|
||
"value": "YynY08QotHPGCfC3",
|
||
"mode": "list",
|
||
"cachedResultName": "Copilot Setup"
|
||
},
|
||
"workflowInputs": {
|
||
"mappingMode": "defineBelow",
|
||
"value": {},
|
||
"matchingColumns": [],
|
||
"schema": [],
|
||
"attemptToConvertTypes": false,
|
||
"convertFieldsToString": true
|
||
},
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.executeWorkflow",
|
||
"typeVersion": 1.2,
|
||
"position": [
|
||
-1536,
|
||
-1744
|
||
],
|
||
"id": "d22472d1-24af-454b-a5ab-113b1de2408e",
|
||
"name": "Setup"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"resume": "form",
|
||
"formTitle": "Wait for email to be sent",
|
||
"formDescription": "Click Submit when the email has been sent.",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.wait",
|
||
"typeVersion": 1.1,
|
||
"position": [
|
||
-640,
|
||
-1744
|
||
],
|
||
"id": "f5c545b1-5035-4a10-ad76-bce94307a968",
|
||
"name": "Wait for call to end",
|
||
"webhookId": "dff95053-74c6-4e86-b726-6053e39d7aec"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recorder Event",
|
||
"height": 256,
|
||
"width": 224
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-1376,
|
||
-1840
|
||
],
|
||
"id": "b050cc73-5d56-4640-8d76-0f742980ea1c",
|
||
"name": "Sticky Note"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Recorder Event",
|
||
"height": 256,
|
||
"width": 224
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-480,
|
||
-1840
|
||
],
|
||
"id": "899d85a6-9377-4470-bb48-a1e74aacba24",
|
||
"name": "Sticky Note1"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"content": "## Application Event",
|
||
"height": 256,
|
||
"width": 224,
|
||
"color": 5
|
||
},
|
||
"type": "n8n-nodes-base.stickyNote",
|
||
"typeVersion": 1,
|
||
"position": [
|
||
-928,
|
||
-1840
|
||
],
|
||
"id": "3728df4d-967d-4cb9-a4cf-7ed5630ada16",
|
||
"name": "Sticky Note2"
|
||
},
|
||
{
|
||
"parameters": {
|
||
"method": "POST",
|
||
"url": "=https://router.ivastudio.verint.live/ProxyScript/run/689145fb44c714b177fdfe7a/current/proactive_agent/userId/{{ $('Setup').item.json.copilot.upn }}",
|
||
"sendBody": true,
|
||
"specifyBody": "json",
|
||
"jsonBody": "={\n \"input\": \"Order Status\",\n \"metadata\": {\n \"channel\": \"copilot\",\n \"userUUID\": \"05bcc337-6e1b-4e4f-b57f-01969fd7878b\"\n }\n}",
|
||
"options": {}
|
||
},
|
||
"type": "n8n-nodes-base.httpRequest",
|
||
"typeVersion": 4.2,
|
||
"position": [
|
||
-864,
|
||
-1744
|
||
],
|
||
"id": "859a0fa7-9785-42d8-b912-76fd1715139d",
|
||
"name": "Order Status",
|
||
"notesInFlow": true,
|
||
"notes": "Send Event to Proactive IVA Agent"
|
||
}
|
||
],
|
||
"pinData": {},
|
||
"connections": {
|
||
"When clicking ‘Execute workflow’": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Setup",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Wait": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Order Status",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Smart Transfer (1)": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Wait",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Summary": {
|
||
"main": [
|
||
[]
|
||
]
|
||
},
|
||
"Setup": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Smart Transfer (1)",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Wait for call to end": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Summary",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
},
|
||
"Order Status": {
|
||
"main": [
|
||
[
|
||
{
|
||
"node": "Wait for call to end",
|
||
"type": "main",
|
||
"index": 0
|
||
}
|
||
]
|
||
]
|
||
}
|
||
},
|
||
"active": false,
|
||
"settings": {
|
||
"executionOrder": "v1"
|
||
},
|
||
"versionId": "b05cb8c5-946b-4ae4-897f-cf21b0f3a9ab",
|
||
"meta": {
|
||
"templateCredsSetupCompleted": true,
|
||
"instanceId": "1d14171834eac77e3e796e3342933fbc57a33295e898b249017b9d12b57d9e0c"
|
||
},
|
||
"id": "JlFk64BUtYDfSQMi",
|
||
"tags": [
|
||
{
|
||
"createdAt": "2025-08-12T04:26:36.130Z",
|
||
"updatedAt": "2025-08-12T04:26:36.130Z",
|
||
"id": "C5NhHOyZA61CPBqG",
|
||
"name": "Copilot"
|
||
},
|
||
{
|
||
"createdAt": "2025-08-22T21:56:39.613Z",
|
||
"updatedAt": "2025-08-22T21:56:39.613Z",
|
||
"id": "TYbLsrTtKRa2Vl4I",
|
||
"name": "Accredo"
|
||
}
|
||
]
|
||
} |