PureCloud Guest Chat Client - Java

Good evening Forum:

I tried to use the following references to run a test of the PureCloud Guest Chat Client but I could not get some issues solved and could not be able to find any documentation related with those:

References:

Issues:

  1. In the first reference the WebChatMemberInfo Java class has a method called setProfileImageUrl(String imageUrl): void. And the method documented in the second reference is setAvatarImageUrl(String imageUrl): void. I do not know if it might be changed the behavior of the chat client, but if I print the CreateWebChatConversationResponse object, after I invoke the CreateWebChatConversationRequest , the WebChatMemberInfo object displayName and avatarImageUrl are null:

class CreateWebChatConversationResponse { id: <SomeIDNotNull> jwt: <SomeJWTNotNull> eventStreamUri: <SomeEventStreamUriNotNull> member: class WebChatMemberInfo { id: <SomeIDNotNull> displayName: null avatarImageUrl: null role: null joinDate: null leaveDate: null authenticatedGuest: null customFields: null state: null } }
It returned the CreateWebChatConversationResponse id, jwt and eventStremaUri well - as we know.

  1. I think this issue could be related to the firstone because of the CreateWebChatConversationRequest mehod called setMemberInfo(info). In the first reference info does not exist, but in the third reference the method specified that info is a GuestMemberInfo object, not a WebChatMemberInfo object. So the request can get done if we use a GuestMemberInfo object but not if we use a WebChatMemberInfo object. If it happens, the WebChatMemberInfo object is not used in the code. In addition, the WebChatMemberInfo id is related to the id if the first session of the conversation created related to an external participant whose wrapupcode was the "Default Wrap-up Code".

  2. And finally the third issue was in the momment I create the WebSocket object´s listener, because it could not find the WebSocketAdapter java interface , so I had to use the WebSocketListener interface and rewrite its methods.

I am not sure if is necessary get those changes made, in the test I got confused with some concepts but I understood that the connection has to be stablised via the CreateWebChatConversationRequest without authentication.

I appreciate your help in order to get this issues figured out and to get some concepts understood.

Thank you.

Good morning community:

I forgot to use the websocket.connect(); instruction :smiley: , but with the changes I described in the previous post I had to make. I can interact now with the interaction in PureCloud.

But I want to know the answers about the GuestChat API model because I should get those understood in order to integrate this domain model with others systems domain models.

I appreciate your help and thank you.

Is the WebChatMemberInfo the Contact Center Agent´s information?

I'll file an issue to get the readme updated; I think that got renamed during beta. The source code and documentation (outside of the readme) are accurate. https://developer.mypurecloud.com/api/rest/client-libraries/java-guest/WebChatMemberInfo.html

It's any member. The role property tells you what kind.

1 Like

Thank you Tim for your explanations.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.