Webchat Channel
- 1 How to access the webchat widget
- 2 WebChat Widget Setting
- 2.1 Content
- 2.1.1 Chat Bubble
- 2.1.2 Conversation button
- 2.1.3 Welcome message
- 2.1.4 Out of office message
- 2.1.5 Pre Chat Form
- 2.1.6 Default Start Flow
- 2.1.7 Skip the conversation button
- 2.1.8 Greeting Messages
- 2.2 Settings
- 2.2.1 Language
- 2.2.2 Notification sound
- 2.2.3 Features
- 2.2.4 Whitelist domain
- 2.3 Channels
- 2.3.1 How It Works
- 2.3.2 Where to Find It
- 2.4 Appearance
- 2.4.1 Theme
- 2.4.2 Font
- 2.4.3 Color
- 2.4.4 Start Chat Button
- 2.5 Display Style
- 2.5.1 Style
- 2.5.2 Design
- 2.5.3 Install code
- 2.5.4 Set Custom User ID
- 2.5.5 Custom CSS
- 2.6 Advanced Section
- 2.1 Content
- 3 Frequently Asked Questions:
Ā
With the webchat widget, you will be able to add a chatbot to any website without the dependency of any other channel. This will help you unlock the power of conversational marketing without the downsides or restrictions other channels might have.
How to access the webchat widget
Ā
To access the webchat widget you need to create a omni-Channel chatbot. Please note web chat is only available under Omni-Channel.
If you havenāt create omni channel, you can create the āSet up omni channelā button to create the omni channel as per screenshot below:
If you create the omni channel, give it a name, and then you will see the screenshot below:
You can create new bot or converting existing bot into omni channel.
After you create the omni channel, you will be able to find the webchat Widget from the left side bar.
WebChat Widget Setting
Ā
Ā
Once you have located your widget you can press the pencil icon on the right of it to edit and customize the webchat widget to your liking.Ā
Ā
Once pressed you will enter the main overview of available settings;
Ā
Ā
Content
The first section of the widget will be the content tab. Here you will find the following options;
Ā
Chat Bubble
Chat Header
Conversation button
Welcome message
Out of office message
Pre Chat form
Default start flow
Ā
Letās go over them 1 by 1.
Ā
Chat Bubble
With the chat bubble, you are able to select your preferred bubble icon. You will see that reflecting directly on the preview in the bottom right corner;
Ā
You can also choose between having the icon only or combining it with text from the top options of this screen.Ā
Ā
Conversation button
With the conversation button, you can create your own call to action (CTAās) buttons to allow users to start, continue or start a new conversation;
Ā
Welcome message
You can add a welcome headline and tagline to get people to entice people to press on your webchat widget.
Ā
Ā
Ā
Out of office message
With the out of office message you will be able to add a notification to your widget. You will be able to set the reply message as well;
Ā
Pre Chat Form
Ā
With this setting, you can capture essential data before the chat even starts and save this to any system or custom user field available.Ā
Please note Pre Chat Form donāt works with embed & full page mode. You need to use floating or pop up style.
Ā
First of all you will have the form Header where you can state the purpose of this form. After you will be able to insert a field form by pressing the button + Add Field.
Ā
You will then be able to select any of the following field types;
Ā
After you selected your type you will be able to edit it by pressing the edit button;
Ā
Once you are editing any of the fields you will have several options to choose from. Letās take an email type field as an example;
Ā
First of all, you can select the system or custom user field you want to save the value given by the user to. Then you will be able to set the name of the form field label. Inside the placeholder, you will be able to give an example of the format you would like to receive the email in. The hint section will allow you to give additional information about this field type.
Ā
The last two options will allow you to determine if the field is required and what width you want the field to be. As a result, it will then look like this;
Ā
Once you have fully edited the field to your liking you can press the button done at the top of this field to save the changes.Ā
Ā
Lastly below the fields you will have an additional option to allow the user to write a message prior to entering the chatbot;
Ā
This will look like the following on the live view for the user;
Ā
This message will be saved in the system field called {{last text input}}.
Ā
Default Start Flow
If the pre-chat form is not enabled then you will be to set a default starting flow of your own choosing;
Ā
Once pressed you will be able to select any of the flows you have created beforehand;
Skip the conversation button
In the web chat, you can set up and then skip the need to click the button to initiate the conversation.
In order to do that, you need:
make sure you donāt select other channels in the web chat widget.
make sure the default start flow is connected.
You can find your connected channel settings here:
Also make sure the start flow is connected to any of your flow.
After you have made the changes, make sure you apply the changes, and then install the code, and test on your website.
Also you canāt have the pre-chat form enabled in order for this to work.
You shouldnāt need to click the button to initiate the conversation now.
Greeting Messages
You can set up different greeting messages on different page of your website.
It will show up for the first time user,
And you can find the greeting message settings below:
You can set up which page or pages you want to trigger the greeting message, also you can set up the sender name & profile.
Watch the below video for more details:
Settings
Inside the settings tab you will have the following options to customize;
Language
Notification Sound
Features
Whitelist Domain
Ā
Letās take a deeper look at each individual setting
Ā
Language
With the language setting you can change the display language of a few sections inside the widget;
Ā
Just select the language on the left-hand side and you will see the changes reflected in the preview on the right instantly.Ā
Ā
Notification sound
With this option, you will be able to set up your sound for new message notifications your users will hear when in conversation with your webchat widget.Ā
Ā
You can choose out of 21 sounds or select the no sound instead if you prefer.
Ā
Features
With this option you can enable or disable certain features inside your widget;
Ā
You will have access to the following options;
Allow Emoji Picker -āŗĀ let users pick from pre-set emojis
Allow Upload Attachments -āŗ let users upload documents, images and or videos
Allow users to end chat -āŗ this option will allow the user to close the chat conversation.
Allow popup Chat Window -āŗĀ this allows users to change the chat widget into a pop up which results in a bigger display of the chat
Allow to Continue Chat in Mobile -āŗ Users can scan a qr code to continue the conversation on their phone. Smooth experience if they start on a computer and want to continue the conversation with your business while being in the road
Enable Text Typing Effect ā This will allow the response to show up word by word, if this is disabled, then the response will show up at once immediately.
Whitelist domain
In order to display the widget on your website, you will need to whitelist your domain. You only have to add your root domain and all subdomains that you may have will automatically be recognized;
Please note only one root domain supported in the omni channel.
Ā
Channels
The webchat widget allows you to seamlessly redirect users to multiple platforms such as WhatsApp, Facebook Messenger, Instagram, Telegram, and more. This feature ensures that users can connect with you through their preferred channels, enhancing their overall experience.
How It Works
When a user visits your webchat widget for the first time, they will be presented with a Get Started button, along with various channel options. These channels are integrated via Omni Channels.
If a platform like WhatsApp is linked to an Omni channel, and the user clicks on the WhatsApp icon instead of the Get Started button, they will be automatically redirected to that platform. This functionality is specific to Omni channels, allowing for a smooth transition between different communication platforms.
Where to Find It
To enable this feature, follow these steps:
Navigate to Webchat Widget Settings: Access the settings menu for your webchat widget.
Locate the Channels Option: You will find an option labelled Channels in the settings.
Activate the Desired Channels: Simply toggle on the channels you want to enable. Once activated, these channels will appear in the webchat widget, ready to redirect users as needed
Ā
For Example:Ā
We have linked a page with Uchat for the testing purpose:
Ā
Also, we have a testing website where you can see that three channels are enabled, and the user can select any of the channels.Ā
Ā
What happens when you click any channel:Ā
Users who click the Messenger Channel will be redirected to the Facebook page.Ā
Appearance
Ā
With these options, you are able to customize your webchat to match your brand colors and preferences;Ā
Ā
You have the following options to choose from;
ThemeĀ
FontĀ
Colors
Start Chat Button
Ā
Theme
With themes you are able to customize the appearance of your webchat widget with pre-set values;
Ā
You have the following themes at your disposal:
Ā
Standard
Flat
Facebook
WhatsApp
WeChat
The great thing about these themes is that they give a look and feel that users are already familiar with like when using Messenger of WhatsApp. These themes will create a similar chat experience directly on the spot.Ā
Ā
As you can see the experience makes it so that a user will feel right at home to start a conversation with your business because the experience is so similar.Ā
Ā
Font
With fonts you can totally change the appearance of the webchat widget by matching it to your own brand, or to create a really unique experience.Ā
Currently you can choose out of 25 fonts to really make the webchat widget your own personal experience.
Ā
Color
With this option you can change the color palette of your webchat widget
Ā
You can customize the following sections:
Widget ColorĀ
Bubble Icon & Text color
Start Chat Button Color
Header Background Color
Body Background Color
Ā
Start Chat Button
With this option you can change the border radius of the button āstart conversationā;
Ā
You can also choose the option custom to add your own radius instead. It will help you keep things in sync with your own website buttons for example.
Ā
Display Style
The display style option will give you multiple ways of using the webchat on your website. Letās take a look at the different options;
Ā
We have 5 main sections you can customize:
Style
Design
Install code
Set Custom User ID
Custom CSS
Ā
Style
You have 4 different styles to choose from as to how you would like to use the webchat channel on your website.Ā
Floating Modal -āŗ which will give you the live chat icon on the bottom on your page
Full Page -āŗĀ allowing you to embed the chat widget as a full page instead
Embed Chat Window -āŗĀ allows you to display the chat window anywhere on your page
Popup Modal -āŗĀ Allows you to pop up a window with the conversation with your chatbot. Anything on your page can be the trigger as long as you apply a class to it.Ā
The best part of it is that, for the same website, you can actually install different style of web chat on different pages.
Check this video for more details:
Design
With the design tab, you will be able to set the conversation widget settings of the style of widget that you selected. Below is an example of embed chat window option;
Ā
Install code
Ā
The install code will generate your script of the desired style of chat widget you want to put live on your page;
Ā
The installation code will differ depending on the style of the widget that you selected.Ā
Ā
Below is an example of the embed chat window;
Set Custom User ID
Chat now allows its users to pass bot user information from their website directly into the omnichannel bot via setting a custom user ID. This feature will enable users to send specific flows to guest users vs users who have given their information as well as be able to fetch chat history and other user specific flows which was not possible before.
Access āSet Custom User IDā Feature
Inside the omnibot, click on āWebchat Widget Settingsā then click on āDisplay Styleā tabs and then āSet Custom User IDā
Ā
Ā
The setup will look like the following:
Ā
Special Key
The special key is a set of strings that UChat uses to decrypt the hash you send to it from your website. This is important as it allows UChat to verify that the user is indeed created from your website and is authorized and authentic.
Ā
Identifier Hash
Identifier hash is a set of string composed of the user ID you want to set which is then encrypted to string using SHA256 algorithm with HMAC enabled. This hash is the unique signature that UChat then verifies to confirm and authorize that the request is being made from your website.
Ā
This hash needs to be created from the backend of your website. You will have to send this value in its encrypted form to UChat otherwise the request will be denied. A sample code written in PHP for such an encryption can be found below:
Ā
$identifier_hash = hash_hmac('sha256', $user_id, 'b02612a8bdf5e736c41ce2002181d124');
Ā
Snippet Code
The code snippet for this will have to be pasted in the same area where you put the code snippet for the bot itself i.e in the header section of your website.
Ā
The snippet code contains the payload for the user details, along with mandatory fields of user_id and identifier hash.
Ā
<script>
Ā Ā window.addEventListener("chatbot:ready", function () {
Ā Ā Ā Ā window.$chatbot.setUser("{user_id}", {
Ā Ā Ā Ā Ā Ā name: "full name",
Ā Ā Ā Ā Ā Ā email: "user@email.com",
Ā Ā Ā Ā Ā Ā identifier_hash: "{identifier_hash}"
Ā Ā Ā Ā });
Ā Ā });
</script>
Ā
Here, you can enter custom details for users such as name and email, as well as you can set the user_id.
Ā
Note: The {user_id} and {indentifier_hash} variables need to be replaced with the variables where the values you want to set can be mapped.
Ā
Instructions
Copy the snippet code into the header of your website, the same place where you place the snippet code for the bot itself.
Replace the {user_id} variable with the custom user_id you want to set for the user. The value for this will most likely have to be fetched from your server or websiteās backend.
Using the same user_id, create the identifier hash from your server or websiteās backend using SHA256 algorithm with HMAC enabled.
Copy both to the snippet code, then publish it live to your website. You will then be able to create users with custom user IDs.
Ā
Custom CSS
You can add your own custom CSS to customerize the web chat interface.
You can find the webchat widget CSS selectors here:
These CSS Selectors can be used to further customize the chat widget iframe
CSS Selectors | Function |
---|
CSS Selectors | Function |
---|---|
mr-1 | targets the heading text on top beside the logo |
text-xs | targets the reply status text below the heading text |
custom_chat_header | Ā targets the background section of the headingĀ |
message-content | targets the text in conversation bubbles on the chatbot side |
chat-bubble | targets the text in conversation bubbles on the user side |
bot-widget-bubble | targets the chat bubble showing up on the bottom corner of the website |
text-slate-700 | targets the divider line and text that shows the date section of a conversation |
agent | targets the reply box from chatbot and live chat agents side of the conversation |
user | targets the reply box from the userās side of the conversation |
chat-message--input | targets the box section where you type your message |
bg-white | targets the background behind the chatboxes |
button-wrap .icon-button[type="submit"] svg | targets the submit icon |
Advanced Section
Ā
There are many customizations you can do with the webchat button. Some are a bit more advanced hence why we are going to be putting them down in this section instead.Ā
Ā
Installing multiple widget types and different starting flows on your website
With the webchat widget, you are able to install as many types as you wish on any of your pages inside your domain.Ā
Ā
Once you generated your desired widget type you can add a ref parameter to it. This allows you to start any flow of your preference with ease.
Ā
Create your ref URL
The way to do this is you can create any kind of ref URL inside the tool section;
Ā
Once you have created your ref URL you will have also connected it to your flow of preference. You can now use this ref URL by copying the ref parameter;
Ā
Ā Adding the ref parameter to your webchat installation code.Ā
Now that you have created your ref URL and copied the ref parameter it is time to add it to your webchat installation script.Ā
Ā
The way to do that is very easy;
Ā
If you have pasted in your webchat installation script the only thing you will need to do is by adding a question mark after .js, and add ref=, then add your copied ref parameter from the ref URL you created.
Ā
This will override the existing default starting flow and with this, you will be able to start your preferred flow instead.Ā
Ā
It opens up the way to use the same widget on different pages but with different starting flows.Ā
Ā
Use cases for this could be;
A landing page requires a specified sales flow
Customer support starts with a support flowĀ
Ā
But it gets even better!
Ā
Since you are using the ref URL parameter you are also able to add payloads to the widget as well.Ā
Ā
Payloads help you add specific pieces of data directly to the userās custom fields without the user even needing to give them to you. Example could be you want to know from which section of the website the user is coming from. Letās say he or she came from a landing page, you can then add this inside the widget as a payload to be saved to the user profile.Ā
Ā
Adding payloads to the webchat widget
In order to add a payload we need to return to the ref URL we used inside the webchat widget.Ā
Ā
Once there you can add up to 10 payloads to be used directly to the user's profile;
Ā
Letās take the example of adding the source the user came from, so the page on your website.Ā
Ā
On the first payload, line letās add the custom user field ātraffic_sourceā
Ā
Once done do not forget to press the Save button in the top right corner.Ā
Ā
When returning to your webchat installation script you can now add your preferred data to the ref parameter.
Ā
Letās say you have added this widget to your landing page. The traffic source can then be the name of your landing page or whatever works for you. It could then look something like this;
Ā
To add a payload you go with 2 Hyphens and then your value so in this case, it is ā--ebook-7figure-incomeā
Ā
Once a visitor interacts with this webchat widget on that page you will see that this value will then be added to their user profile;
Ā
As mentioned you will be able to save up to 10 different kinds of payloads this way.Ā
Pre-fill user data for the web chat user
If you already have the userās information like name or email, etc, you can pass that information directly to the web chat user.
Also you can pass extra parameters directly to the web chat userās user custom field.
Passing user information
You can use add this script to pass the user information to the web chat user.
<script>
window.addEventListener("chatbot:ready", function () {
window.$chatbot.setUser("XXXX", {
email: "YYYYYY",
name: "ZZZZ",
avatar_url: "https://res.cloudinary.com/gmdigital/image/upload/v1618453871/profile/3636079236501557.jpg"
});
});
</script>
You will need to make sure the userID XXXX is unique for each user.
Ā
Passing extra parameters to web chat user
If you want to pass the extra parameters to the web chat user, you can using the code below
Please make sure the name of the user custom field is the same name you have in your UChat Chatbot.
In the example above, the name āproviderā & āissue_titleā, we have the exact same name in our chatbot.
You can watch the video tutorial here to learn more