Website Chat Widget Quick Start
Last updated
Last updated
The Website Chat Widget allows website visitors to contact you via live chat or through other Messaging Channel you have connected.
Step 1: Navigate to Channel Settings From Settings Module, navigate to the menu item, Channels
Step 2: Add Channel Press Add Channel and choose Website Chat. The Connecting Website Chat Widget dialog should open up.
Step 3: Specify Website Fill in the website(s) where the Widget will be added. Refer to the following on how websites can be whitelisted.
If the user adds https://app.yeshello.chat
then only https://app.yeshello.chat
will be whitelisted. Any other subdomain or root should not work.
If the user adds https://*.yeshello.chat
, then all subdomains including the root domain will be whitelisted.
If the user adds https://yeshello.chat
, then only the root domain will be whitelisted.
Step 4: Select a Theme Color Using the interactive color picker, select a theme color for the chat widget.
Tips: Choose a color that matches your brand color and website!
Step 5: Select a Display Icon for the Widget Choose an icon that would like to show on the website for the widget. If you prefer to upload a customised icon, you can upload a square icon with a recommended size of 256px x 256px.
Widget can be further customized once connected.
Step 6: Follow through the steps at the platform Once you have specified the necessary, press NEXT to follow through.
Step 7. Install the Script You can add the generated script to your preferred website. Alternatively, you can send the installation instructions to someone else via email.
You may require a webmaster or technical admin to assist in installing the chat widget on the website. Please seek assistance if necessary!
Depending on what system you use to create and manage your website, we have created a step by step guides to walk you through installing a Chat Widget onto your website.
For other platforms or services, navigate to HTML source of the page. Paste the script before the </body>
tag.
If you require assistance, you can choose to forward the script along with installation instructions to your website administrator. Select the respective checkbox and enter the email address of someone who can help you install the chat plugin.
The YesHello Website Chat Widget will appear on your site once the script has been successfully installed.
Step 1: Navigate to Channel Settings From Settings Module, navigate to the menu item, Channels
Step 2: Locate the Website Chat channel Once you have located the Website Chat channel, press CUSTOMIZE
Step 3: Customize Website Chat
You can use the fields below to customize the Website Widget to match the website's appearance so the widget will look seamless.
On the right side of the page, there is a preview of website chat widget. Any customization made to the widget will reflect on the widget. This helps users to get a better idea of what they are customizing.
You may customize the following to change the display appearance of the widget on the website.
Validation for Website Chat Icon:
Maximum file size: 1MB
Maximum file dimension: 256 x 256 px
Shape: Square
Validation for Website Chat Logo:
Maximum file size: 4MB
Maximum file dimension: 1024 x 1024 px
Shape: Square
If the Website Chat Widget has never been configured before, connected Channels with adequate information will be listed by default as Widget Channel links.
You may add the widget Channel links and specify the necessary information for the selected Channel.
Here is the list of Input Field required for each of the Channel Links supported.
Validation for Channel Icon:
Maximum file size: 1MB
Maximum file dimension: 256 x 256 px
Shape: Square
Enabling this option will add a pre-chat form to your Website Chat. If enabled, your website visitors will be presented with a form to fill out before they start the chat.
With this option enabled, you can include additional custom fields when necessary. In addition to that, you can also customize the label for the default fields on how they appear to your Contacts.
The field labels can be customized to a different language to match the website's language.
When this option is checked, the website visitor does not have an option to attach an attachment in the website chat widget.
When using this option the widget will be completely hidden. Until the Anchor Reference has been clicked or when the chat is opened via the programmatic API.
#webchat_widget
Using the above anchor you can create a button on your page, to open the widget once clicked.
Using this option you can remove the YesHello Branding from your Widget.
This option is not available on the Free Plan.
Website Chat channel can be configured with a unique: - Channel Name - Website Domain(s)
Step 1: Click Settings > Channels
Step 2: Locate the Website Chat > click Manage
Step 3: In the Website Chat Configuration page you will see the following configurations:
Chat Link - The URL link for your Contact to reach your Channel.
Channel Name - The Channel Name can be changed and is used internally to identify the Channel.
Website Domains - Website(s) that are connected to your Widget.
Website Chat Code - The code you can paste in your website’s HTML source if you need to retrieve the generated code snippet.
Important: If you do not add your website to this list, your widget will not load. You can enter multiple URLs if you plan on installing the plugin to multiple websites.
Step 4: Update the configuration Press Done to update the channel configuration
The logged-in users of your website can be identified by adding a simple JavaScript code to your website code. Once the identifier passed is matched with an existing Contact, the current conversation will be resumed.
The term “user” is used in the context of your website. In the YesHello platform, we continue to refer them as “Contacts”.
Guide on how to use the code
Edit the code (given below) to send yeshello.chat the identifier of the currently logged-in user. This can be the email address or Contact ID or based on any other Contact field. Please note that an identifier
is a required field.
Paste the code right in the head
tag of every page where you want the website chat to appear.
The script for identifying logged-in users must be placed above the website chat code that can be found in the website chat configuration dialog.
You can also send YesHello Contacts Fields associated with your Contacts so we will store the Contact field during the Contact creation process. The field name (or slug) can be found in the Contact Fields module.
Please note that if you are using this feature, the pre-chat form will be ignored which means Contacts do not need to fill up their information before initiating a conversation.
The example above is passing an email address as identifier and during Contact creation process, all the Contact fields passed will be stored.
The Website Chat Widget can be opened and closed via your Website JavaScript code. This allows you to create a custom "Chat with us" button on your Website, and trigger the Website Chat Widget to open when a visitor clicks on the button.
Actions
Open chat
Description: Opens the chat widget.
Syntax: $respond.do("chat:open")
Close chat
Description: Closes the chat widget.
Syntax: $respond.do("chat:close")
Event Listeners
Chatbox was opened
Description: Handles the chat widget opened event (triggers your callback
function).
Syntax:$respond.on("chat:opened", callback)
Chatbox was closed
Description: Handles the chat widget closed event (triggers your callback
function).
Syntax:$respond.on("chat:closed", callback)
State Check Methods
Is chat open?
Description: Returns true
if the chat widget is opened, else false
.
Syntax: $respond.is("chat:open")
Is chat closed?
Description: Returns true
if the chat widget is closed, else false
.
Syntax: $respond.is("chat:closed")
Why aren't my messages getting delivered to Contacts?
There could be a few reasons why the messages aren’t getting delivered:
Contact has left the website.
Contact's inactivity may exceed the timeout period.
Contact's client may have internet connection issues.
Why isn’t my Widget appearing on my website?
Make sure the code is installed correctly. Refer to the instructions here on how to install the website chat widget.
Be sure to whitelist the website where the widget is to be installed. Refer to Step 3 of Connecting Website Chat Widget on how to whitelist your domain.