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
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 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
- 1Create your agent: paste your website URL and let it read your pages.
- 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.
- 3Paste the script just before </body> and save.
- 4Run hugo server to check it on localhost, then build and deploy.
<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.
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.
Your website
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