Difference between revisions of "WID/Current/Developer/GWCConfig"

From Genesys Documentation
Jump to: navigation, search
m (Text replacement - "Genesys Cloud" to "Genesys Cloud CX")
 
(12 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|Standalone=No
 
|Standalone=No
 
|DisplayName=Configure widgets and services
 
|DisplayName=Configure widgets and services
|Role=Developer
 
 
|TocName=Configure widgets and services
 
|TocName=Configure widgets and services
|Platform=PureEngage
+
|Context=Learn how to configure widgets and services.
 
|ComingSoon=No
 
|ComingSoon=No
|Context=Learn how to configure widgets and services.
+
|Platform=GenesysEngage-cloud
 +
|Role=Developer
 
|Section={{Section
 
|Section={{Section
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=Depending on your product, you can use Genesys Widgets for functionality such as {{Link-SomewhereInThisVersion|manual=SDK|topic=WebChat-combined|display text=WebChat}}, {{Link-SomewhereInThisVersion|manual=SDK|topic=Callback-combined|display text=callbacks}} and {{Link-SomewhereInThisVersion|manual=SDK|topic=Co-browse-combined|display text=Co-browse}}. Widgets will support other types of channels with future releases. You can configure all widgets and services in the same configuration object. When you add new Genesys products and services, you must update your Genesys Widgets configuration to enable those widgets.
+
|structuredtext=Depending on your product, you can use Genesys Widgets for functionality such as {{Link-SomewhereInThisVersion|manual=SDK|topic=WebChat-combined|display text=WebChat}} or {{Link-SomewhereInThisVersion|manual=SDK|topic=Callback-combined|display text=Callback}}. You can configure all widgets and services in the same configuration object. When you add new Genesys products and services, you must update your Genesys Widgets configuration to enable those widgets.
  
After you {{Link-SomewhereInThisVersion|manual=Developer|topic=GWCDeployment|display text=deploy the Genesys Widgets}} on your website, configure the CX Widget by defining the '''global window._genesys''' Javascript object.
+
After you {{Link-SomewhereInThisVersion|manual=Developer|topic=GWCDeployment|display text=deploy Genesys Widgets}} on your website, configure the CX Widget by defining the '''global window._genesys''' Javascript object.
  
 
To include the JavaScript script, you can choose one of the following options:
 
To include the JavaScript script, you can choose one of the following options:
* Place the script inline on your website
+
 
* Place it in a separate JavaScript file, and include the file on your page
+
*Place the script inline on your website
 +
*Place it in a separate JavaScript file, and include the file on your page
  
 
The following example is a basic view of the global Genesys Widgets configuration object:
 
The following example is a basic view of the global Genesys Widgets configuration object:
Line 31: Line 30:
 
                 main: {},
 
                 main: {},
 
                 webchat: {},
 
                 webchat: {},
                cobrowse: {},
 
 
         };
 
         };
  
Line 40: Line 38:
 
</source>
 
</source>
  
 
+
The following example is a populated Widget configuration that includes configuration options for WebChat.
The following example is a populated Widget configuration that includes configuration options for WebChat and Co-browse (GCB):
 
  
 
{{NoteFormat|You must define your configuration options on the page '''before''' widgets.min.js is loaded.}}
 
{{NoteFormat|You must define your configuration options on the page '''before''' widgets.min.js is loaded.}}
 
{{NoteFormat|Note that Co-browse is optional.|2}}
 
  
 
<source lang="javascript">
 
<source lang="javascript">
Line 83: Line 78:
 
                         }
 
                         }
 
                 },
 
                 },
                 cobrowse: {
+
                  
 
                        src: "<COBROWSE_SERVER_URL>/cobrowse/js/gcb.min.js",
 
                        url: "<COBROWSE_SERVER_URL>/cobrowse"
 
                },
 
 
         };
 
         };
 
   
 
   
Line 110: Line 101:
 
</script>
 
</script>
 
</source>
 
</source>
|advanced=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Main Configuration
 
|sectionHeading=Main Configuration
|Standalone=No
+
|anchor=mainconfig
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=Genesys Widgets is a hub for multiple Genesys products and services. Some configuration options are set globally and therefore apply to all products and services running on the CX Widget platform. In the main application configuration you can configure options such as visual theme, language, and mobile support.
 
