Documentation

How Bastian works.

Where his answers come from, what’s watching them as they form, and where the account plumbing actually lives. Short version: he answers from your content, and every reply is checked in real time before anyone sees it.

Overview

Meet the assistant, and his home.

Bastian is an AI assistant you drop onto your own website. Visitors ask him questions in a small chat bubble; he answers from your site’s own content, and says so plainly when he doesn’t know. His home is heybastian.com — where you meet him, read these docs, and get the one line of code that puts him on your site.

What sets him apart isn’t the chatting — plenty of tools do that. It’s that every reply is checked, as it’s being written, by PsiGuard. That check is the reason he acts less like a script and more like someone who knows his limits.

How he answers

From your words, not the internet’s best guess.

Bastian draws his answers from your own pages. Ask him about your hours, your returns policy, or which plan fits, and he answers from what you’ve actually published — not from a general-purpose model’s vague memory of the web.

And when he’s past the edge of what your content covers, he tells you so instead of inventing something that sounds right. A plain “I’m not sure” is a feature here, not a failure — it’s the difference between an answer you can stand behind and one you have to walk back.

The safety layer

What PsiGuard watches — the whole shape, not one tripwire.

PsiGuard is a product in its own right, already running at psiguard.net. It doesn’t grade Bastian’s answer against a banned-word list or hand it to a second model for a second opinion. Instead, it reads the structure of the reasoning itself, in real time, as the reply is being built — watching whether the whole thing stays sound.

It’s easy to talk about this as “catching drift,” and drift — a reply quietly coming loose from the question — is one of the things it watches. But it’s only one. PsiGuard reads several qualities of a reply at once: whether it stays coherent, whether it drifts from what was asked, whether it stays orderly instead of sliding toward noise, and whether it stays anchored to the right context and memory. Taken together, that’s a live read on whether the answer is holding its shape — not just whether it wandered.

If that shape starts to give way while the reply forms, it’s caught before anyone sees it: retried, or Bastian simply says he isn’t sure. Exactly how PsiGuard measures any of this stays under the hood — that’s the part you can’t buy off a shelf — but the effect is visible in every answer that reaches your visitors.

Where things run

Two front doors, one backend.

Bastian lives at heybastian.com, but the account machinery behind him — signing in, paying, and saving your settings — is handled by the PsiGuard backend over on psiguard.net. You never get sent there, and neither do your visitors; it all happens quietly behind Bastian’s own site.

Concretely, three familiar services do the heavy lifting, brokered by PsiGuard so you only ever deal with Bastian:

Signing in
Handled by Firebase Authentication. Your login lives with PsiGuard’s backend, so one account carries across both sites.
Billing
Handled by Stripe, run through the PsiGuard backend. Plans, upgrades, and receipts all flow through there — you just see Bastian’s pricing.
Your settings
Stored in Firestore on the PsiGuard side. Your configuration and account details live there and are read back into Bastian as needed.

The link between the two is a single API key tied to your account. That key is what lets Bastian talk to PsiGuard — and it’s the same key that routes every one of his replies through the real-time check described above. One key, both jobs: the plumbing and the monitoring.

Add him to your site

One line, before the closing tag.

If you can paste a line of code into your site, you can run Bastian — there’s nothing to configure and no platform to be locked into.

  1. Create your account and grab your embed snippet from the setup page. It carries your own license key.
  2. Paste it just before the closing </body> tag on any page you want him on.
  3. That’s it. The bubble appears, and Bastian starts answering from your content right away.
<script src="https://js.heybastian.com/static/js/kairo_widget.js"
        data-license="your_license_key" defer></script>
Quick answers

Good to know.

Will my visitors know a reply is being checked?

No. The check happens as the answer forms, fast enough that people only ever see the finished reply — never the work behind it.

What happens when Bastian isn’t sure?

He says so, in plain words, rather than guessing. If a reply starts to come loose while it’s forming, it’s retried or held back — so an honest “I don’t know” is the worst case, not a confident wrong answer.

Will the widget slow my page down?

It loads deferred, so it doesn’t block your page from showing. The monitoring runs on the PsiGuard side as the reply is built, not in your visitor’s browser.

Where do billing and sign-in actually live?

With the PsiGuard backend — see Where things run. You only ever interact with Bastian; PsiGuard handles the rest out of sight.

One more thing

There’s a turtle. His name is Larry.

Bastian takes his job seriously. He does not take turtles seriously. Somewhere on this site is Larry — a hard-hatted turtle who occasionally forklifts an absurd stack of pancakes across the bottom of your screen, then trundles off like nothing happened.

Want to find him? Ask Bastian “Where’s Larry?” and see what rolls by. It’s pure fun and entirely local to heybastian.com — the question never leaves your browser, costs nothing, and will never show up on a customer’s embedded widget. Some things are just for the home crowd.

Give your visitors someone to ask.

Add Bastian in a minute, throw your trickiest questions at him, and watch how he handles the ones he can’t answer.