AI chatbot for Nuxt
Add one script entry to app.head in nuxt.config.ts. Nuxt puts the tag on every page, and your app gets an agent that answers from your own content.
- app.head in nuxt.config.ts
- No module to install
- Free plan to start
Made for Nuxt apps and sites
This is for teams with a marketing site, docs or an app on Nuxt who want visitors' questions answered from their own pages and files.
It's a few lines of config. You add no module, no plugin file and no component, and the chat is there on every route.
Install on Nuxt, 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 nuxt.config.ts
- 1Create your agent: paste your website URL and let it read your pages.
- 2Open nuxt.config.ts and add the script entry below to app.head. If you already have an app.head, add only the script entry to it.
- 3Run nuxt dev, or build and deploy, and ask a question you know the answer to.
// nuxt.config.ts: add the script entry to app.head (keep what you already have there).
export default defineNuxtConfig({
app: {
head: {
script: [
{
src: "https://replybash.com/embed.js",
"data-agent-id": "YOUR_AGENT_KEY",
defer: true,
},
],
},
},
})Prefer to keep it in a component? useHead in app.vue takes the same script entry. 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.
Every page from one entry
app.head sets the head for every page, so there's no layout or page file to touch.
A real script tag
Nuxt turns the entry into a script tag with your agent key on it. With server rendering, it's in the HTML Nuxt sends.
Keeps the chat while routes change
Nuxt changes route without loading a new page, so the widget and an open conversation stay where they are.
Open it from your own button
Call window.replybash("open") in a click handler. "close", "toggle", "hide" and "show" work the same way.
Hide it on some routes
Page rules in the dashboard decide where it shows. They're checked again each time the route changes.
Your team can take over
Reply to a live chat from the inbox when a visitor needs a person, then hand it back to the agent.
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