|structuredtext=Genesys Widgets is a hub for multiple Genesys products and services. Some configuration options are set globally and therefore apply to all products and services running on the CX Widget platform. In the main application configuration you can configure options such as visual theme, language, and mobile support.
  
 
For detailed information on configuration options, see {{Link-SomewhereInThisVersion|manual=SDK|topic=App-combined|anchor=config|display text=app configuration options}}.
 
For detailed information on configuration options, see {{Link-SomewhereInThisVersion|manual=SDK|topic=App-combined|anchor=config|display text=app configuration options}}.
|advanced=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Widget Configuration Options
 
|sectionHeading=Widget Configuration Options
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
|structuredtext=* {{Link-SomewhereInThisVersion|manual=SDK|topic=WebChat-combined|anchor=config|display text=WebChat configuration}}
+
|structuredtext=*{{Link-SomewhereInThisVersion|manual=SDK|topic=WebChat-combined|anchor=config|display text=WebChat configuation}}
* {{Link-SomewhereInThisVersion|manual=SDK|topic=WebChatService-combined|anchor=config|display text=WebChatService configuration}}
+
*{{Link-SomewhereInThisVersion|manual=SDK|topic=WebChatService-combined|anchor=config|display text=WebChatService configuration}}
* {{Link-SomewhereInThisVersion|manual=SDK|topic=Co-browse-combined|anchor=config|display text=Co-browse configuration}}
+
*{{Link-SomewhereInThisVersion|manual=SDK|topic=ChannelSelector-combined|anchor=config|display text=ChannelSelector configuration}}
* {{Link-SomewhereInThisVersion|manual=SDK|topic=ChannelSelector-combined|anchor=config|display text=ChannelSelector configuration}}
 
  
 
For a complete catalogue of Widgets configuration options, see {{Link-SomewhereInThisVersion|manual=SDK|display text=Genesys Widgets API Reference}}.
 
For a complete catalogue of Widgets configuration options, see {{Link-SomewhereInThisVersion|manual=SDK|display text=Genesys Widgets API Reference}}.
|advanced=No
 
 
|Status=No
 
