Skip to content
HTML Templates For Developers

Documentation

Botline — Chatbot Interface Template

Version 1.0.0 · Vanilla HTML · 14 files · 58 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 14 files:

  • LICENSE.txt1.7 KB
  • README.md2.6 KB
  • assets/css/style.css12 KB
  • assets/fonts/onest-LICENSE.txt4.3 KB
  • assets/fonts/onest-latin-wght-normal.woff233 KB
  • assets/images/favicon.svg469 B
  • assets/images/lamp-arc.svg485 B
  • assets/images/lamp-dome.svg477 B
  • assets/images/lamp-orbit.svg474 B
  • assets/images/lamp-pillar.svg492 B
  • assets/js/main.js14 KB
  • documentation/index.html10 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html8.9 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --white#ffffff
  • --ink#111827
  • --ink-2#374151
  • --muted#4b5563
  • --line#e5e7eb
  • --soft#f9fafb
  • --violet#7C3AED
  • --violet-d#6D28D9
  • --violet-l#f5f3ff

Interactive features

Connecting a backend

Replace BOTLINE.adapter in assets/js/main.js with a function returning a Promise of message objects ({type:'text'|'card'|'carousel'|'quick'}). The documentation block at the top of the file lists the shapes.

Scripted flows

Edit the scripted() function and the LAMPS and MENU data to change topics, cards and quick replies.

Feedback

The vote handlers in feedbackRow() carry a comment marking where to post ratings to your analytics.

Panel behaviour

Desktop width is set in .bl__panel and .bl--wide in the CSS; the full-screen breakpoint is 640px.

Customisation notes

Brand colour

Change --violet, --violet-d and --violet-l in :root; the launcher, user bubbles, chips and cards follow.

Typing delay

TYPING_MS at the top of main.js sets how long the dots show before each bot message.

Using the widget elsewhere

Copy the #botline block, the widget CSS sections 4 and 5 and main.js to another page; the sample storefront around it is optional.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • All bot replies are scripted keyword matches, not an AI
  • Order status and product details are invented sample data
  • Feedback votes are not stored or sent anywhere
  • Nothing is sent to a server until you connect BOTLINE.adapter

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Onest typeface — OFL-1.1 (assets/fonts/onest-LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.