Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Sven Schuhknecht on February 28, 2017, 03:28:43 PM

Title: Genesys Chat Widget
Post by: Sven Schuhknecht on February 28, 2017, 03:28:43 PM
I tried to implement the new WebChat Widget. I can start the widget on the Webpage but only with the Parameter webchat.chatButton.enabled=true.
In the documentation I found, that the widget can called via WebChat.open. But thru which function or variable can I call this command.
E.g.  window._genesys.cxwidget.WebChat.open does not work.
Any Ideas?
Title: Re: Genesys Chat Widget
Post by: Mohamed Saber on March 02, 2017, 02:40:23 PM
Hi,
you have to install GMS with chat only to have Chat api version 2, then put url of service in dataURL, it will be like [b]host:jettyport/genesys/2/chat/request-chat[/b], then it should be working

Best Regards,
Title: Re: Genesys Chat Widget
Post by: Sven Schuhknecht on March 03, 2017, 08:05:28 AM
thanks for the answer, but this isn't what I'm looking for. Genesys hat new widgets (based on JSON with integrated Javascript functions), which can be startet also without any backend. Genesys does provide some sample code butnot all and in th documentaion I miss the details to start the widget with a dedicated function. Same issue is for callback or other widget parts. I mean the new widgets which can be found at https://gbank.demo.genesys.com/gbank/home.jsp after the login as a sticky response bar.
Title: Re: Genesys Chat Widget
Post by: Kubig on March 03, 2017, 08:33:32 AM
The Widget cannot chats without any backend - use the GMS as was pointed out. Only the Chat API v2 supports this funcionality.
Title: Re: Genesys Chat Widget
Post by: SA.MALIK on April 01, 2017, 07:36:13 AM
Hi
Yes you are correct its is required GMS and Chat API support.

Although,my basic chat is working but not able to upload and transfer file during chat session.
Any idea ? I am getting below error in GMS log

while calling the method  for ‘FileUpload’, we are still getting same error. Even we did try with Genesys provided Chat Widget but result is same. GMS Log file is attached.

-----GMS Log----
09:27:10.715 Dbg 09900 FileTransferController webRequestId [1010000027], chatId [0002EaCDMQ4Q000K] 'Upload File' request received for /chat/{request-chat} with ChatOperationDetails{ alias='194', secureKey='284e76a0efde839e', userId='00C258DA64890001', chatId='0002EaCDMQ4Q000K', transcriptPosition=null, message='null', messageType='null', tenantName='Resources', nickname='null', pushUrl='null', serviceName='request-chat', userData={}, serviceProperties={}, file: chat links.txt[758]}

09:27:10.761 Dbg 09900 UploadFileTask webRequestId [1010000027], chatId [0002EaCDMQ4Q000K] Received response from Chat Server: 'EventStatus' (4) attributes:
RequestResult [str] = SUCCESS
PartyId [int] = 1
SecureKey [str] = [output suppressed]
UserId [str] = "00C258DA64890001"
OccurredAt [str] = "2017-03-28T13:27:10Z"
ReferenceId [int] = 1010000027
FlexTranscript:
                SessionId [str] = "0002EaCDMQ4Q000K"
                EventInfoList [EventInfoList] = {
                                                                EventInfo:
                                                UserType [str] = CLIENT
                                                Text [str] = "file-upload-confirm"
                                                TimeOffset [int] = 37
                                                NoticeType [str] = SYS_COMMAND

09:27:10.761 Dbg 09900 WebAPIApplicationSettings webRequestId [1010000027] Configuration option request: providing escape_html = false
09:27:10.761 Dbg 09900 UploadFileTask result ChatOperationResult{statusCode=0, alias='null', chatId='null', userId='null', secureKey='null', nextPosition=null, errorInfo=null, userData={}}. isEscapeHtml false
09:27:10.761 Dbg 09900 UploadFileTask webRequestId [1010000027], chatId [0002EaCDMQ4Q000K] Closing protocol with Chat Server
09:27:10.761 Dbg 09900 UploadFileTask webRequestId [1010000027], chatId [0002EaCDMQ4Q000K] Protocol with Chat Server closed
09:27:10.855 Dbg 09900 LoadBalancer webRequestId [1010000027] getServiceInfo called with cfgAppType CFGContactServer and tenantName Resources
09:27:10.855 Std 09900 AddDocumentTask webRequestId [1010000027] Failed getting Contact Server information com.genesyslab.gsg.webapi.LoadBalancerException: Unknown cfgAppType CFGContactServer or tenantName Resources passed
com.genesyslab.gsg.webapi.LoadBalancerException: Unknown cfgAppType CFGContactServer or tenantName Resources passed
      at com.genesyslab.gsg.webapi.LoadBalancer.getServiceInfo(LoadBalancer.java:54)
      at com.genesyslab.gsg.webapi.util.WebAPIAbstractTask.getServiceInfo(WebAPIAbstractTask.java:115)
      at com.genesyslab.gsg.webapi.ucs.tasks.AddDocumentTask.execute(AddDocumentTask.java:50)
      at com.genesyslab.gsg.webapi.chat.tasks.UploadFileTask.continueUCS(UploadFileTask.java:137)
      at com.genesyslab.gsg.webapi.chat.tasks.UploadFileTask.execute(UploadFileTask.java:91)

Caused by: com.genesyslab.gsg.webapi.LoadBalancerException: No Primary servers for tenant Resources
-------GMS Log End----------
Title: Re: Genesys Chat Widget
Post by: cavagnaro on April 01, 2017, 11:14:52 AM
So...you have A chat app on your Resources Tenant?
Title: Re: Genesys Chat Widget
Post by: szs5tim on June 13, 2017, 04:49:12 PM
What you are missing is a connection from Chat Server to Contact Server since the files are stored temporarely on UCS.