|Status=No
 
}}{{Section
 
}}{{Section
 
|sectionHeading=Launcher
 
|sectionHeading=Launcher
|Standalone=No
 
|ComingSoon=No
 
 
|alignment=Vertical
 
|alignment=Vertical
 
|structuredtext=Launcher is a sample page that shows how Genesys Widgets are displayed on any host website. Use this page to:
 
|structuredtext=Launcher is a sample page that shows how Genesys Widgets are displayed on any host website. Use this page to:
* View Genesys Widgets with your own configuration.
+
 
* Copy the Configuration Script; for example, using the details you entered on the form, configuration script is generated in the '''Need Configuration Script''' section. You can copy this script and use it in your website to launch Widgets.
+
*View Genesys Widgets with your own configuration.
* Starting in the 9.0.008.03 version, use the Launcher tool to test and configure between the different API services available in Genesys, namely under PureEngage, PureEngageCloud and PureCloud.
+
*Copy the Configuration Script; for example, using the details you entered on the form, the configuration script is generated in the '''Need Configuration Script''' section. You can copy this script and use it in your website to launch Widgets.
 +
*Starting in the 9.0.008.03 version, use the Launcher tool to test and configure between the different API services available in Genesys, namely under Genesys Multicloud CX, GenesysEngage-cloud and Genesys Cloud CX.
  
  
Line 151: Line 134:
 
'''Enable Live Assist (EWT)'''<br />Select the check box next to '''Enable Live Assist (EWT)''' to enable the ChannelSelector plugin. Enter the Stats URL followed by the virtual queue names to fetch the Estimated Wait Time details. Refer to the {{Link-SomewhereInThisVersion|manual=SDK|topic=ChannelSelector-combined|display text=Channel Selector documentation}} for more information. To show Chat, SendMessage and CallUs channels in this plugin, please make sure that you select these plugins in this Launcher page.
 
'''Enable Live Assist (EWT)'''<br />Select the check box next to '''Enable Live Assist (EWT)''' to enable the ChannelSelector plugin. Enter the Stats URL followed by the virtual queue names to fetch the Estimated Wait Time details. Refer to the {{Link-SomewhereInThisVersion|manual=SDK|topic=ChannelSelector-combined|display text=Channel Selector documentation}} for more information. To show Chat, SendMessage and CallUs channels in this plugin, please make sure that you select these plugins in this Launcher page.
  
'''WebChat'''<br />Select the '''WebChat''' check box to enable WebChat. You must enter a URL. Other values are optional and self-explanatory.{{NoteFormat|Starting in the 9.0.008.03 version, WebChat supports PureEngage v3 API via the transports configuration section. You can test this in the Launcher tool using the WebChat [with Transport only] section under the PureEngageCloud tab.}}
+
'''WebChat'''<br />Select the '''WebChat''' check box to enable WebChat. You must enter a URL. Other values are optional and self-explanatory.{{NoteFormat|Starting in the 9.0.008.03 version, WebChat supports Genesys Multicloud CX v3 API via the transports configuration section. You can test this in the Launcher tool using the WebChat [with Transport only] section under the GenesysEngage-cloud tab.}}
 
 
'''Co-browse'''<br />Select the '''Co-browse''' check box to enable Co-browse. Enter all of the required fields (marked with an asterisk).
 
 
 
'''GWE'''<br />Select the '''GWE''' check box to enable GWE. Enter all of the required fields (marked with an asterisk).
 
 
 
'''Send Message'''<br />Select the '''Send Message''' check box to enable Send Message. Enter all of the required fields (marked with an asterisk).
 
  
 
'''CallUs'''<br />Select the check box next to '''Call Us''' and provide the configuration data. Note that you can select the '''Edit/Use Sample Config''' option to use sample configuration data, which you can edit it with your own detail data. Ideally, Call Us is shown in the Live Assist widget. It can also be launched with the <tt>CallUs.open</tt> bus command.
 
'''CallUs'''<br />Select the check box next to '''Call Us''' and provide the configuration data. Note that you can select the '''Edit/Use Sample Config''' option to use sample configuration data, which you can edit it with your own detail data. Ideally, Call Us is shown in the Live Assist widget. It can also be launched with the <tt>CallUs.open</tt> bus command.
Line 166: Line 143:
  
 
Once you have entered all of the necessary configuration details, click the '''Launch''' button to launch Widgets.
 
Once you have entered all of the necessary configuration details, click the '''Launch''' button to launch Widgets.
[[File:Launcher-PureEngage-9.0.008.03.png|thumbnail|center|Launcher tool for PureEngage API (click to enlarge)]]
 
 
[[File:Launcher-PureEngageCloud-9.0.008.03.png|thumbnail|center|Launcher tool for PureEngageCloud API (click to enlarge)]]
 
|advanced=No
 
 
|Status=No
 
|Status=No
 
}}
 
}}
 
}}
 
}}

Latest revision as of 21:27, November 9, 2021

This topic is part of the manual Widgets Developer's Guide for version Current of Widgets.

Learn how to configure widgets and services.

Related documentation:

Depending on your product, you can use Genesys Widgets for functionality such as WebChat or Callback. You can configure all widgets and services in the same configuration object. When you add new Genesys products and services, you must update your Genesys Widgets configuration to enable those widgets.

After you deploy Genesys Widgets on your website, configure the CX Widget by defining the global window._genesys Javascript object.

To include the JavaScript script, you can choose one of the following options:

  • Place the script inline on your website
  • Place it in a separate JavaScript file, and include the file on your page

The following example is a basic view of the global Genesys Widgets configuration object:

<script>

        if(!window._genesys)window._genesys = {};
        if(!window._gt)window._gt = [];

        window._genesys.widgets = {

                main: {},
                webchat: {},
        };

</script>

// include widgets.min.js after defining your configuration options

The following example is a populated Widget configuration that includes configuration options for WebChat.

