{ "scriptContent": { "header": { "scriptName": "Agent Desktop AA Voice To Export", "busNo": 4606881, "mediaType": 4, "mediaTypeName": "call", "purposeType": "General", "variableRedaction": "", "nextActionId": 12, "status": "Active", "lastSavedIn": "cxs" }, "actions": { "1": { "actionId": 1, "libraryId": "B2F794C5-0232-40E7-9830-76D573BF57D7", "name": "BEGIN", "version": 1, "label": "Begin", "dependencyOrder": "0", "implType": "0", "x": 144, "y": 32, "xws": 144, "yws": 32 }, "3": { "actionId": 3, "libraryId": "4B611BA4-8E81-45A6-9FCC-97C24F43CCBC", "name": "ONANSWER", "version": 1, "label": "Onanswer", "dependencyOrder": "1", "implType": "0", "x": 144, "y": 144, "xws": 144, "yws": 144 }, "4": { "actionId": 4, "libraryId": "EA1363D4-FADE-4CAC-B15E-C4C514C2F9B5", "name": "ONRELEASE", "version": 1, "label": "Onrelease", "dependencyOrder": "2", "implType": "0", "x": 144, "y": 288, "xws": 144, "yws": 288 }, "6": { "actionId": 6, "libraryId": "B333DA63-33C8-4297-A58A-E9546CF7F0F2", "name": "SNIPPET", "version": 1, "label": "Generate Iframe Params", "dependencyOrder": "3", "implType": "0", "x": 512, "y": 128, "xws": 512, "yws": 128 }, "7": { "actionId": 7, "libraryId": "B2AEDEE9-AB1E-4923-9D64-04CEE8118482", "name": "AgentAssistV1_LIBID_b2aedee9-ab1e-4923-9d64-04cee8118482", "version": 1, "label": "Agent Assist", "dependencyOrder": "4", "implType": "1", "x": 864, "y": 128, "xws": 864, "yws": 128 }, "8": { "actionId": 8, "libraryId": "93FB8888-30CF-4DF3-8ED9-1F2986819080", "name": "END", "version": 1, "label": "End", "dependencyOrder": "5", "implType": "0", "x": 864, "y": 288, "xws": 864, "yws": 288 }, "9": { "actionId": 9, "libraryId": "DBCC742B-28D8-42D1-9D95-0D9ABF20B04B", "name": "MUSIC", "version": 1, "label": "Music", "dependencyOrder": "6", "implType": "0", "x": 864, "y": 40, "xws": 864, "yws": 40 }, "10": { "actionId": 10, "libraryId": "B333DA63-33C8-4297-A58A-E9546CF7F0F2", "name": "SNIPPET", "version": 1, "label": "Send EndOfConversationEvent to Kore Agent AI", "dependencyOrder": "7", "implType": "0", "x": 512, "y": 272, "xws": 512, "yws": 272 }, "11": { "actionId": 11, "libraryId": "689A4A1B-FA0D-47B3-9A02-CBEB4735F08F", "name": "REQAGENT", "version": 1, "label": "Reqagent", "dependencyOrder": "8", "implType": "0", "x": 512, "y": 40, "xws": 512, "yws": 40 } }, "properties": { "1": { "0": { "name": "RootFolder", "value": "" }, "1": { "name": "Application", "value": "" }, "2": { "name": "ParamCount", "value": "" }, "3": { "name": "Parameters", "value": [] } }, "3": { "0": { "name": "SkillNameVar", "value": "SKLNAME" }, "1": { "name": "AgentFirstName", "value": "FIRST" }, "2": { "name": "AgentLastName", "value": "LAST" }, "3": { "name": "AgentID", "value": "AGENTID" } }, "4": { "0": { "name": "CauseCode", "value": "" }, "1": { "name": "CallResult", "value": "" } }, "6": { "0": { "name": "Data", "value": "ASSIGN global:clientid=\"Kore.ai Client ID\"\r\nASSIGN global:clientsecret=\"Kore.ai Client Secret\"\r\nASSIGN global:botid=\"Kore.ai Bot ID\"\r\nASSIGN global:baseurl=\"Kore.ai Agent AI Widget URL\"\r\nASSIGN global:language=\"en\"\r\n\r\n// 'customdata' object can be utilized to pass information to Agent AI Bot\r\nDYNAMIC customdata\r\n\r\nDYNAMIC scriptparams\r\nscriptparams.clientid=\"{clientid}\"\r\nscriptparams.clientsecret=\"{clientsecret}\"\r\nscriptparams.botid=\"{botid}\"\r\nscriptparams.agentassisturl=\"{agentassisturlencoded}\"\r\nscriptparams.conversationid=\"{contactid}\"\r\nscriptparams.source=\"nice\"\r\nscriptparams.isCall=true\r\nscriptparams.baseurl=\"{baseurl}\"\r\nscriptparams.interactiveLanguage=\"{language}\"\r\nscriptparams.nice_access_key=\"NiceCX API Access Key\"\r\nscriptparams.nice_access_key_secret=\"NiceCX API Access Key Secret\"\r\nscriptparams.niceurl=\"NiceCX API URL\"\r\nscriptparams.niceauthurl=\"NiceCX Base Region URL\"\r\nscriptparams.customdata=\"{customdata.asJSON()}\"\r\nASSIGN scriptparamsjson=\"{scriptparams.asJSON()}\"\r\n" }, "1": { "name": "MaxStringSize", "value": "Limit2K" } }, "7": { "0": { "name": "assistLaunchConfigName", "value": "KAA" }, "1": { "name": "actionRestUrl", "value": "" }, "2": { "name": "AgentId", "value": "" }, "3": { "name": "AgentUUId", "value": "" }, "4": { "name": "AgentAssistMasterId", "value": "" }, "5": { "name": "BotExchangeVersion", "value": "" }, "6": { "name": "scriptParams", "value": "scriptparamsjson" } }, "8": {}, "9": { "0": { "name": "MusicFile", "value": "" }, "1": { "name": "StartOffset", "value": "0" }, "2": { "name": "SecondstoPlay", "value": "0" }, "3": { "name": "reserved1073742978", "value": "" }, "4": { "name": "InterruptMessages", "value": "" }, "5": { "name": "RepeatIndex", "value": "" }, "6": { "name": "DetectDTMF", "value": "False" }, "7": { "name": "ClearDigits", "value": "True" } }, "10": { "0": { "name": "Data", "value": "DYNAMIC params\r\nparams.conversationId = \"{contactid}\"\r\nparams.botid = \"{botid}\"\r\nparams.clientid=\"{clientid}\"\r\nparams.clientsecret=\"{clientsecret}\"\r\nparams.baseurl=\"{baseurl}\"\r\nparams.language=\"{language}\"\r\nrequestBody = \"{params.asJSON()}\"\r\n\r\nexistingUserProxy = GetRESTProxy()\r\nexistingUserProxy.ContentType = \"application/json\" // set content type\r\n\r\nASSIGN tempArr = \"{baseurl.split('/')}\"\r\n\r\nASSIGN baseURI = \"{tempArr[1]}\"\r\nbaseURI.append(\"/\")\r\nbaseURI.append(\"{tempArr[2]}\")\r\nbaseURI.append(\"/\")\r\nbaseURI.append(\"{tempArr[3]}\")\r\n\r\nASSIGN summaryURI = \"{baseURI}/integrations/nice/triggerSummary\" //set endpoint url\r\nresponsedBody = existingUserProxy.MakeRestRequest(summaryURI, requestBody ,0, \"POST\")\r\n\r\nASSIGN responseString=\"{responsedBody.asJSON()}\"" }, "1": { "name": "MaxStringSize", "value": "Limit2K" } }, "11": { "0": { "name": "Skill", "value": "Default" }, "1": { "name": "TargetAgent", "value": "" }, "2": { "name": "PriorityManagement", "value": "DefaultfromSkill" }, "3": { "name": "InitialPriority", "value": "0" }, "4": { "name": "Acceleration", "value": "1" }, "5": { "name": "Function", "value": "" }, "6": { "name": "MaxPriority", "value": "1000" }, "7": { "name": "Sequence", "value": "" }, "8": { "name": "ZipTone", "value": "AfterSequence" }, "9": { "name": "ScreenPopSource", "value": "DefaultFromSkill" }, "10": { "name": "ScreenPopURL", "value": "" }, "11": { "name": "HighProficiency", "value": "1" }, "12": { "name": "LowProficiency", "value": "20" }, "13": { "name": "RoutingAttribute", "value": "NotApplicable" } } }, "branches": { "1": [ { "to": 11, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "r,l", "lineType": "straight", "elbows": [] } ], "3": [ { "to": 6, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "r,l", "lineType": "straight", "elbows": [] } ], "4": [ { "to": 10, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "r,l", "lineType": "straight", "elbows": [] } ], "6": [ { "to": 7, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "r,l", "lineType": "straight", "elbows": [] } ], "10": [ { "to": 8, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "c,c", "lineType": "straight", "elbows": [] } ], "11": [ { "to": 9, "label": "", "type": "default", "labelDistance": null, "index": 0, "ports": "r,l", "lineType": "straight", "elbows": [] } ] }, "schemaVersion": "1.0.0" } }