Replire

HTML / JavaScript

Add your AI chat widget to any website with a single script tag.

Integration Script

Paste this snippet just before the closing </body> tag. Replace the URL and key with your actual values.

<script src="https://your-domain.com/widget.js" data-key="YOUR_WIDGET_KEY" async></script>

Step-by-step instructions

For sites built with plain HTML or custom frameworks:

  1. 1Open your main HTML file (e.g. index.html).
  2. 2Scroll to the bottom of the file.
  3. 3Paste the script immediately before the closing </body> tag.

Example placement:

    <script>
      <!-- paste your widget script here -->
    </script>
  </body>
</html>