Website Chatbot

Website Chatbot

Video Tutorial

Website Chatbot

Watch on Tutorials page →

The website chatbot puts your AI Assistant on any website as a small chat bubble that visitors can open and talk to. You configure it entirely in QAnswer and then paste one snippet of code into your site.

Open the assistant, go to the Expose tab and select the Website chatbot card. The page that opens is a five-step installation guide; work through the steps from top to bottom.

Note
The Website chatbot card is only offered for assistants whose task type is Chat.

Step 1 — Customize

The first step is split in two: the Widget Settings card on the left holds the options, and the Widget Preview on the right shows the result live as you change them.

Step 1 of the installation guide, with Widget Settings on the left and a live Widget Preview on the right

The upper half of the settings card covers how the widget looks and behaves:

  • Widget titlethe heading shown at the top of the open widget. Left empty, the assistant's own name is used.
  • Initial messagethe greeting the assistant opens with before the visitor types anything.
  • ThemeAuto, Light or Dark. Auto follows the visitor's own system setting.
  • For the first visit, the widget will be…Minimized shows only the bubble; Open expands the chat straight away.
  • Position on the screenwhich corner the widget sits in — bottom-right, bottom-left, top-right or top-left.
  • Allow the export of conversationsadds a control that lets visitors download their conversation.

Scrolling further down the same card reveals the finer styling options:

The lower half of the Widget Settings card, showing position margin, accent colour and the CSS font property
  • Position marginthe X and Y distance in pixels between the widget and the edges of the screen — useful when the widget would otherwise cover something on your site.
  • Accent colorthe primary and secondary colours of the widget, so it can match your brand.
  • Show "Powered by" textclear the checkbox to remove the QAnswer credit from the bottom of the widget.
  • CSS "font" propertyan advanced escape hatch that lets you pass a raw CSS font declaration so the widget matches your site's typography.
Warning
These settings are shared by every widget integration of this assistant, including the third-party ones such as WordPress or Wix. Press Save in the corner of the Widget Settings card to keep your changes — the preview updates immediately, but nothing is stored until you save.

Step 2 — Test

Before touching your real site, you can see the widget on top of it. Enter the address of the page you want to try it on:

Step 2, Test, with the Simulate chip, a website URL field and the Copy and Open demo actions
  • Open demo opens that page in a new tab with your widget laid over it.
  • Copy copies the demo link, so you can send it to a colleague for review.
Note
This is a simulation for previewing only — nothing is installed on the site you enter, and the demo link is not a way to deploy the widget. Use the snippet from step 4 for the real thing.

Step 3 — Choose your access

A widget on a public website has to be reachable by people who are not signed in to QAnswer. This step decides who that is. There are two cards, and you use one or the other:

Step 3, Choose your access, with the Open Access and Protected Access cards side by side

Open Access

Makes the assistant publicly reachable, with no credentials of any kind:

  • Accessible to everyoneanyone who loads your website can use the widget. This is the usual choice for a public site.
  • Not accessiblenobody outside QAnswer can reach it. The widget will not work while this is selected.
Note
Other interfaces of the assistant also offer "Accessible to everyone that is logged in". That option is deliberately hidden for the widget, because visitors to your website are not signed in to QAnswer.

Protected Access

Instead of opening the assistant up, you can generate an API key that the integration sends with each request:

  • Give the key a name and press Generate key. Copy the key when it appears — it is your only chance to see it.
  • "Store API key in browser local storage only (advanced)" keeps the key out of the page source and in the visitor's browser storage instead.
Warning
Access is an assistant-level setting. Changing it here also changes it for the assistant's chat interface, search interface, REST API and every third-party integration — not just this widget.
Note
This step controls anonymous, public access only. To share the assistant with named users, teams or organisations, use the Share dialog in the assistant's top bar instead.

Step 4 — Export

The last required step gives you the code to paste into your website. Three flavours of the same integration are available; pick the one that fits how your site is built.

The Script snippet, a single script tag pointing at the QAnswer widget loader
  • Scripta single '<script>' tag that loads the widget from QAnswer. The simplest option, and the right one for almost every site.
  • Script Contentthe inline body of that script, for platforms that let you add JavaScript but not a script tag with a src attribute.
  • IFramean '<iframe>' embed, for environments where external scripts are blocked by a content security policy.
Note
Paste the snippet just before the closing '</body>' tag of every page the widget should appear on. In website editors such as Confluence, Wix or WordPress you may need to put it inside a "code block" or "HTML block" element. Until step 3 sets an access type or generates an API key, this step stays greyed out.

Step 5 — Customize Additional Data (optional)

Your website often knows things about the visitor that the assistant does not — who they are, which plan they are on, which page they are reading. Additional data lets you pass those through to the assistant as key/value pairs. Fill in a field name and an example value, then use the + button to add more rows.

Step 5, with a botName / Support Bot key-value pair and the resulting snippet above it

Adding a pair rewrites the snippet in step 4, so copy the code again after you change anything here. The example values you type are only there to build the snippet — replace them with real values from your own site when you paste it in.

Note
The injected fields can then be referenced from the assistant's instructions , for example to greet the visitor by name.