14 days freeStart now
Docs

Web chat

Design the chat for your website in Widget Studio, publish it, install it with one line of code and check that it answers.

Where
AI Agent → Channels → Web Widget → Widget Studio
Plan
All plans
Who
Owners and admins.

The web chat is a chat window on your website, answered by the AI agent. You design it in Widget Studio. It does not count toward your plan's channel limit.

Design

Style and content in Widget Studio.

Publish

Needs your privacy policy address.

Install

Paste one line before </body>.

Live

Changes go live with Save live changes.

From design to live chat
Widget Studio, with the live preview
Widget Studio, with the live preview
  1. The tabs Style, Content and Install.
  2. Widget language: only the chat's fixed texts.
  3. Agent Display Name, then the avatar and the logo.
  4. The live preview, with Home and Chat.
  5. Save live changes and Unpublish from websites.

Publish the chat on your website

1

Design it

In the Style tab, set the color, the launcher and the position.

2

Write its texts

In the Content tab, name the agent, add its picture and your logo, write the greeting and the welcome message, add quick actions and fill in Privacy policy URL.

3

Publish

Press Publish widget. A window shows your installation code.

4

Install the code

Press Copy Code and paste the line before the closing </body> tag of every page where the chat should appear.

5

Check it works

Open your website in a private window and write a question. The conversation appears in Smart Inbox with the channel Web Widget.

Privacy policy URL is required to publish. Without it, Publish widget does not work.

Style options

OptionWhat it does
Brand ColorThe main color of the chat.
LauncherThe button that opens the chat: Bubble or Avatar.
PositionWhere the launcher sits on the page: Left or Right.

Content options

OptionWhat it does
Widget languageAuto, Español or English. It changes the chat's fixed texts only. The agent always answers in the customer's language.
Agent Display NameThe name shown in the chat header.
Agent AvatarThe agent's picture.
Company LogoShown on the chat's home screen.
Home greetingSmall text above the headline of the chat's home screen. Saved exactly as you type it.
Header TextThe headline of the chat's home screen.
Welcome MessageThe agent's first message.
Website buttonWhat the button on your website offers, and its text. One button, several options, below, explains it.
Quick ActionsButtons on the home screen, up to 6. Each one has an icon, a label and a type: Send message or Open link. You can write each label in English and Spanish.
Suggested repliesShort replies the visitor can tap. Show suggested replies turns them on, Visible suggestions sets how many show. You set them for General conversations, Product pages and Cart or checkout.
Data protection noticeShown above the text box until the visitor writes: who they talk to, who is responsible for their data and where the policy is. The notice text is optional.
Remove Komplian brandingHides the "Created by Komplian" signature. Pro and Enterprise plans.

Images: JPG, PNG or WebP, up to 2 MB. You can also give the address of an image.

You can switch the data protection notice off. Then your website must tell visitors about the AI and how their data is used.

One button, several options

In Website button, on the Content tab, you choose what the button on your website offers, up to 6 options in your order. Your visitor picks one. The button does not need the chat to be published: a business with a calendar and WhatsApp installs it with the same code.

OptionWhat it does when the visitor picks it
ChatOpens the chat. Offered only while the web chat is published.
CalendarOpens one of your calendar links over the page, without leaving your website.
FormOpens one of your published forms over the page.
WhatsAppOpens a WhatsApp conversation with the number you enter, with its country prefix.
Instagram, Messenger, TelegramOpens a conversation with the account whose username you enter.
PhoneCalls the number you enter.
LinkOpens an address in a new tab.
  • With no options, the button opens the chat.
  • With one option, the button opens it directly and wears its icon and text.
  • With several, the button shows a menu with the options in your order.

The button carries a text. In Button text you write your own, up to 30 characters. Left empty it says "Contact us", or the option's text when there is only one.

Each option has a default text in the visitor's language. You can write your own on each one, up to 40 characters. Each channel wears its official logo. An unfinished option (no calendar chosen, an incomplete number) is not saved.

Save and publish

ButtonWhat it does
Save DraftSaves your changes without showing them on your website.
Publish widgetPuts the chat live for the first time.
Save live changesUpdates the chat already on your website at once.
HistoryShows what the widget was before each saved change: when, who and what changed. Restore goes back to that version; the one it replaces stays in the list, so it can be undone. The newest 20 are kept.
Unpublish from websitesRemoves the chat from every website where the code is installed. If the website button offers other options, it stays visible with them; to remove it, remove its options.

The installation code

The Install tab shows Installation Code after you publish. Before that, it asks you to publish first.

html
<script src="https://api.komplian.com/widget.js" data-widget-id="YOUR_WIDGET_ID" async></script>

Copy Code copies the line with your widget's ID already in it. To force the chat's language, add data-language="es" or data-language="en". For developers, see the JavaScript API.

If the chat does not appear, check that the widget is published and that the code is on the page you are looking at.

Limits against abuse

The agent answers every visitor within limits a person does not reach and a script does:

LimitHow much
Per conversation60 messages an hour
Per internet address150 messages an hour on your chat
Your whole chat5% of your plan's monthly credits an hour, never under 200: Starter 250, Growth 750, Pro 1,500

If your chat reaches its limit for the hour, it stops opening new chats for that hour and owners and admins get a notification. Customers already talking keep getting answers. This way an attack does not spend the month's credits.

Web chat · Komplian Docs