How to add an AI chatbot to Jekyll

On Jekyll, a chat widget is installed through _layouts/default.html or _includes/footer.html. Applies on your next build; GitHub Pages rebuilds on push. None.

Where it goes

_layouts/default.html or _includes/footer.html

Availability: None.

Adding the chatbot to Jekyll

  1. 1

    Open _layouts/default.html, or _includes/footer.html if your theme uses one.

  2. 2

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

  3. 3

    Rebuild and deploy. On GitHub Pages, pushing is enough.

  4. 4

    Applies on your next build; GitHub Pages rebuilds on push.

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 Jekyll

  • If your theme is a gem, copy the layout into your own _layouts/ directory before editing it.

  • GitHub Pages runs Jekyll in safe mode, which disables custom plugins but not plain HTML.

Jekyll questions

Where does the code go on Jekyll?
_layouts/default.html or _includes/footer.html. Applies on your next build; GitHub Pages rebuilds on push.
Do I need a paid Jekyll plan?
None.
Will a Jekyll update remove it?
If your theme is a gem, copy the layout into your own _layouts/ directory before editing it.
Does it slow Jekyll 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 Jekyll 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.