Coming soonYour agent on WhatsApp, Messenger and Instagram
ReplyBash

AI chatbot for Hugo

Paste one script tag into your base template and every page Hugo builds gets an agent that answers from your own content. Your theme's files stay as they are.

  • One tag in baseof.html
  • Theme files untouched
  • Free plan to start
Who it's for

Made for Hugo sites

This is for sites built with Hugo: a company site, docs or a blog written in Markdown, whose visitors ask things the pages already cover.

You add one tag to a template, once. With a theme, you copy one of its templates into your own layouts folder, so the theme can still be updated.

Install

Install on Hugo, step by step

Create your agent first: paste your website's address and it reads your pages. Then add it to your site.

Add it to your base template

  1. 1Create your agent: paste your website URL and let it read your pages.
  2. 2Open your base template, layouts/baseof.html. With a theme, first copy the theme's template that holds </body> to the same path in your project's layouts folder.
  3. 3Paste the script just before </body> and save.
  4. 4Run hugo server to check it on localhost, then build and deploy.
layouts/baseof.html
<script
  src="https://replybash.com/embed.js"
  data-agent-id="YOUR_AGENT_KEY"
  defer>
</script>

Themes keep their base template in different places. Look in the theme's layouts folder for the file with </body> in it. Other ways to install, such as the chat inside one page, are in the quickstart.

On Hugo

What works on your site

Every feature below is built and in the product today.

  • Your theme stays untouched

    A file in your project's layouts folder wins over the theme's file at the same path, so updating the theme doesn't remove the chat.

  • Or its own partial

    Put the tag in layouts/_partials/chat.html (layouts/partials/ before Hugo 0.146) and call {{ partial "chat.html" . }} before </body>.

  • Try it with hugo server

    hugo server rebuilds on each save and the chat loads on localhost, so you can test before you deploy.

  • Plain files out

    Hugo builds static files with the tag in them. Any host that serves those files serves the chat.

  • Only on some sections

    Show it only on /docs/* or everywhere but /blog/*, with page rules in the dashboard. No template logic needed.

  • Answers from what you wrote

    It reads your built pages, so your Markdown posts and docs are what it answers from, with the page shown.

FAQ

Hugo questions

Something else? We answer every email.

Email us

No. It's one script tag in a template. A shortcode would only add it to the pages that call it.

No. Copy the template into your own layouts folder at the same path and edit the copy. Hugo uses your file instead of the theme's.

Hugo's docs put it at layouts/baseof.html; sites made before Hugo 0.146 often use layouts/_default/baseof.html. A theme may keep it elsewhere, so search the theme for </body>.

Yes. Allow localhost is on by default, so it loads on localhost and 127.0.0.1. Chats there use your message credits.

Yes. The tag is in the files Hugo builds. If your site's address isn't your agent's domain, add the exact address in Embed › Allowed domains.

The chat works on every plan, the Free plan included, which has 100 messages a month. Paid plans start at $39 a month with a 7-day free trial.

Put your website to work tonight

Paste your URL and chat with your agent in minutes.

Free for 100 messages a month · No credit card required