Chatlaye's new widget with a more modern feel and optimized mobile performance. Below you can find out all about it!
Create your Web widget
To create a web channel with the new widget:
Navigate to the Channel page on your bot.
Press the Add channel button in the top right.
Look for 'Web'.
Select Web.
Click on Next.
Create your Web widget from the Channels tab.
Make sure your widget is created on the correct version of your bot, be it DRAFT or LIVE.
Customize your Web widget
The first two tabs Basics and Appearance will allow you to change the settings and looks of your bot. That way you can ensure the branding of your new widget corresponds to the one your company uses.
Basics
On the 'Basics' page you can make a number of changes:
The Title and Subtitle of the widget will appear at the top of the widget. Make sure to leave them empty if you don't want any title to appear.
Enable text input is on by default and will allow your customer to type text towards your bot. Make sure to turn this off if you want your bot to be used solely as a click bot.
Enable audio input allows the user to send voice snippets to the bot using the record button at the bottom right corner of the widget.
Enable file upload will make the paperclip to the right of the input-box appear. This will allow your customer to send files to your chatbot.
Enable sound notifications activates audible alerts for your bot's message replies.
Set your Web widget Basic settings.
Appearance
On the Appearance page you can make a number of changes:
Change the position of your widget to Bottom right or Bottom left.
Customize your Brand color, Conversation color and Action color.
Launcher is the image to show in the launcher button.
Header logo is the image shown in the header.
Bot avatar is the default image for the bot avatar.
Agent avatar is to show as the default agent avatar.
Change your Web widget's style under the Appearance tab.
Make sure that you click on Save after changing your bot's appearance.
Variable size limit
The WebV2 widget has size limitation of 65536 bytes (= 64 KiB), so the total size of all variables cannot exceed this hard limit. Exceeding it will cause messages to not show up on the emulator (Test your bot feature, which is based on WebV2) and on your web channel.
Preview your Web widget
To preview your Web widget after styling it:
Click Save.
Press Preview.
Your bot will open on a CodePen page where you can test it.
Preview your bot in CodePen.
Add your Web widget to your website
After having configured your widget you can start embedding it on your website.
To embed your website widget:
Click on the Installation tab.
You'll see an HTML script under Embed your widget. Copy and paste this script in the header section of every HTML page of your website where you want it to appear.
Additionally, place the provided snippets at the end of the body section on each HTML page of your website.
Make sure that the 1st and 2nd snippets are pasted to your page.
Install your Web widget to your web page using the Installations tab.
Set to a specific language
To set the language in an iframe, add the desired language as a query parameter to the iframe URL. This allows you to force your widget to display in that specific language.
For example:
Note that you can also change the bot language by using the HTML.
💬 Give feedback
Please let us know what you think of the new Web widget here.