Documentation · Chapter 06

Website chat: embed an AI chat widget on your website

Kolio website chat is an AI agent you embed on your own website with a single line of code. It answers visitors from your knowledge base, books appointments and records contacts and tasks according to your instructions, and every conversation lands in Conversations. This chapter covers activation and settings, embedding, language, attachments and limits.

By the Kolio teamupdated 10 min read10 min

What is Kolio website chat?

Kolio website chat is a chat AI agent for your website: a button in the bottom corner that opens a chat window where visitors talk to the same AI agent as on the phone — with the same instructions, the same knowledge base and the same tools.

The chat runs in a frame (iframe) added to your page by a small script, kolio-widget.js. The conversation itself goes to the Kolio server; your website is only the host — so it does not depend on the system your site is built with.

In the chat, the agent can look up free slots and book an appointment, create a contact and a task for your team, and search the knowledge base. It does not issue quotes and does not guess: anything not covered by the instructions or the knowledge base is handed to your team as a task.

  • Where to set it up: AI agents → Web simulator — a live preview at the top, settings and embed code below.
  • Who can see it: the preview requires the asistenti permission, the settings and embed code require nastavitve.
  • Where conversations go: to Conversations with the type Web, alongside calls and email.

How do you enable and configure the website chat?

You enable the website chat on the Web simulator page in the Agent settings section; until the The agent is enabled on the website box is checked, the widget does not appear on your site even if the code is already embedded.

  1. Open the Web simulator

    In the menu choose AI agents → Web simulator. If you have the nastavitve permission, the Agent settings section is below the preview.

    AI agents → Web simulator
  2. Enable the agent

    In the Activation card check The agent is enabled on the website. The state is also shown in the page header as the Enabled / Disabled badge.

  3. Set the appearance

    In the Appearance card choose the Accent color (the button and the agent's messages), the Position (Bottom right or Bottom left) and the button Icon.

  4. Write the window content

    In the Content card enter the Window title (for example the agent's name) and the Welcome message — the first message a visitor sees when the window opens. Both fields are optional.

  5. Save

    Click Save. On the first save Kolio generates the public chat key and shows the Embed code card above the form.

Website chat settings fields (AI agents → Web simulator → Agent settings)
FieldOptionsDefaultWhat it controls
The agent is enabled on the websitecheckboxoffWhether the widget renders on your site at all. A disabled agent shows nothing, not even the button.
Accent colorcolor as #rrggbb#3257d6Color of the button and the agent's bubbles.
PositionBottom right · Bottom leftBottom rightPage corner where the button sits (16 px from the edge).
IconChat bubble · Circles · HeadsetChat bubbleIcon on the button while the window is closed.
Window titletextAgentTitle in the header of the chat window.
Welcome messagetextHello! How can I help you?The agent's first message when the window opens.

The agent's name, tone and answering rules are not chat settings — they come from the agent instructions (AI agents → Agent instructions) and apply to every channel.

How do you embed the chat on your website?

Embedding Kolio website chat means one line of HTML: a script tag pointing to kolio-widget.js with a data-key attribute carrying the public key of your chat. Kolio shows it in the Embed code card; the Copy button copies it to the clipboard.

<script src="https://kolio.si/kolio-widget.js" data-key="YOUR_KEY" defer></script>
Kolio replaces YOUR_KEY with the public key of your chat — always copy the code from the app.
  1. Copy the code

    On the Web simulator page, in the Embed code card, click Copy. The card appears only after the settings have been saved once.

    AI agents → Web simulator → Embed code
  2. Paste it into the page HTML

    Paste the code into the head or right before the closing body tag of every page where you want the chat. If your site has a shared template (header or footer), insert it there once — it then applies to all pages.

  3. In content management systems

    In WordPress, Shopify and similar systems, insert the code into a theme file or into the field for additional header or footer scripts that your system provides — Kolio needs no plugin. For the exact location follow your system's documentation.

  4. Check it on the site

    Open your website. Once the page has loaded and the browser is idle, the agent button appears in the chosen corner. If it does not, check that the agent is Enabled in Kolio and that data-key is unchanged.

Opening the chat from your own page

The script creates a window.kolioChat object on the page with the methods open() and close(), so you can open the chat from your own button or link. The optional argument open(text) puts text into the input field but does not send it — the visitor can edit and send it themselves.

<button onclick="window.kolioChat.open('Hello, I would like to book an appointment for …')">Ask us</button>

<!-- closing -->
<button onclick="window.kolioChat.close()">Close chat</button>
Calls made before the frame has loaded are queued and executed once the chat is ready.

The script is marked defer, and the chat frame is created only after the load event and when the browser is idle (requestIdleCallback). It never hides page content or blocks rendering, so it does not affect page speed measurements.

Which language does the widget use?

The chat interface language (buttons, labels, error messages) is Slovenian or English and is resolved in this order: the data-lang attribute on the embed code, then the lang attribute on your page's html tag, and finally the default language of your account.

<script src="https://kolio.si/kolio-widget.js" data-key="YOUR_KEY" data-lang="en" defer></script>
Allowed values are sl and en; the script ignores other values and falls back to the next source.
  • Multilingual site: if every language version has a correct html lang (for example sl and en), you do not need data-lang — the widget follows the page.
  • The language of the agent's replies does not depend on this setting: the agent replies in the language the visitor writes in, following the agent instructions.
  • Color scheme: the script reads your page's color-scheme and renders the frame in the light or dark variant to match the site.

How do you test the chat before publishing it?

The preview on the Web simulator page is the same chat as on your website: the agent really answers, uses your instructions and knowledge base, but the conversation is not recorded in Conversations because it is flagged as a preview.

  • The preview appears only while the agent is Enabled; otherwise the page says there is no preview and points you to the settings below.
  • Click the button in the bottom corner of the mock page to open the conversation — exactly as a visitor would.
  • Changes to the settings (color, position, greeting) show up in the preview after saving, when the page reloads.
  • Attachments added in the preview are not stored.

The preview flag is deliberately soft: at most, a visitor can prevent their own conversation from being stored. The daily message quota (see Limits and quotas) applies in the preview as well.

Which attachments can visitors send?

A visitor can attach images and PDF files of up to 4 MB in Kolio website chat, at most 3 attachments per conversation; every file goes through the same checks as attachments from team members (type detected from the file contents, not the name; images re-encoded, PDFs without scripts).

Attachment limits in website chat
LimitValueNote
Allowed typesPNG, JPEG, WebP, GIF, PDFThe type is detected from the file contents; HTML, SVG, ZIP and office documents are rejected.
File sizeup to 4 MBThe visitor sees the error that the file is too large (4 MB maximum).
Attachments per conversation3 at mostError: at most 3 attachments per conversation.
Uploads per hour10 per IP address · 200 per chatAbuse protection; the visitor sees a rate-limit message.

The agent sees only the file name, type and size of an attachment — it does not read the contents of the image or PDF. The file is stored as an attachment of the conversation and your team opens it in Conversations; neither the visitor nor the agent ever receives an external file address.

Limits and quotas

Kolio website chat is public and requires no sign-in, so it is protected by a daily quota of 300 messages per combination of chat and visitor IP address and by a hidden anti-bot field; both protections apply to messages and to attachment uploads.

Website chat quotas and limits
WhatLimitWhat the visitor sees
Messages per day300 per chat and IP address (UTC day)“You have reached the message limit. Please try again later.”
Attachment uploads10 per hour per IP address · 200 per hour per chatA rate-limit message on the attachment.
Attachment size4 MBFile too large (4 MB maximum).
Attachments per conversation3At most 3 attachments per conversation.
Disabled agent—Nothing — the widget does not render.

The 300-message quota is counted per visitor (IP address), not per account — many concurrent visitors do not exhaust it.

  • Credit usage: every agent reply consumes AI credits of your plan just like a call or an email draft; track it under Usage (Usage and billing chapter).
  • One chat per account: each account has exactly one website chat with one key; the same code can be embedded on several websites.
  • Rotating the key: Generate new key (Settings permission) creates a new public key the same way as on the first save; the old one stops working immediately and chats on pages with the old code will not start until you update the code.
  • The key cannot be rotated in the app. To stop an existing embed, disable the agent.

Where do chat conversations go?

Every visitor conversation is recorded in Conversations with the type Web — in the same list as phone calls and email — with the badges Contact, Appointment or Task next to it whenever the agent created one of those during the conversation.

Kolio Conversations — a shared list of phone calls, website chats and email with a conversation-type filter and the Contact, Appointment and Task badges
Conversations: the “Conversation type” filter → “Web” shows website chats only.
  • Filtering: in Conversations, under Conversation type, choose Web; the search field also searches message contents.
  • Contact: if the agent records the visitor's name and details with the ustvari_kontakt tool, the conversation is linked to a contact in the CRM and visible on their card.
  • Task: a question the agent cannot answer, or a request for a quote, becomes a task for your team (ustvari_nalogo) in CRM → Tasks.
  • Appointment: a booking made in the chat appears in CRM → Calendar like any other appointment (Calendar and services).
  • Chat from inside the Kolio app: for a chat a visitor starts via Help inside the app, the signed-in user is recorded as well — this applies only to Kolio's own account.

A visitor's conversation stays open while the chat window is open; reloading the page starts a new conversation. Your team therefore sees the history in Conversations, the visitor does not.

FAQ

Frequently asked questions

How do I embed the Kolio chat on my website?

Kolio shows the embed code on the AI agents → Web simulator page in the Embed code card: a single script tag with a data-key attribute. Paste it into the head or before the closing body tag of your site; once the agent is enabled, the button appears automatically.

Does the Kolio chat work on WordPress or Shopify?

The Kolio chat is a plain script with no plugin, so it works on any system that lets you add HTML to the theme or to a field for extra header or footer scripts — including WordPress, Shopify and hand-built sites.

How do I set the language of the Kolio chat?

The Kolio widget takes its language from the data-lang attribute on the embed code (sl or en), otherwise from the lang attribute of the html tag, otherwise from the account's default language. The agent itself replies in the visitor's language.

How many messages can a visitor send in the Kolio chat?

Kolio allows 300 messages per day per combination of chat and visitor IP address, and at most 3 attachments of up to 4 MB per conversation; once the quota is exceeded the visitor sees a message that the limit has been reached.

Are preview conversations stored in Kolio?

Conversations from the preview on the Web simulator page are not recorded in Kolio Conversations, but the agent's tools (booking an appointment, creating a contact or a task) do execute for real.

Can't find the answer?

Write to us or open the chat in the app — the Help button at the bottom of the menu hands the conversation to the Kolio team.

We reply during working hours, usually the same day.

Related