Important
You must define your configuration options on the page before widgets.min.js is loaded.
<script>
 
        if(!window._genesys)window._genesys = {};
        if(!window._gt)window._gt = [];
 
        window._genesys.widgets = {
                main: {
 
                        theme: "dark",
                        lang: "en",
                        i18n: "http://HOST:PORT/path/to/languages/file.json",
                        customStylesheetID: "<ANY_ID_NAME>",
                        mobileMode: 'auto',
                        mobileModeBreakpoint: 600
                        },
                webchat: {
 
                        apikey: "0123456789", // Used for Apigee service only
                        dataURL: "http://HOST:PORT/path/to/chat/service",
                        userData: {},
                        proactive: {
 
                                enabled: true,
                                idleTimer: 5,
                                cancelTimer: 30
                        },
                        chatButton: {
 
                                enabled: true,
                                template: false, 
                                openDelay: 1000,
                                effectDuration: 300,
                                hideDuringInvite: true
                        }
                },
                
        };
 
        (function(o){
	var f = function(){
		var d = o.location;
		o.aTags = o.aTags || [];
		for(var i=0;i<o.aTags.length;i++){
			var oTag = o.aTags[i];
			var fs = d.getElementsByTagName(oTag.type)[0], e;
			if(d.getElementById(oTag.id)) return; e = d.createElement(oTag.type); e.id = oTag.id;
			if(oTag.type == "script"){e.src = oTag.path;}
                        else{e.type = 'text/css';e.rel = 'stylesheet';e.href = oTag.path;}
			if(fs){fs.parentNode.insertBefore(e, fs);}else{d.head.appendChild(e);}
		}},ol = window.onload;
		if(o.onload){typeof window.onload != "function"?window.onload=f:window.onload=function(){ol();f();}}else f();
})({location: document, 
     onload: false, 
     aTags: [{type:"script", id:"genesys-cx-widget-script", path:"http://www.yourhost.com/path/to/widgets.min.js"}, 
		 {type:"link", id:"genesys-cx-widget-styles", path:"http://www.yourhost.com/path/to/widgets.min.css"}]});
 
</script>

Main Configuration

Genesys Widgets is a hub for multiple Genesys products and services. Some configuration options are set globally and therefore apply to all products and services running on the CX Widget platform. In the main application configuration you can configure options such as visual theme, language, and mobile support.

For detailed information on configuration options, see app configuration options.

Widget Configuration Options

Launcher

Launcher is a sample page that shows how Genesys Widgets are displayed on any host website. Use this page to:

  • View Genesys Widgets with your own configuration.
  • Copy the Configuration Script; for example, using the details you entered on the form, the configuration script is generated in the Need Configuration Script section. You can copy this script and use it in your website to launch Widgets.
  • Starting in the 9.0.008.03 version, use the Launcher tool to test and configure between the different API services available in Genesys, namely under Genesys Multicloud CX, GenesysEngage-cloud and Genesys Cloud CX.


How to use Launcher

Sidebar
To enable the Sidebar plugin, select this check box in Launcher. By default, Sidebar will be shown on the right side of the screen on Widgets startup. You can configure SideBar by using the options shown under this section. Provide the sidebar channel configuration in the corresponding text area according to the Sidebar documentation or use the provided sample configuration links to pre-fill the sample data in the text area. Ensure that the channels defined here are enabled and configured as well.

Enable Live Assist (EWT)
Select the check box next to Enable Live Assist (EWT) to enable the ChannelSelector plugin. Enter the Stats URL followed by the virtual queue names to fetch the Estimated Wait Time details. Refer to the Channel Selector documentation for more information. To show Chat, SendMessage and CallUs channels in this plugin, please make sure that you select these plugins in this Launcher page.

WebChat
Select the WebChat check box to enable WebChat. You must enter a URL. Other values are optional and self-explanatory.
Important
Starting in the 9.0.008.03 version, WebChat supports Genesys Multicloud CX v3 API via the transports configuration section. You can test this in the Launcher tool using the WebChat [with Transport only] section under the GenesysEngage-cloud tab.

CallUs
Select the check box next to Call Us and provide the configuration data. Note that you can select the Edit/Use Sample Config option to use sample configuration data, which you can edit it with your own detail data. Ideally, Call Us is shown in the Live Assist widget. It can also be launched with the CallUs.open bus command.

Callback
Select the check box next to Callback to include the Callback and Calendar plugins. Enter the callback service provider URL field and other details as required. Ensure Enable Sidebar with Live Assist is selected.

Lazy Loading
Select the check box next to Enable Lazy loading to launch Widgets in the lazy-load mode. Otherwise they will be launched on startup. At the minimum, Sidebar plugin must be enabled and configured with the required channels to load it on Widgets startup.

Once you have entered all of the necessary configuration details, click the Launch button to launch Widgets.

Retrieved from "https://all.docs.genesys.com/WID/Current/Developer/GWCConfig (2025-06-20 07:01:55)"
Comments or questions about this documentation? Contact us for support!