" /> Customize Genesys Chat Widget - Genesys CTI User Forum

Author Topic: Customize Genesys Chat Widget  (Read 4197 times)

Offline Ray84

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Customize Genesys Chat Widget
« on: June 05, 2018, 08:32:35 AM »
Advertisement
Hi there:

I am trying here to configure a Genesys Widget following documentation and specific section 'https://docs.genesys.com/Documentation/GWC/latest/WidgetsAPI/WebChatConfiguration' and also to have a Custom Formulary by using 'https://docs.genesys.com/Documentation/GWC/latest/WidgetsAPI/CustCRF'

However, none of the options described there seems to have effect when typed under my code. Only theme changes, but if we add a new form using a JSON string or try, in example, to disable emojis, it just does nothing and widget shown is the same.

Troubleshooting, I've noticed that namespace I am using is different to the ones in the example. I am using '[b]_genesys.cxwidget[/b]':

[code]
window._genesys.cxwidget = {
main: {
debug: true,
theme: "dark",
lang: "en",
plugins: [
  "cx-webchat",
  "cx-webchat-service"
]
  },
webchat: {
dataURL: "http://MYIP:PORT/genesys/2/chat/request-chat",
userData: {},
proactive: {
enabled: false,
idleTimer: 5,
cancelTimer: 30
},
chatButton: {
enabled: false,
template: false,
openDelay: 1000,
effectDuration: 10,
emojis: false,
hideDuringInvite: true
},
}
};
[/code]

Then, I am including the widget JS async:

[code]
(function(d, s, id, o){
var f = function(){
var fs = d.getElementsByTagName(s)[0], e;
if (d.getElementById(id)) return;e = d.createElement(s); e.id = id;
e.src = o.src;fs.parentNode.insertBefore(e, fs);
},ol = window.onload;
if(o.onload){typeof window.onload != "function"?window.onload=f:window.onload=function(){ol();f()}}else f();
})(document,'script','genesys-cx-widget', {src: "widgets.min.js", onload: false});
[/code]

And finally, I am loading the <div> and using the Widget bus for managing the events:

[code]<body>
<div id="buttons">
<div class="cx-widget cx-webchat-chat-button" data-gcb-service-node="true" id="chat" style="top: 370px"><span class="i18n">CHAT</span></div>
</div>
</body>
<script>
jQuery(function($) {
$("#chat").click(function(event) {
var div;
var oWidgetBus = window._genesys.cxwidget.bus;
if (typeof oWidgetBus !== undefined) {
oWidgetBus.subscribe("WebChat.closed", function(e){
div.appendTo("body");
div = null;
});
oWidgetBus.subscribe("WebChat.opened", function(e){
div = $("#buttons").detach();
});
oWidgetBus.command("WebChat.open", {}).done(function(e){
}).fail(function(e){
})
}
});

});

</script>[/code]

This way I am able to use the widget, and it is working, but as mentioned before, if I add a configuration such 'emojis: false' under the webchat configuration section, it just does nothing and emojis menu keep showing. No error is thrown, though:

[img]https://imgur.com/2iUg2XX.png[/img]

However, and here is my big concern and what drives me crazy, if I use the namespace shown in the documentation, [b]'_genesys.widgets'[/b], it stops showing the widget shown above (which is the one that appears in all Genesys doc) and it shows a complete different panel, which I am not sure at all how to deal with:

[img]https://imgur.com/CQwaA8L.png[/img]

Any ideas about what I am using wrong? Do you have an example of a widget with a custom form or some other option configured that actually works?

Kind regards.

Ray



Offline jerry_jeremiah

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: Customize Genesys Chat Widget
« Reply #1 on: June 14, 2018, 05:23:26 AM »
The configuration from our widget is definitely using a different namespace to yours:

[code]    window._genesys.widgets = {
        main: {
            plugins: [
                'cx-webchat-service',
                'cx-webchat'
            ],
            ....
        },
        webchat: {
            ....
        },
    }[/code]

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Customize Genesys Chat Widget
« Reply #2 on: June 20, 2018, 09:18:58 PM »
Out of curiosity, why did you choose Genesys chat? Long time ago I decided to keep Genesys doing what it does best: framework and voice, and let cloud-based solutions lead the way for the omni-channel: cheaper, better roadmap, simpler :)

I am a bit proponent of Salesforce-based apps and, of course, IBM Watson :)

