Revision as of 18:44, June 6, 2016 by Bfriend (talk | contribs) (Options)
Jump to: navigation, search

Configuration

Description

WebChat and WebChatService share the configuration namespace '_genesys.cxwidget.webchat'. WebChat has UI options while WebChatService has connection options.

Example

window._genesys.cxwidget.webchat = {

	apikey: 'n3eNkgLLgLKXREBMYjGm6lygOHHOK8VA',
	dataURL: 'https://api.genesyscloud.com/gms-chat/2/chat',
	userData: {},
	emojis: true,
	actionsMenu: true,

	autoInvite: {

		enabled: false,
		timeToInviteSeconds: 10,
		inviteTimeoutSeconds: 30
	},

	chatButton: {

		enabled: true,
		template: '<div>CHAT NOW</div>',
		effect: 'fade',
		openDelay: 1000,
		effectDuration: 300,
		hideDuringInvite: true
	}
};

Options

Name Type Description Default Required
apikey string Apigee Proxy secure token Yes, if using Apigee Proxy
endpoint string Manually select the endpoint to initiate the chat on
dataURL URL String URL of GMS server Always
userData object Arbitrary JSON attached data to include when initiating a chat {}
ajaxTimeout number Number of milliseconds to wait before AJAX timeout 3000
Comments or questions about this documentation? Contact us for support!