{ "scriptContent": { "header": { "scriptName": "Digital_Chat_Messaging_Sample", "busNo": 4606881, "mediaType": 9, "mediaTypeName": "digital", "purposeType": "General", "variableRedaction": "", "nextActionId": 14, "status": "Active", "lastSavedIn": "cxs", "wasLayoutAlgorithmRun": true }, "actions": { "1": { "actionId": 1, "libraryId": "B2F794C5-0232-40E7-9830-76D573BF57D7", "name": "BEGIN", "version": 1, "label": "Begin", "dependencyOrder": "0", "implType": "0", "x": 824, "y": 624, "xws": 824, "yws": 624 }, "2": { "actionId": 2, "libraryId": "7DA9B743-98F4-4899-A5CE-62C9CD414B5B", "name": "REQAGENT_DIGITAL", "version": 1, "label": "Reqagent", "dependencyOrder": "1", "implType": "0", "x": 1064, "y": 632, "xws": 1064, "yws": 632 }, "3": { "actionId": 3, "libraryId": "CDDC91CC-F363-4E31-A13A-D742A81A68A3", "name": "ONASSIGNMENTCHANGED_DIGITAL", "version": 1, "label": "OnAssignment", "dependencyOrder": "2", "implType": "0", "x": 744, "y": 748, "xws": 744, "yws": 748 }, "6": { "actionId": 6, "libraryId": "B333DA63-33C8-4297-A58A-E9546CF7F0F2", "name": "SNIPPET", "version": 1, "label": "Snippet", "dependencyOrder": "3", "implType": "0", "x": 1064, "y": 720, "xws": 1064, "yws": 720 }, "13": { "actionId": 13, "libraryId": "FF08B4CD-1AC1-D8F4-B52A-85FB86E7A824", "name": "POPURL", "version": 1, "label": "", "dependencyOrder": "4", "implType": "0", "x": 1344, "y": 748, "xws": 1344, "yws": 748 } }, "properties": { "1": { "0": { "name": "RootFolder", "value": "" }, "1": { "name": "Application", "value": "" }, "2": { "name": "ParamCount", "value": "0" }, "3": { "name": "Parameters", "value": [ "" ] } }, "2": { "0": { "name": "Skill", "value": "Default", "description": "Default" }, "1": { "name": "InitialPriority", "value": "0" }, "2": { "name": "HighProficiency", "value": "1" }, "3": { "name": "LowProficiency", "value": "20" }, "4": { "name": "TargetAgent", "value": "" }, "5": { "name": "RoutingAttribute", "value": "" }, "6": { "name": "PriorityManagement", "value": "" }, "7": { "name": "Acceleration", "value": "" }, "8": { "name": "MaxPriority", "value": "" } }, "3": { "0": { "name": "SkillID", "value": "SKLID" }, "1": { "name": "SkillName", "value": "SKLNAME" }, "2": { "name": "AgentFirstName", "value": "FIRST" }, "3": { "name": "AgentLastName", "value": "LAST" }, "4": { "name": "UserID", "value": "USERID" }, "5": { "name": "AgentID", "value": "AGENTID" }, "6": { "name": "PriorAgentFirstName", "value": "PRIORFIRST" }, "7": { "name": "PriorAgentLastName", "value": "PRIORLAST" }, "8": { "name": "PriorUserID", "value": "PRIORUSERID" }, "9": { "name": "PriorAgentID", "value": "PRIORAGENTID" }, "10": { "name": "IsTransfer", "value": "ISTRANSFER" } }, "6": { "0": { "name": "Data", "value": "ASSIGN global:clientSecret=\"\"\nASSIGN global:clientId=\"\"\nASSIGN global:botId=\"\"\nASSIGN global:baseUrl=\"https://platform.kore.ai/koreagentassist-sdk-v3/UI/agentassist-iframe.html\"\nASSIGN global:language=\"en\"\n\n// 'customdata' object can be utilized to pass additional information to Agent AI Bot for better context\nDYNAMIC customdata\ncustomdata.agentName=\"John Doe\"\n\nDYNAMIC scriptparams\nscriptparams.clientId=\"{clientId}\"\nscriptparams.clientSecret=\"{clientSecret}\"\nscriptparams.botId=\"{botId}\"\nscriptparams.conversationId=\"{contactid}\"\nscriptparams.threadIdOnExternalPlatform=\"{__threadidonexternalplatform}\"\nscriptparams.channelId=\"{__channelid}\"\nscriptparams.source=\"nice\"\nscriptparams.isCall=false\nscriptparams.channel=\"chat\"\nscriptparams.baseUrl=\"{baseUrl}\"\nscriptparams.interactiveLanguage=\"{language}\"\nscriptparams.customdata=\"{customdata.asJSON()}\"\nASSIGN scriptparamsjson=\"{scriptparams.asJSON()}\"\n\nscriptparamsjson = scriptparamsjson.urlencode()" }, "1": { "name": "MaxStringSize", "value": "Limit2K" } }, "13": { "0": { "name": "AgentID", "value": "{agentID}" }, "1": { "name": "URL", "value": "https://nice-sdk-integrations.kore.ai/latest/index.html?params={scriptparamsjson}" }, "2": { "name": "TabTitle", "value": "Agent AI" }, "3": { "name": "PopDestination", "value": "ContactPanel" }, "4": { "name": "PopoutWindowHeight", "value": "0" }, "5": { "name": "PopoutWindowWidth", "value": "0" }, "6": { "name": "ClosePopoutUponTermination", "value": "False" }, "7": { "name": "CachePopURL", "value": "False" } } }, "branches": { "1": [ { "to": 2, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "c,c", "lineType": "straight", "elbows": [] } ], "3": [ { "to": 6, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "c,c", "lineType": "straight", "elbows": [] } ], "6": [ { "to": 13, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "c,c", "lineType": "straight", "elbows": [] } ] }, "isDataLoaded": true, "isDataLoading": false, "isDataSaving": false, "isNewScript": false, "isViewOnlyMode": false, "isLockOverride": false, "isVersionHistoryMode": false, "dataLoadingProgress": { "key": "reset" }, "error": null, "issues": { "totalErrors": "0", "totalWarnings": "2", "actions": { "2": { "actionType": "REQAGENT_DIGITAL", "errors": [], "warnings": [ { "key": "Warning! The Default branch for Reqagent is not wired up!", "localizationKey": "default-branch-is-not-wired-up", "interpolationValues": [ "Reqagent" ] } ] }, "13": { "actionType": "POPURL", "errors": [], "warnings": [ { "key": "Warning! The Default branch for is not wired up!", "localizationKey": "default-branch-is-not-wired-up", "interpolationValues": [ "" ] } ] } }, "script": {} }, "startTraceOptions": { "skill": "", "skillDescription": "", "simulateInboundCall": false, "phone": "", "dnis": "", "ani": "", "simulateDateTime": false, "dateTime": null, "timezone": "(Business Unit Default)", "parameters": [] }, "versionHistory": null, "scriptVersions": {}, "lastVersionEdited": null, "traceWindowCount": 0, "variables": { "__channelid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "__threadidonexternalplatform": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "agentid": [ { "name": "PopURL", "label": "", "shape": { "type": "rectangle", "icon": { "color": "#0F6099", "url": "#browser-cursor" }, "width": 128, "height": 32 }, "actionId": 13 } ], "baseurl": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "botid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "clientid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "clientsecret": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "contactid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "customdata": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "customdata.agentname": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "global:baseurl": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "global:botid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "global:clientid": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "global:clientsecret": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "global:language": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "language": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparams": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparams.channel": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparams.customdata": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparams.iscall": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparams.source": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 } ], "scriptparamsjson": [ { "name": "Snippet", "label": "", "shape": { "type": "rectangle-editor", "icon": { "color": "#CCCC00", "url": "#code" }, "editorIcon": { "url": "#browser" }, "width": 128, "height": 80 }, "actionId": 6 }, { "name": "PopURL", "label": "", "shape": { "type": "rectangle", "icon": { "color": "#0F6099", "url": "#browser-cursor" }, "width": 128, "height": 32 }, "actionId": 13 } ] }, "compareScript": {}, "customConnectorIdentifier": null, "schemaVersion": "1.0.0" } }