OneLineChat

How to add an AI chatbot to a plain HTML website

Paste one <script> tag just before </body> on every page, or once in your shared template. The chatbot loads by itself and answers from your site's pages. Get the key first at /get-api-key, or have your AI agent request it with one API call.

<!doctype html>
<html>
  <body>
    <!-- your page -->
    <script src="https://onelinechat.com/widget.js" data-key="olc_pub_YOUR_KEY" async></script>
  </body>
</html>

Notes

Last updated: · Markdown version