But maybe I am biased

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Customize Genesys Chat Widget
« Reply #3 on: June 20, 2018, 10:22:33 PM »
And how could I receive those is a single screen like WDE?

Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Customize Genesys Chat Widget
« Reply #4 on: June 21, 2018, 08:55:42 AM »
I think this is where we are going astray :)

I find Genesys WDE to be a complete and utter waste of space: there is absolutely no reason for its existence IMHO. It is a poor attempt by Genesys to remain visible in front of the user in the age of Salesforce and ServiceNow. Salesforce provides an incredible OpenCTI interface, and what user really needs is just a CTI control. It is insanity to have two different workflow engines - one in Salesforce and another in Genesys. The functional overlap does not benefit anyone. Whoever told you that WDE is a good thing for a SFDC or any other CRM customer should be sent to North Korean and forced to watch Kim Jong Un exercise lift weight!

WDE causes the whole architecture to shift from cloud-based product to middleware Genesys, and this is why it should be abolished.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Customize Genesys Chat Widget
« Reply #5 on: June 21, 2018, 12:18:48 PM »
Jummm ok that is a good point if your customer has cloud and a salesforce like CRM, I do agree.
But what if not? What if you are on a merging market like Brazil and many customers are not even ready for cloud or not in their map? If you have salesforce then why Genesys then?
I am not aware of salesforce being better as CTI than Genesys... Then what is salesforce? CRM or CTI tool?

I am on the check-both-sides option right now... So need to understand it all to provide the best answer possible


Enviado de meu E6633 usando o Tapatalk


Offline victor

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
  • Karma: 18
Re: Customize Genesys Chat Widget
« Reply #6 on: June 22, 2018, 01:07:36 AM »
Cav,

don't get me wrong - Genesys has a very important role to play, but I suspect that the recent Genesys grab of omni-channel and anything to do with cloud-based technologies is less to do with improving customer experience and more about staying relevant.

Very good points about emerging markets. I do not know the answer there, but at the same time, I do not fully understand why you would need an omni-channel support in a country that did nt start migrating to a cloud-based infrastructure. I struggle to understand adding chat support to an expensive platform like Genesys when there are much cheaper versions available.  also, for better or worse, it is a matter of time before Brazil, and even your own country of Chile will start Salesforce adaptation. Not only I suspect they are on a precipice of falling into the cloud, but most likely, fall through the fog of the cloud and hit whatever the next big thing is about to hit us: being unencumbered by billions of investments into a legacy infrastructure allows for an amazing flexibility :)

I just do not see the value of allowing Genesys foothold into anything that would put them in front of the user or a customer. Some of the reasons:
1.  They have been very good at middleware and failed miserably at everything that has anything to do with UX/UI or customer-facing applications.
2.  In the age of the cloud, Genesys is way too on-premise based, trying to stay relevant by acquisitons instead of organic growth, making for a complete mess in their architecture roadmap moving forward.
3.  In case of SFDC or any other cloud product, if they have already gained traction, this means they either have what users need, or convinced the user to accept the product as a de-facto standard. Genesys would be encroaching on it with overlapping functionality, duplicated features and compatibility issues from hell. Genesys does voice-related operations well, so I would keep them there, pluggin in the gaps currently apparent in the whatever cloud solution the client is using.


Offline Ray84

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Customize Genesys Chat Widget
« Reply #7 on: June 22, 2018, 11:26:26 AM »
[quote author=jerry_jeremiah link=topic=10999.msg50030#msg50030 date=1528953806]
The configuration from our widget is definitely using a different namespace to yours:

[code]    window._genesys.widgets = {
        main: {
            plugins: [
                'cx-webchat-service',
                'cx-webchat'
            ],
            ....
        },
        webchat: {
            ....
        },
    }[/code]
[/quote]

Hi Jerry,

We gave it an additional try from scratch, using namespaces shown in the doc (same as yours) and it is working properly. Actually, our namespaces where sort of 'deprecated', that's what was causing the issue.

As far as the Genesys / Salesforce discussion, very interesting comments from both sides! I also believe Genesys omni-channel is way too 'inmature' or in early stages and doesn't provide additional customer experience or at least a better one comparing to different solutions. However, customer rules...

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Customize Genesys Chat Widget
« Reply #8 on: June 22, 2018, 01:56:17 PM »
Vic you are forgetting that customer handle what is inside his architecture, but can't control which channels customers want to communicate through.
So, going omni channel has nothing to do with going cloud based.
About user GUI well have you seen Avaya, Cisco  and other pbx solutions? Salesforce is a CRM...so Genesys GUI as call center solution is good.


Enviado de meu E6633 usando o Tapatalk