Setting up the Web Widget channel

Overview

Create and configure a Web Widget channel in the Unifonic Console. You can customize its appearance and behavior, connect it to a chatbot, and add it to a website or mobile application.

Before you begin

  • Confirm that you can access the Unifonic Console.
  • Identify the website URL on which you want to display the widget.
  • Prepare an existing chatbot, or create one by following the Chatbot User Guide.

Create a Web Widget channel

  1. In the Unifonic Console, go to Channels > Web Widget.

    Web Widget page in the Unifonic Console

  2. Create a Web Widget channel and enter a name for the widget.

    Entering a name for a new Web Widget channel

  3. Select Next to open the settings page.

Customize the widget appearance

Configure the following appearance settings:

  • Web Widget main icon
  • Main title
  • Header icon
  • Bot icon
  • Guide text message
  • Font color and primary color
  • Window position
  • Visibility of the Powered by Unifonic branding

Main Web Widget appearance settings

Web Widget color and branding settings

Web Widget position and display settings

Configure system settings

Configure the following system settings:

  • Website URL: The website on which you will host the widget.
  • Code snippet: The JavaScript code that runs the widget on your web page.
  • Sound settings: The sound played when a new message is received.
Web Widget system settings
Warning

No code snippet?

The code snippet becomes available only after you connect the Web Widget to a chatbot.

Associate an existing chatbot or create one by following the Chatbot User Guide.

After you connect the Web Widget to a chatbot, the code snippet appears in the system settings.

Code snippet displayed after connecting a Web Widget to a chatbot

Configure user behavior

In User Management, configure the widget and bot behavior for new and returning users.

New users

Select one of the following behaviors for users who open the web page for the first time:

  • Automatically open the chatbot.
  • Show a pop-up message.
  • Do nothing.

Configure the settings associated with the selected behavior.

Web Widget behavior settings for new users

Returning users

Configure a different behavior for returning users. You can also define whether the system treats a user as new or returning based on the time of the user's last visit.

Web Widget behavior settings for returning users

Configure pop-up messages

Use a pop-up message to make the Web Widget more visible and encourage website visitors to interact with it.

Warning

Can't add a pop-up message?

This feature becomes available only after you connect the Web Widget to a chatbot.

Associate an existing chatbot or create one by following the Chatbot User Guide.

After connecting the Web Widget to a chatbot, configure the required pop-up message.

Pop-up message settings for a Web Widget

Add the widget to a web or mobile application

Add the widget to a website

  1. Copy the code snippet from the Web Widget system settings.
  2. Add the snippet to every web page on which you want the widget to appear.
  3. Open the website URL specified in the settings.
  4. Verify that the widget is visible.

Add the widget to a mobile application

Use a WebView component in your mobile application to open the web page that displays the widget. The following Android example enables JavaScript and opens the required page:

java
WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
myWebView.loadUrl("https://unifonic-chatbot.netlify.app/full-screen.html");

Expected result

The Web Widget uses the configured appearance and user behavior, is connected to a chatbot, and is available on the selected website or mobile application.