20
REQAGENT
Reqagent
Default
DefaultfromSkill
0
1
1000
AfterSequence
DefaultFromSkill
1
20
NotApplicable
640
384
11
0
689a4a1b-fa0d-47b3-9a02-cbeb4735f08f
-1
0
0
19
SNIPPET
Send EndOfConversationEvent to Kore Agent AI
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
3
0
3408
336
14
0
b333da63-33c8-4297-a58a-e9546cf7f0f2
3
0
0
18
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.agentassisturl="{agentassisturlencoded}"
scriptparams.conversationid="{contactid}"
scriptparams.source="nice"
scriptparams.isCall=false
scriptparams.baseurl="{baseurl}"
scriptparams.interactiveLanguage="{language}"
scriptparams.nice_access_key="NiceCX API Access Key"
scriptparams.nice_access_key_secret="NiceCX API Access Key Secret"
scriptparams.niceurl="NiceCX API URL"
scriptparams.niceauthurl="NiceCX Base Region URL"
scriptparams.customdata="{customdata.asJSON()}"
ASSIGN scriptparamsjson="{scriptparams.asJSON()}"
Limit2K
17
0
3408
208
13
0
b333da63-33c8-4297-a58a-e9546cf7f0f2
17
0
0
17
AgentAssistV1_LIBID_b2aedee9-ab1e-4923-9d64-04cee8118482
Agent Assist
KAA
scriptparamsjson
3744
208
10
1
b2aedee9-ab1e-4923-9d64-04cee8118482
-1
0
0
16
BEGIN
Begin
11
0
288
224
9
0
b2f794c5-0232-40e7-9830-76d573bf57d7
11
0
0
13
TEXTMSG
No Response (End)
CallerFromSystem
Sorry,no agent available. Please try again!
10
0
1592
224
8
0
45a72b54-4407-4f10-b9ae-464ff02dbb3c
10
0
0
12
LOOP
Loop
2
C1
Finished
13
0
Repeat
9
1
1064
224
7
0
a10f9f27-a5dd-48ba-ae37-e206fc6e101b
-1
0
13
1
9
0
0
11
ASKCALLER
Textmsg
Hello !
AccountNumber
60
12
0
CallerResponded
20
1
640
224
6
0
cd5e2559-0451-4c75-83be-597e770f5246
12
1
20
0
0
10
END
End
2000
224
5
0
93fb8888-30cf-4df3-8ed9-1f2986819080
-1
0
0
9
TEXTMSG
No Response (Retry)
CallerFromSystem
I would really love to help, but I'm afraid I need your account number first.
11
0
1064
320
4
0
45a72b54-4407-4f10-b9ae-464ff02dbb3c
11
0
0
8
TEXTMSG
Textmsg
BothFromAgent
{P1}
3408
464
3
0
45a72b54-4407-4f10-b9ae-464ff02dbb3c
-1
0
0
7
ONSIGNAL
Onsignal
S1
8
0
3056
464
2
0
de09a7de-6654-4642-a86a-87ffbe75c7d7
8
0
0
3
END
End
3744
336
12
0
93fb8888-30cf-4df3-8ed9-1f2986819080
-1
0
0
2
ONRELEASE
Onrelease
19
0
3056
336
1
0
ea1363d4-fade-4cac-b15e-c4c514c2f9b5
19
0
0
1
ONANSWER
Onanswer
SKLNAME
FIRST
LAST
AGENTID
18
0
3056
208
0
0
4b611ba4-8e81-45a6-9fcc-97c24f43ccbc
18
0
0
NiceMAX_AAChat
2024-10-23T10:30:23.14
2024-12-02T11:35:30.943
44030417
XOCC Kore.ai
Mountain Standard Time
3
0001-01-01T00:00:00