ChatbotAssistant

Configuration and deployment of the chatbot widget

This guide will walk you through the process of configuring and deploying a chatbot widget on your website. The chatbot widget will allow your users to easily communicate with the chatbot directly from your website, without having to navigate to external platforms.

Important prerequisites: To deploy the chatbot widget, you need to have access to edit the HTML code of your website and an active account on the ChatbotAssistant platform with a chatbot already created.
0

Deployment process overview

Deploying a chatbot widget on your website is a process that consists of several main stages:

  1. Creating a chatbot on the ChatbotAssistant platform - creating and configuring the chatbot that will handle communication with users.
  2. Widget appearance configuration - customizing the colors, position, animations, and other visual aspects of the widget.
  3. Generating the embed code - obtaining the HTML/JavaScript code that needs to be placed on the website.
  4. Embedding the code on the website - adding the generated code to the website's HTML code.
  5. Testing and verification - checking the widget works correctly on the website.
Time required: The entire deployment process usually takes 10 to 30 minutes, depending on your experience with editing HTML code. The following guide will walk you step by step through all the stages.
Tip: Before starting the deployment process, make sure you have access to:
  • A ChatbotAssistant platform account with an active subscription
  • The ability to edit the HTML code of your website (e.g., access to the admin panel, FTP, or content management system)
  • Basic knowledge of HTML code structure (optional)
1

Chatbot configuration on ChatbotAssistant platform

In the first step, you need to create and configure a new chatbot on the ChatbotAssistant platform.

