Author Topic: Chat Widgets SessionData  (Read 3614 times)

Offline alejandro.echeverri

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Chat Widgets SessionData
« on: December 04, 2017, 04:40:03 PM »
Hello everybody,

We setted up chat widgets with gms, we know how to send userdata, but i need the sessiondata (or userdata) to send custom survey with interactionid, firstname, lastname in every moment of chatsession.

I'm doing tests without cookies, because finally the solution is going to be deployed in a bank, and by the way we can't use cookies.

I took a look of documentarion and i found the getUserData function, i tough that was fine use it but i had no success, this is an example how i'm trying it:

window._genesys.widgets.webchat.session.getUserData('FirstName').done(function(event){
      console.log(event);
}).fail(function(event) {
      console.log(event);
})

I'd would like firstable if i can use that getuserdata function, or if existe another way to do it without cookies.

Thanks all.

AlejandroE.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Chat Widgets SessionData
« Reply #1 on: December 04, 2017, 05:12:24 PM »
what do you mean by "[font=Verdana][size=2px]every moment of chatsession"?[/size][/font]

Offline alejandro.echeverri

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Chat Widgets SessionData
« Reply #2 on: December 11, 2017, 01:46:00 PM »
don't wait to end chat session to send data, i mean, don't wait to on_disconnect function/event to trigger the send data.

What we need is, while client and agent are typing messages, use the firstname, ixn_id, lastname and email to send to client the url survey, for example, until the chat ends, in chat area, the client can receives the url survey (or another url), for example something like this:

http://www.survey.com/survey1?id=XXXX&name=firstname+lastname&email=email_from_form

Cookies is an option the we can't use, because the project what we are doing research is for a bank, and for security issues we can't make it using cookies.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Chat Widgets SessionData
« Reply #3 on: December 11, 2017, 01:53:34 PM »
But that info was already sent when customer started chat even without agent...so, you could create an automatic response at KM with those variables and send it to customer.

I think you have a missing point at API work mode at IXN.

The customer couldn't be routed initially without that user data sent


Enviado de meu E6633 usando Tapatalk


Offline alejandro.echeverri

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Chat Widgets SessionData
« Reply #4 on: December 12, 2017, 03:11:27 PM »
Hi, what we need is the same in this case:

https://genesyspartner.force.com/customercare/CaseDetail?id=5000B00000ap7HoQAI

In that case the example is with CB, but the real needing is do it with widgets.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Chat Widgets SessionData
« Reply #5 on: December 12, 2017, 03:16:06 PM »
Can't access another partner tickets, please post the subject or some details to search it at KB

Offline alejandro.echeverri

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Chat Widgets SessionData
« Reply #6 on: December 12, 2017, 05:02:10 PM »
[b]This is the case description:[/b]

Hi

Our customer need when the cobrowse chat is closed, automatically redirect to the survey link and pass the customer data.

We tried with the function session.getUserData but appears the next error:

Sending [{"id":"5","data":{"timestamp":1490884569385,"error":{"description":"Interaction Server is not available","code":52}},"successful":true,"channel":"/service/chat/publish"}]

[b]This is the trobleshooting action text area:[/b]

<script>
var _genesys = {
chat: {
templates: 'http://172.20.1.110:8795/static/chatTemplates.html',
ui: {
onBeforeChat: function(chatElement) {


},
},
onReady: function(chat) {
chat.onSession(function(session) {
session.setUserData({
Prueba: 'Ejemplo'
}).done(function() {
// Data correctly set
}).fail(function(event) {
// Examine event to find out information on what went wrong
});
session.getUserData('FirstName').done(function(event) {
// event.userData.FirstName is the required value
alert(event.userData.FirstName);
}).fail(function(event) {
// See event.error.code, event.error.description
alert(event.error.code);
})
}); //onSession
}
}
};
</script>

[b]And this was the Customer Care reply:[/b]

Thank you for update.


I had an offline discussion with dev team.


GCB in any case cannot work with getuserdata because GCB does not work with Interaction Server at all. However, GWE can.


GCB/GWE chat is deprecated since 8.5.1 and will be removed in 9.0. Now new customers are officially pushed to Genesys Widgets. The same notice should appear in the GCB documentation in nearest time.


Trust this helps. If doesn’t, I can certainly further have official statement from dev team and can also involve product manager with your requirement.


Regards


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Chat Widgets SessionData
« Reply #7 on: December 12, 2017, 05:26:53 PM »
Ok, interaction will be released by the agent but not the customer, right? So then you still have control of it. Just put the survey after the agent target.
Still don't see the complication. The error shown and description by Genesys shows clearly that problem is the lack of IXN server. Which you now have.


Enviado de meu E6633 usando Tapatalk


Offline alejandro.echeverri

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Chat Widgets SessionData
« Reply #8 on: December 14, 2017, 08:53:28 PM »
What Genesys said about ixn server is for CoBrowsing, but in that case said too that the problem was solved using widgets with gms, and by the way we can use the getUserData.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Chat Widgets SessionData
« Reply #9 on: December 14, 2017, 09:00:14 PM »
Yes, you are using IXN server so data is already with you. As said, you can control the interaction at strategy side. No need of nothing at customer side.
You are overthinking a simple problem as far as I understand your need

Enviado de meu E6633 usando Tapatalk