How to add an AI chatbot to plain HTML

On plain HTML, a chat widget is installed through Every page's closing </body> tag. Live as soon as the files are uploaded. None.

Where it goes

Every page's closing </body> tag

Availability: None.

Adding the chatbot to plain HTML

  1. 1

    Open each HTML file you want the widget on.

  2. 2

    Paste the snippet immediately before the closing </body> tag.

  3. 3

    Upload the files to your host.

  4. 4

    Live as soon as the files are uploaded.

The snippet you paste

<script src="https://rubyrep.com/rubyrep.js" data-rubyrep="rr_your_public_key" defer></script>

Your own key replaces rr_your_public_key — you get it after training RubyRep on your site.

Worth knowing on plain HTML

  • With no templating, the snippet has to be repeated on every page — consider server-side includes if your host supports them.

  • Browser caching can serve the old page; a hard refresh confirms the change.

plain HTML questions

Where does the code go on plain HTML?
Every page's closing </body> tag. Live as soon as the files are uploaded.
Do I need a paid plain HTML plan?
None.
Will a plain HTML update remove it?
With no templating, the snippet has to be repeated on every page — consider server-side includes if your host supports them.
Does it slow plain HTML down?
No measurable effect. The snippet is deferred, so it loads after your page has rendered, and the chat interface itself is only fetched when a visitor opens it.

Related

Get your snippet.

Enter your plain HTML site and RubyRep reads it, builds your representative, and hands you the exact line to paste.

https://

Takes about a minute. No credit card.

Using something else? See all platforms.