Coming soonYour agent on WhatsApp, Messenger and Instagram
ReplyBash

AI chatbot for Astro

Add one script tag to the layout your pages share and mark it is:inline. Every page that uses the layout gets an agent that answers from your own content.

  • One tag in your layout
  • is:inline, so it stays as written
  • Free plan to start
Who it's for

Made for Astro sites

This is for content sites built with Astro: a business site, docs or a blog whose visitors ask things your pages already answer.

The chat is a plain script tag, not a component. It adds no island and no integration, and none of its code goes into your bundle.

Install

Install on Astro, 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 layout

  1. 1Create your agent: paste your website URL and let it read your pages.
  2. 2Open the layout component your pages share, in src/layouts.
  3. 3Paste the script below just before </body>. Keep is:inline: it tells Astro to leave the tag exactly as written.
  4. 4Run astro dev, or build and deploy, and ask a question you know the answer to.
src/layouts/Layout.astro
<script
  is:inline
  src="https://replybash.com/embed.js"
  data-agent-id="YOUR_AGENT_KEY"
  defer>
</script>

It loads on localhost while you run astro dev. If your live address isn't your agent's domain, add it in Embed › Allowed domains. Other ways to install, such as the chat inside one page, are in the quickstart.

On Astro

What works on your site

Every feature below is built and in the product today.

  • Left as written

    Astro leaves a script tag with attributes besides src as it is. is:inline says so outright, so the tag stays as written even after later edits.

  • One layout, every page

    Every page that uses the layout gets the chat, Markdown pages included.

  • Hand a chat to a person

    When a visitor needs someone, reply from the inbox yourself and give the chat back to the agent afterwards.

  • No island, no integration

    It isn't a UI framework component, so there's no client: directive to choose and nothing to add to astro.config.

  • Prerendered or on demand

    The tag is part of your layout's HTML, so it's there whether Astro builds the page ahead of time or on request.

  • Enquiries to your tools

    Add a form to the chat and each enquiry goes to email, Slack, Telegram or a webhook.

FAQ

Astro questions

Something else? We answer every email.

Email us

It tells Astro not to bundle the tag. Astro already leaves a tag with attributes besides src alone, and ours has them, but Astro's docs suggest is:inline for scripts from another server. Our script reads data-agent-id from its own tag, so it must reach the browser as written.

Yes. Call window.replybash("open") from a script on the page. "close" and "toggle" work the same way.

No. One script tag in your layout is all it needs, and there's nothing to add to your config.

Put the tag in a layout that only those pages use, or keep it everywhere and set page rules in the dashboard. Page rules are checked on every page.

The tag has defer, so it runs after your page is read. It draws the chat button first; the chat itself loads in its own frame once the page is idle.

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