28 REQAGENT Reqagent Default DefaultfromSkill 0 1 1000 AfterSequence DefaultFromSkill 1 20 NotApplicable 656 576 20 0 689a4a1b-fa0d-47b3-9a02-cbeb4735f08f -1 0 0 26 SNIPPET Send EndOfConversation Event to Kore DYNAMIC params params.conversationId = "{contactid}" params.botid = "{botid}" params.clientid="{clientid}" params.clientsecret="{clientsecret}" params.baseurl="{baseurl}" params.language="{language}" requestBody = "{params.asJSON()}" existingUserProxy = GetRESTProxy() existingUserProxy.ContentType = "application/json" // set content type ASSIGN tempArr = "{baseurl.split('/')}" ASSIGN baseURI = "{tempArr[1]}" baseURI.append("/") baseURI.append("{tempArr[2]}") baseURI.append("/") baseURI.append("{tempArr[3]}") ASSIGN summaryURI = "{baseURI}/integrations/nice/triggerSummary" //set endpoint url responsedBody = existingUserProxy.MakeRestRequest(summaryURI, requestBody ,0, "POST") ASSIGN responseString="{responsedBody.asJSON()}" Limit2K 896 832 19 0 b333da63-33c8-4297-a58a-e9546cf7f0f2 -1 0 0 25 AgentAssistV1_LIBID_b2aedee9-ab1e-4923-9d64-04cee8118482 Agent Assist KAA scriptparamsjson 704 688 18 1 b2aedee9-ab1e-4923-9d64-04cee8118482 -1 0 0 24 SNIPPET Generate Iframe Params ASSIGN global:clientid="Kore.ai Client ID" ASSIGN global:clientsecret="Kore.ai Client Secret" ASSIGN global:botid="Kore.ai Bot ID" ASSIGN global:baseurl="Kore.ai Agent AI Widget URL" ASSIGN global:language="en" // 'customdata' object can be utilized to pass information to Agent AI Bot DYNAMIC customdata DYNAMIC scriptparams scriptparams.clientid="{clientid}" scriptparams.clientsecret="{clientsecret}" scriptparams.botid="{botid}" scriptparams.conversationid="{contactid}" scriptparams.source="nice" scriptparams.isCall=true scriptparams.baseurl="{baseurl}" scriptparams.interactiveLanguage="{language}" scriptparams.customdata="{customdata.asJSON()}" scriptparams.sessionId="{sp3}" ASSIGN scriptparamsjson="{scriptparams.asJSON()}" Limit2K 25 0 544 688 17 0 b333da63-33c8-4297-a58a-e9546cf7f0f2 25 0 0 22 ONANSWER Onanswer SKLNAME FIRST LAST AGENTID 24 0 384 688 16 0 4b611ba4-8e81-45a6-9fcc-97c24f43ccbc 24 0 0 21 SNIPPET POCTransfer ASSIGN spawned=true ASSIGN callerid="{ani}" Limit2K 3 0 880 144 0 0 b333da63-33c8-4297-a58a-e9546cf7f0f2 3 0 0 20 PLAY Play "%Ending the Call" True True 13 0 1008 352 14 0 b1b9a2dd-65b6-4626-9cf5-9cfa69cf59e2 13 0 0 19 IF Check for active call spawned = true True 18 0 544 832 13 0 6695ba9c-e1d6-4f3c-a15a-94f1400e3169 -1 0 18 0 0 18 SIGNAL Signal {SPAWNID} end 26 0 704 832 12 0 0b8f561d-889e-4f1b-bf42-f36469b8f7a0 26 0 0 17 ONRELEASE Onrelease 19 0 384 832 11 0 ea1363d4-fade-4cac-b15e-c4c514c2f9b5 19 0 0 15 PLAY Play "%Disconnected from the bot transferring you to an agent " True True 28 0 512 576 10 0 b1b9a2dd-65b6-4626-9cf5-9cfa69cf59e2 28 0 0 13 HANGUP Hangup 1088 480 9 0 b64a6796-4f66-4b1b-a9b5-3af926ab4b7c -1 0 0 12 CASE sp2.size sp2.size 11 0 0 6 0 512 352 8 0 22050500-6dc0-4949-af9c-1e52975f141d 11 0 6 0 0 11 UNLINK Unlink 15 0 512 480 7 0 33afbfd3-4a2b-4566-be9c-5202c9d4c396 15 0 0 9 SNIPPET Snippet ASSIGN answered=true Limit2K 4 0 720 480 6 0 b333da63-33c8-4297-a58a-e9546cf7f0f2 4 0 0 8 WAIT Wait 10 10 20 0 1184 144 5 0 5bf67b1c-9736-434d-9b6f-0d856aea8f16 20 0 0 6 CASE SpawnResult SpawnResult Answered 9 0 Sip_Not_Available 20 0 720 352 4 0 22050500-6dc0-4949-af9c-1e52975f141d -1 Answered 9 Sip_Not_Available 20 0 0 5 ONSIGNAL Onsignal S1 SpawnResult signal 12 0 320 352 3 0 de09a7de-6654-4642-a86a-87ffbe75c7d7 12 0 0 4 LINK Link {SPAWNID} False False Error 13 0 896 480 2 0 22d4e459-3bcb-4234-a000-f1512ea9d8a9 -1 0 13 0 0 3 SPAWN SIP Spawn SIP Spawn SPAWNID {dialoutSkill} {callerid} 8 0 Error 20 2 1008 144 1 0 e86250d4-8659-4df0-937e-1f50e64e180e 8 2 20 0 0 1 BEGIN Entry Script 21 0 736 144 0 0 b2f794c5-0232-40e7-9830-76d573bf57d7 21 0 0 {{SCRIPT_NAME}} {{CREATE_DATE}} {{MODIFY_DATE}} {{USER_ID}} {{MODIFIED_BY}} {{DEFAULT_TIME_ZONE}} 4 0001-01-01T00:00:00