Skip to main content

Basic installation

Add a Biel.ai AI chatbot or AI search widget to any HTML site. This method uses CDN-hosted components — no build tools or package managers required.

Prerequisites

Add the chatbot widget

The <biel-button> component adds a floating chat button to your site.

Chatbot widget for docs

  1. Add the following inside the <head> tag of your HTML:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.esm.js"></script>
  2. Add the following just before the closing </body> tag:

    <biel-button project="<YOUR_PROJECT_ID>"
    header-title="Biel.ai chatbot"
    button-position="bottom-right"
    modal-position="bottom-right"
    button-style="dark">
    Ask AI
    </biel-button>

    Replace <YOUR_PROJECT_ID> with your project's ID from the Biel.ai dashboard.

  3. Open the page in a browser to verify the chatbot appears in the bottom-right corner.

Add the search widget

The <biel-search-button> component adds an AI-powered search bar instead of (or alongside) the chatbot.

Biel search

  1. Add the following inside the <head> tag of your HTML:

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/biel-search/dist/biel-search/biel-search.esm.js"></script>
  2. Add the following where you want the search button to appear:

    <biel-search-button project="<YOUR_PROJECT_ID>" button-style="rounded">Search</biel-search-button>

    Replace <YOUR_PROJECT_ID> with your project's ID from the Biel.ai dashboard.

  3. Open the page in a browser to verify the search widget works.

Next steps