Skip to main content
Skip table of contents

Customer Gadget Configurations on Windows

Following is the procedure to configure Customer Gadget:

  1. Navigate to <installation-dir>\hybrid-chat\core\tomcat\apache-tomcat-8.5.47\webapps\customer-gadget\assets\config directory
  2. Open config.json file with any text editor
  3. Save the file after configuration changes

Configuration

Sample config.json file is as follows:

JS
{
    "serverUrl": "https://chatsolution.expertflow.com/chat",
    "socketUrl": "https://chatsolution.expertflow.com",
    "languages": "en: English, de: German, zh: Chinese, fr: French, ar: Arabic",
    "defaultLanguage": "en",
    "inactivity": {
        "timeout": 120,
        "retries": 3
    },
    "isIntegrated": true,
    "theme": "orange-theme",
    "isFontAdjustable": true,
  "agentAvailibilityTimeout": 300,
    "callback": {
        "url": "https://chatsolution.expertflow.com/ecm"
    },
    "fileServerUrl": "https://chatsolution.expertflow.com/file-engine",
    "calendar": {
        "enabled": true,
        "url": "https://chatsolution.expertflow.com/umm",
        "agency": "expertflow"
    },
    "ewt": {
        "url": "https://chatsolution.expertflow.com/mre",
        "delay": 5,
        "minTime": 120,
        "maxTime": 600,
        "maxPosition": 2
    },
    "messageLimit": 200,
    "logs": {
        "enabled": true
    },
    "chatTranscript" : false,
    "enableFileSending":false,
    "enable_hyberlinks":true,
    "enableEmojis":true,
    "enableCloseChatNotif":true,
    "enableNotification":true,
    "showCustomerAvatar":true
}

Following table explains parameters:


Configuration VariableDefault ValueExpected ValueLimitationsDescription
1serverUrlhttps://chatsolution.expertflow.com/chatstring
Chat server url to initiate chat
2socketUrlhttps://chatsolution.expertflow.comstring
Chat server url without to establish socket connection between chat-server and customer-gadget
3languagesen: English, de: German, zh: Chinese, fr: French, ar: Arabicstring
List of supported languages and codes
4defaultLanguageenstring
Default language if browser language is not supported by the customer-gadget
5inactivity.timeout120number
Customer is notified once inactivity time reached.
6inactivity.retries3number
Once customer is notified equal to inactivity.retries, chat is automatically closed.
7isIntegratedtrueboolean

If customer gadget is integrated in another site than value is set to true

8themeorange-themestring
name of the theme.
9isFontAdjustabletrueboolean
If the value is true, the widget shows 3 font size options to choose from. The default value is  true
10agentAvailibilityTimeout300number

In case of no agent available, chat is auto-ended once this timeout expires

AgentAvailibilityTimeout must be less than

11callback.urlhttps://chatsolution.expertflow.com/ecmstring
Not applicable
12

fileServerUrl

https://chatsolution.expertflow.com/file-enginestring
File server url to send / receive attachments
13calendar.enabledtrueboolean
Used to enable/disable working hours
14calendar.urlhttps://chatsolution.expertflow.com/ummstring
Full qualified domain name of host machine where UMM is deployed. Agent availability calendar is accessible via UMM.
15calendar.agencyexpertflowstring
Name of calendar agency where Agent availability is configured. For more info, please refer to Supervisor Tools User Guide.
16

ewt.url

https://chatsolution.expertflow.com/mrestring
This configuration is required to check if there's any available agent in MRE when chat is initiated & to fetch estimated wait time for customer chat to be routed to an agent.
17ewt.delay15number
Estimated wait time poll interval in seconds
18ewt.minTime120number
min wait time configuration to show on customer screen.
19ewt.maxTime600number
max wait time to show on customer screen
20ewt.maxPosition10number
max queue position to show on customer screen.
21messageLimit200number
This is character limit for a message, valid between 1 and 2000
22logs.enabledtrueboolean
Used to enable/disable logs of customer gadget to track the problem
23chatTranscripttrueboolean
Allow the user to download chat transcript after chat ended
24enableFileSendingtrueboolean
This configuration is used to enable or disable the file sending option.
25enable_hyberlinkstrueboolean

To automatically convert a string such as  google.com or http://google.com to a hyperlink, set the value to true

26enableEmojistrueboolean

This configuration is used to enable or disable chat emoji. The default value is true.

27enableCloseChatNotiftrueboolean

If set to true, customers will first see a confirmation alert when trying to close a chat session. So the chat session will be closed only upon closing the confirmation.

The default value is true 

28enableNotificationtrueboolean

This enables or disables browser notifications and sound for incoming chat messages.

29showCustomerAvatartrueboolean

This enables showing customer avatar. If set to false, the customer avatar won't appear. The default value is true.


Now Customer Gadget is configured and we just need to specify the address where customer gadget  is actually deployed by following these steps bellow:

  1. Navigate to <installation-dir>\hybrid-chat\core\tomcat\apache-tomcat-8.5.47\webapps\customer-gadget\assets\widget directory
  2. Open config.js file with any text editor
  3. Save the file after configuration changes, clear browser cache and refresh /customer-gadget/ page

Configuration

Sample config.js file is as follows:

JS
widgetConfig={
	"url":" https://FQDN/customer-gadget"
}

Following table explains parameters:


Configuration VariableDefault ValueExpected ValueLimitationsDescription
1.widgetConfig.url https://FQDN/customer-gadgetstring
Customer Gadget url where it is deployed


Customer Gadget won't work standalone from 3.9.4 release and onward. To embed Customer Gadget in your website, refer to Javascript API and embed using 2020-04-21_06-38-53_Embed Customer Gadget in Website guide.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.