Note: This is a first time implementation and only at the Phase 1 of the project.
Employee needs to login to the website before they can send a web message. They are using SSO to login to the website and once they login, their name appears on the website as a login name.
Then, they initiate the chat and the name should be populated automatically in the chat window as per the login name and that name should pass to Genesys.
Question 1: Is the code to pass the name field correct?
function startMyChat(g, e, n, es, ys) {
g['_genesysJs'] = e;
g[e] = g[e] || function () {
(g[e].q = g[e].q || []).push(arguments)
};
g[e].t = 1 * new Date();
g[e].c = es;
ys = document.createElement('script'); ys.async = 1; ys.src = n; ys.charset = 'utf-8'; document.head.appendChild(ys);
}
Question 2: How to validate if name is passed correctly from a website to Genesys web message?
My understanding is if the passing of name is successful, the name field will be available in participant data then the Architect Inbound message from will use "Get Participant Data" data action. Kindly advise if this is correct.
But as of now, using the code above, the name is not passed correctly in Genesys side. Per the screenshots below, the external name is still guest and the name is not passed in the participant data.
For this scenario, we do have native support for End-User sign-in based SSO via OpenID Connect (OIDC) integration: this would ensure name is captured automatically via back-end integration, rather than on the client.
This way End-User identity can be retrieved via Architect built-in variables:
The name captured via OIDC integration will automatically populate in Agent and Supervisor UIs (see screenshot).
I like the approach for that SSO via OpenID Connect, but the website where the employee is logging in via SSO is already running live in production. It has the employee details like the employee name that we are trying to pass to Genesys Cloud (GC) web messaging widget.
The only new here are the GC web messaging and integration between that website to the widget going to GC.
Can you please assist us on how the customAttributes will work? If possible, we need a step by step guide on how to implement it.
Are there any installations like javaSDK to the website to make that Genesys Command works?
Here is the documentation I found, is this what we need?
@DanNacion I would still recommend to implement SSO via OpenID Connect integration, even if your environment is already live: you would gain benefits in how Name is handled within the platform.
As a workaround, see this other post using customAttributes mapping to Participant Data > Add Name to alerting tile
@Angelo_Cicchitto, once the authenticated web message is added, how can I pass other attributes like employee's country? How and where will the Inbound Message flow will pull that attribute - the authenticated web message has only 4 available attributes?
Is it possible to pass the country id as one of the custom attributes then the Inbound Message flow will pull that from Participant Data via "Get Participant Data" data action?