Install · HTML website

How to add a booking chatbot to an HTML website

Add AskBok's AI booking chat to any hand-coded or static HTML site: paste one script tag before </body>. No build step, no dependencies, works everywhere.

What you'll add · Chat button on every page

<script src="https://askbok.com/widget.js" data-widget-key="wk_…" async></script>

You'll need

  • Access to your site's HTML files or footer template
Try the chat first

Quick answer

Paste your AskBok script tag just before the closing </body> tag of each page (or your shared footer include) and upload the files. The script loads asynchronously, adds a chat button and runs the chat in its own frame, so it works on any static or hand-coded site with no build step.

Step by step: AskBok on HTML website

  1. 1

    Copy your AskBok code

    In your AskBok dashboard open AI Chatbot → Install on your website and click Copy code. You'll paste it into your HTML.

  2. 2

    Open your footer

    Open each page, or your shared footer include, in your editor.

  3. 3

    Paste before </body>

    Paste the script tag on the line above </body>. It also works in <head> — it waits for the page to load.

  4. 4

    Upload and test

    Upload the files and open the site in a private window.

<!-- before </body> -->
<script src="https://askbok.com/widget.js" data-widget-key="wk_…your key…" async></script>

<!-- or inside a page (e.g. contact): -->
<div id="askbok-chat" style="height:640px"></div>
<script src="https://askbok.com/widget.js" data-widget-key="wk_…your key…" data-mode="inline" async></script>

Your own code (with your key) is in AskBok → AI Chatbot → Install on your website. No website, or your plan doesn't allow code? Use your booking link.

If the chat doesn't appear

  • Using a Content Security Policy? Allow askbok.com in script-src and frame-src.
  • Open AskBok → AI Chatbot → Install for “Which websites may show your chat” to restrict the chat to your domain.

AskBok on HTML website: FAQ

Does it need jQuery or a framework?

+

No. The loader is a tiny plain-JavaScript file with no dependencies.

Can I open the chat from my own button?

+

Yes — call window.AskBok.open() from your button's click handler.

Is it accessible?

+

The launcher is a labelled button, the chat is keyboard friendly and works with screen readers.

Steps checked against MDN — the <script> element on 14 November 2026. Menu names sometimes change — if yours look different, ask us in the chat.

What happens after you install

  • Visitors see a chat button (or the chat inside your page). The receptionist answers from your services, prices, opening hours and FAQs — it never invents prices or times.
  • When someone wants to book, it shows real free times from your availability and connected calendar, holds the slot and books it after they confirm.
  • You get the booking in your dashboard and calendar, the customer gets a confirmation email, and every conversation is saved in your inbox and leads list.
  • You can take over any chat yourself, and change the chat's colour, name and greeting any time without touching HTML website again.

Add an AI receptionist to your HTML website site

Answers questions, quotes real prices and books free times — 24/7. Set up in about 10 minutes.