Detailed instructions:

  1. Log in to your account on the ChatbotAssistant platform.
  2. Go to the Dashboard section in the navigation panel.
  3. Click the Create a new chatbot button.
  4. Select the Website widget option as the platform for the chatbot.
  5. Fill in the chatbot creation form by entering the following details:
    • Chatbot name - enter the chatbot name that users will see, e.g. Customer Support
    • Description (optional) - will help you find the right chatbot
    • Company information - enter detailed information about your company, products, services, prices, opening hours, etc. The more information you provide, the better the chatbot will answer customer questions.
    • Allowed domains - enter your website domain, e.g. example.com (without https://). If you have more than one domain or subdomains, enter all of them separated by commas. (NOT RECOMMENDED) Leave the field empty to allow all domains.
  6. Click the Create Chatbot button to save the configuration.
Chatbot type selection
Chatbot type selection screen with the "Website widget" option highlighted
Chatbot configuration form
Basic chatbot configuration form with name and description fields
Tip: Providing complete and detailed company information is a key factor in determining whether the customer will receive a correct and detailed answer to their question.
Allowed domains configuration
Configuration of allowed domains on which the chatbot can operate
Tip: Specifying the website domains on which the chatbot will operate is an important security measure against unauthorized use of the chatbot by other websites.
2

Widget appearance configuration

After creating the chatbot, you can proceed to configure the widget appearance. The ChatbotAssistant platform offers a user-friendly interface for customizing the widget appearance without any programming knowledge.

Accessing the widget editor:

  1. In the Dashboard panel, select the chatbot you created from the list.
  2. Go to the Options section and then Embed code.
  3. You will see the widget editor interface divided into sections:
    • Embed code for the website - the generated script with configuration attributes and a code editor allowing you to make changes directly in the embed code.
    • Embedding instructions - detailed installation steps and helpful tips.
    • Widget appearance editor - visual customization panel with tabs:
      • Appearance - color selection, position and size, icon, and corner rounding
      • Animations - configuration of widget opening and closing effects and typing indicator
      • Content - editing the title, welcome message, and placeholder
      • Advanced - additional options and chat window size settings
    • Best practices - recommendations to help optimize the chatbot's performance and appearance:
Main widget editor interface
Widget editor interface view: configuration panel with tabs on the left, code preview and instructions on the right
Active widget preview
Active chatbot widget preview in the bottom-right corner (or according to the selected position)

Appearance configuration ("Appearance" tab):

In the "Appearance" tab you can customize the following parameters:

Colors

Customize the widget colors to match your website's visual identity:

  • Primary color - the main widget color, used for buttons, headers, and highlights.
  • Secondary color - the complementary color, used for secondary elements.
  • Theme - choose between light or dark.
Widget color configuration
Color configuration panel with color and theme selection
Widget appearance

Configure the position and dimensions of the widget button:

  • Widget position - choose one of the four screen corners where the chatbot button will appear.
  • Button size - adjust the size of the chatbot launch button (from 40 to 90 pixels).
  • Corner rounding - choose the corner rounding style (small, standard, large).
Widget position configuration
Widget position and size configuration panel
Icon

Select an icon for the chatbot button:

  • Icon type - choose one of the available icons: Chat, Message, Headset, Support, or Robot.
  • Icon size - specify whether the icon should be small, standard, or large relative to the button.
Widget icon selection panel
Widget icon selection panel with available options

Animation configuration ("Animations" tab):

In the "Animations" tab you can configure the widget's visual effects:

Animations
  • Animation type - choose how the chat window appears and disappears: Fade, Scale, Slide, Bounce, or no animation.
  • Animation speed - set the animation duration (from 150 to 1000 milliseconds).
Animation configuration panel
Animation type and speed configuration panel
Typing indicator
  • Typing indicator style - choose the visualization of chatbot activity while generating a response: Dots, Pulsing, Bouncing, or Bars.
Typing indicator configuration panel
Typing indicator style configuration panel

Content configuration ("Content" tab):

In the "Content" tab you can customize the text displayed in the widget:

Message content
  • Header title - the name displayed in the chat window header.
  • Welcome message - the automatic message displayed when the chatbot is launched.
  • Message field placeholder - the hint text in the message input field.
Widget content configuration panel
Widget text configuration panel: title, welcome message, etc.

Advanced settings ("Advanced" tab):

In the "Advanced" tab you will find additional configuration options:

Behavior
  • Automatically open the chatbot after 30 seconds - enable this option to have the chatbot automatically open after a set time.
  • Sound effects - enable notification sounds for new messages.
Widget behavior configuration panel
Chatbot behavior configuration panel with auto-open and sound effect options
Dimensions
  • Chat window width - the chat window width in pixels (from 280 to 500 pixels).
  • Chat window height - the chat window height in pixels (from 400 to 700 pixels).
Widget dimensions configuration panel
Chat window width and height configuration panel
Live preview: During configuration, you can observe changes in real time, as the chatbot widget is active in the corner of the screen. Click the chatbot icon to test its functionality.

Widget code editing:

For advanced users, the platform offers the ability to directly edit the widget code:

  1. Click the Edit code button above the embed code field.
  2. Make changes directly in the code.
  3. Click Apply changes to save the modifications.
  4. If you want to cancel editing, click Cancel editing.
Widget code editing mode
Widget code editing interface with active editing mode and visible action buttons
Warning: Editing the widget code requires basic knowledge of HTML and JavaScript. Incorrect changes may cause the widget to malfunction.
Auto-save: All changes made in the configuration are automatically saved in the browser. You can restore default settings at any time using the "Reset settings" button.
3

Embedding code on the website

After completing the widget configuration, the final step is to embed the generated code on your website.

Copying the embed code:

  1. In the widget editor, find the embed code field.
  2. Click the Copy button in the upper-right corner of the code field.
  3. You will see a confirmation message that the code has been copied to the clipboard.

Embedding the code on the website:

The method of embedding the code on the website depends on the platform your website runs on:

HTML (direct editing)
  1. Open your website's HTML file in a code editor.
  2. Find the closing </body> tag (just before the end of the document).
  3. Paste the copied code directly before this tag.
  4. Save the file and reload the page in the browser.
<!-- Rest of your website's HTML code --> <script src="https://example.com/static/js/chat-widget.js" data-chatbot-id="abcd1234" data-api-url="https://example.com" data-position="bottom-right" data-color="#4361ee" data-secondary-color="#3a56d4" data-theme="light" ... other configuration attributes ...> </script> <div id="ai-chatbot-widget"></div> </body> </html>
WordPress

For WordPress-based websites, we offer a dedicated plugin that will add the chatbot code to your website.

You can find detailed installation and configuration instructions in our WordPress guide.

Wix
  1. Log in to the Wix panel and select your website.
  2. Click "Settings" in the side menu.
  3. Select "Site customization" > "Custom code".
  4. Click the "+ Add custom code" button.
  5. Give the code a name (e.g. "Chatbot Widget").
  6. Paste the copied code into the text field.
  7. Select the "Load in footer" option and check "Apply to all pages".
  8. Click "Apply", then "Save".
Shopify
  1. Log in to the Shopify admin panel.
  2. Go to "Online Store" > "Themes".
  3. Click the "Actions" button next to the active theme and select "Edit code".
  4. Find the theme.liquid file or another appropriate template file.
  5. Paste the copied code before the </body> tag.
  6. Click "Save" and refresh the page.
Google Tag Manager
  1. Log in to your Google Tag Manager account.
  2. Select the appropriate container.
  3. Click "Tags" in the navigation menu, then "New".
  4. Give the tag a name (e.g. "ChatbotAssistant Widget").
  5. In the tag configuration, select "Custom HTML Tag".
  6. Paste the copied code into the text field.
  7. In the "Triggering" section, select or create an "All Pages" trigger.
  8. Save the tag and publish the container changes.

Deployment verification:

  1. Open your website in a browser (preferably in incognito mode or a new tab).
  2. Check that the chatbot widget is visible in the appropriate corner of the page.
  3. Click the chatbot icon to make sure the chat window opens correctly.
  4. Send a test message to verify that communication with the chatbot works correctly.
  5. Check the widget's operation on different devices (computer, tablet, phone) and in different browsers.
Browser cache: If you do not see the widget after deployment, it may be due to the browser cache. Try clearing the browser cache or opening the page in incognito mode.
Testing on local pages: If you are testing the widget on a local server (e.g. localhost), make sure that this address has been added to the allowed domains list in the chatbot configuration.

Troubleshooting:

Widget is not visible

If the widget does not appear on the website, check:

  • Whether the code was correctly pasted before the </body> tag.
  • Whether your website's domain is on the allowed domains list in the chatbot configuration.
  • Whether there are no errors in the browser console (F12) related to loading the widget script.
  • Whether there are no conflicts with other scripts on the website (e.g., other chatbots, ad blockers).
  • Whether the chatbot ID in the code is correct.
Widget appears but does not work correctly

If the widget is visible but does not work correctly:

  • Check that the API address in the code is correct (data-api-url attribute).
  • Make sure the chatbot is active on the ChatbotAssistant platform.
  • Check that there are no network connection issues.
  • Verify that there are no widget-related errors in the browser console.
  • Try clearing the browser cache and cookies.
Widget styling issues

If the widget appearance does not match the configuration:

  • Make sure that the configuration changes were saved correctly.
  • Check that the embed code on the website contains all configuration attributes.
  • Verify that there are no CSS styles on the website that override the widget styles.
  • Try resetting the widget settings to default values, then re-customize the appearance.
4

Rate Limiting

Rate limiting is a mechanism that restricts the number of messages a user can send to the chatbot within a specified time period. This protects the system from excessive load and ensures fair resource usage.

How Rate Limiting works:

  • Per-user limit: Each user has their own limit (not shared with others)
  • Time window: 60 seconds
  • Automatic reset: The counter resets every minute
  • Configurable limit: Each user can have a different limit set by the administrator

What this means for users:

When a user reaches their message limit within a minute, the chatbot will display a message informing them to wait before sending the next message. After one minute has passed since the first message in the current time window, the counter automatically resets.

Rate limiting and service quality: Rate limiting does not affect the quality of user service during normal usage. Standard limits are set at a level that allows natural conversations, while protecting against automated attacks or excessive system usage.

Increasing rate limits:

If the standard rate limits are not sufficient for your use case (e.g., for high-traffic chatbots or specialized applications), you can request an increase.

How to increase limits: To increase the rate limits for your chatbot, contact the ChatbotAssistant site administration. In your message, describe your use case, expected traffic, and justification for higher limits.