Genesys CTI User Forum > Genesys-related Development
Chat Widgets SessionData
cavagnaro:
Can't access another partner tickets, please post the subject or some details to search it at KB
alejandro.echeverri:
[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
cavagnaro:
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
alejandro.echeverri:
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.
cavagnaro:
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
Navigation
[0] Message Index
[*] Previous page
Go to full version