---
doc_version: "1.0.0"
last_updated: "2026-12-03T07:47:56.061Z"
title: "Tutorial: Add an AI Chatbot to a Scroll Sites Help Center (Confluence)"
description: "Build an AI chatbot that answers from a help center or documentation site published from Confluence with Scroll Sites. Covers indexing the site, product versions and variants, testing, adding the widget through the Scroll Sites theme, and turning unanswered questions into page fixes."
keywords: [Scroll Sites chatbot, Confluence help center chatbot, K15t Scroll Sites, documentation chatbot, Scroll Viewport, versioned documentation, tutorial, ChatbotIQ]
---

In this tutorial, you'll add an AI chatbot to a help center or documentation site that you publish from Confluence with [Scroll Sites](https://www.k15t.com/products/scroll-sites-for-confluence). By the end, visitors can ask a question on any page and get an answer taken from your documentation, with a link to the page it came from, and your writers can see which questions the documentation could not answer.

ChatbotIQ is a European platform that turns your help center, documentation, or website into an AI assistant. It answers only from your content, links to its sources, and says so when your content doesn't cover a question.

:::tip[Follow along in your own account]
[Start your free 14-day trial](https://app.chatbotiq.eu/register?plan=standard&intent=trial). No credit card needed, and the trial includes everything this tutorial uses. Prefer not to do it yourself? [We can prepare the assistant for you](https://chatbotiq.eu/#prepare).
:::

**Scenario:** Your team writes product documentation in Confluence and publishes it as a public help center with Scroll Sites, perhaps for several product versions. Customers search, don't find the page, and open a ticket. You want an assistant that answers from the published pages, and you want to know which questions the pages don't answer, so your writers can fix them.

**Time needed:** About 20 minutes. Indexing runs in the background.

**What you'll learn:**
- How to index a Scroll Sites site quickly and cleanly
- How product versions and variants are handled
- How to set up and test a documentation bot
- How to add the widget through the Scroll Sites theme, which accepts JavaScript only
- How to turn unanswered questions into a list of pages to fix

> **Internal wiki, not a public site?** If you want a bot for a Confluence wiki that people log in to, use the Confluence connector instead: see [Build a Knowledge Bot for Confluence](/tutorials/build-an-internal-knowledge-bot/). This tutorial is for the public site that Scroll Sites publishes.

> **Scroll Sites also has its own AI assistant.** K15t offers an [AI Assistant](https://help.k15t.com/scroll-sites/ai-assistant) for the Help Center theme. If answering visitors on one help center is all you need, try it first. ChatbotIQ is for teams that also want to:
> - see which questions the documentation could not answer, as a work queue for the people who own the pages
> - answer from more than this one site, such as your API reference, product website or PDF manuals, in the same assistant
> - offer the same assistant in your product, on your website, in Slack, or in AI tools like Claude and ChatGPT
> - choose its tone and model, and hand conversations over to your support team

---

## Why Scroll Sites works well

Scroll Sites publishes a [markdown version of each page](/reference/crawling-settings/#markdown-versions-of-your-pages) next to the page your visitors see. ChatbotIQ finds it on its own and reads that instead of the rendered page. Two things follow:

- **Clean content.** The assistant learns from the text your authors wrote, without menus, banners, or cookie notices mixed in.
- **Versions travel with the page.** Each page states its version and variant (for example 6.3, Cloud or Data Center) and when it was last changed. ChatbotIQ keeps these with the page, so the assistant knows which version each passage belongs to.

There is nothing to switch on for this. The one setting worth changing is Simple Mode, in Step 1.

---

## Step 1: Add your help center as a source

1. Go to **Knowledge Base** → **"+ Add Source"** → **Website**.
2. Enter the address of your site (e.g., `https://help.yourproduct.com`). To index one documentation space only, enter its address instead.
3. Under **Configuration mode**, choose **Manual**.
4. For **Discovery Mode**, keep **Sitemap Discovery**. Scroll Sites publishes a sitemap for the whole site, so discovery takes seconds.
5. Open **Advanced Options** → **Performance** and turn on **Simple Mode**. The page text comes from the markdown version, so loading every page in a browser adds nothing. The crawl is much faster with it on.
6. Click **Start Discovery**.

### Review what was found

7. Look through the discovered pages before you crawl. On a site with several versions, every version of a page is a separate page and counts toward your plan's page limit.
   - If customers only use the current version, deselect the older ones. Use **Path Filters** or the search box to select them in one go.
   - If customers run different versions, keep them. The assistant sees the version next to each passage.
8. Click **Start Crawling**.

> **Is your site restricted to logged-in visitors?** Open one of your pages in a private browser window. If you land on a login screen, the crawler will too, and nothing useful gets indexed. In that case, index the Confluence spaces behind the site with the [Confluence connector](/how-to/connect-confluence/).

---

## Step 2: Create the documentation bot

1. Go to **Bots** → **"Create Bot"**.
2. **Basic Info:** Name it (for example "Docs Assistant") and choose **Technical Documentation** as the bot type. It is tuned for precise, citation-rich answers.
3. **Sources:** Select the source from Step 1.
4. **Model:** GPT-6.1 Terra (the recommended default) suits most documentation. See [AI Models Compared](/explanation/ai-models-compared/) if your content is highly technical.
5. **Behavior:** Paste this template into **Base Prompt** and customize it:

```
You are the documentation assistant for [Product Name].

Guidelines:
- Give step-by-step instructions when the user asks how to do something
- If the user's product version or edition matters and they have not said which one they use, ask
- When you answer for a specific version, name it
```

> The personality only needs tone and focus. ChatbotIQ adds its own rules underneath: answer from your knowledge base, cite sources, and say when something is not covered.

6. Review the summary and click **Create Bot**. You land in the Playground.

---

## Step 3: Test with real questions

In the Playground, ask what your customers ask:

- **Common how-to questions.** Take five from recent support tickets. Do the answers match the documentation?
- **A version question.** Ask about a feature that differs between versions or between Cloud and Data Center, and name the one you mean. Check that the cited page is the right one.
- **The same question without a version.** The bot should ask which one you use, or say which version its answer applies to.
- **Something your docs don't cover.** The bot should say so, not guess.

Click **Debug** to open the RAG Debug panel and check that the retrieved passages are clean text from the right pages.

> **Two versions of a page that read almost the same** are hard to tell apart for any assistant. If answers mix them up, the usual fix is on the content side: say the version in the page text where behavior differs, or index only the versions customers actually use.

---

## Step 4: Add the widget to your Scroll Sites site

### Get the code

1. In the bot's **Settings** → **Advanced**, set **Privacy** to **Public**.
2. Under **Allowed Domains**, add your help center's domain so the bot can't be embedded elsewhere.
3. Switch to the **Deploy** tab, open **Website widget**, and scroll to **Advanced Options**. Copy the **JavaScript-only embed code**, not the HTML code at the top.

### Paste it into the theme

The Scroll Sites Help Center theme accepts JavaScript only, not HTML, which is why you need the JavaScript-only code. It looks like this, with your bot ID already filled in:

```js
window.__chatbotiq = {
  botId: 'YOUR-BOT-ID',
  domain: 'www.chatbotiq.eu',
  apiBase: 'https://app.chatbotiq.eu',
};

var s = document.createElement('script');
s.src = 'https://www.chatbotiq.eu/embedded.js';
s.async = true;
document.head.appendChild(s);
```

4. In Confluence, open your site in Scroll Sites and go to **Site Settings** → **Look and feel** → **Customize theme**.
5. Open the **Code** tab.
6. Paste the code into the **Custom JavaScript** editor. It runs on all pages after the page has loaded.
7. Click **Apply to preview** and check that the launcher appears in the preview.
8. Save your changes, close the editor, then click **Publish changes** in your site settings.

K15t describes this editor in [Inject Custom JavaScript](https://help.k15t.com/scroll-sites/inject-custom-javascript). The steps above are for the Help Center theme; other themes may differ.

### Check it

9. Open your help center with a hard refresh (Ctrl+Shift+R or Cmd+Shift+R). The launcher appears in the bottom-right corner on every page.
10. If it doesn't appear, open the browser console (F12 → Console) and look for `[ChatbotIQ]` messages, or see [Troubleshooting](/troubleshooting/).

To match the widget to your help center's colors, see [Match Your Widget to Your Brand](/tutorials/customize-your-widget/).

---

## Step 5: Keep it current

Documentation changes with every release. On the Standard plan and above, sources re-crawl automatically, and only pages that changed are indexed again. On other plans, refresh the source after you publish. See [Keep Content Up to Date](/how-to/refresh-and-maintain-sources/).

When you publish a new product version, its pages are new pages. Click **Update** on the source in **Knowledge Base** so they are found, and remove versions you no longer support.

---

## Step 6: See what your documentation is missing

Every question the assistant can't answer, and every answer that gets a thumbs-down, points at a page that is missing, outdated, or unclear. ChatbotIQ collects them under **Analytics** → **Doc issues**: one issue per problem, with the questions behind it and, when known, the page and section to change.

1. **Read the conversations in the first week.** They show what customers actually ask, in their own words.
2. **Give each part of the help center an owner.** In **Doc issues**, select **Areas**, add the address of each documentation space (for example `https://help.yourproduct.com/admin-guide/`), and choose the writer who owns it. New issues go to that person, who also gets them in a daily email.
3. **Fix the page in Confluence.** Once Scroll Sites has published the change, click **Update** on the source, or wait for the next scheduled re-crawl.
4. **Mark the issue fixed** and paste the page address. If customers keep asking about the topic, the issue reopens on its own.

Doc issues are included in the trial and on all paid plans. See [Work Through Doc Issues](/how-to/work-through-doc-issues/) for the details, and [Close the Documentation Feedback Loop](/how-to/close-the-documentation-feedback-loop/) to go from issue to edited Confluence page in one Claude chat.

---

## Ready to try it on your help center?

[Start your free 14-day trial](https://app.chatbotiq.eu/register?plan=standard&intent=trial) and have an assistant answering from your Scroll Sites documentation in about 20 minutes. No credit card needed.

Short on time? [Send us your help center address](https://chatbotiq.eu/#prepare) and we'll prepare the assistant for you.

---

## Related

- [Work Through Doc Issues](/how-to/work-through-doc-issues/) - assign and fix what the documentation is missing
- [Crawling Settings Reference](/reference/crawling-settings/#markdown-versions-of-your-pages) - how markdown versions of pages are used
- [Embed the Widget](/how-to/embed-the-widget/) - the standard embed and allowed domains
- [Connect via MCP](/how-to/set-up-mcp-integration/) - let AI coding tools search the same documentation
- [Build a Knowledge Bot for Confluence](/tutorials/build-an-internal-knowledge-bot/) - for internal wikis

## Sitemap

Full documentation index: [sitemap.md](/sitemap.md) and [llms.txt](/llms.txt).
