Hakira Labs
All solutions

AI assistants · Lead capture · Grounded answers · Abuse protection

Answers your visitors from your own pages, and never makes things up

A website AI assistant, running in production and built to scale with your traffic, that answers visitors from your own pages, offers your case studies and captures leads, checking every answer in code.

Answers from
Your own pages, with sources
Runs on
One script tag on any site
When idle
Costs nothing; daily spend caps
Built for
Many sites from one platform
Related services
AI & Data Sprint, Engineering Retainer
Stack
  • TypeScript
  • Python
  • LangGraph
  • Amazon Bedrock
  • Bedrock AgentCore
  • Bedrock Guardrails
  • NestJS
  • AWS Lambda
  • DynamoDB
  • CloudFront
  • Cloudflare Turnstile
  • Terraform

Product

What it is

A website AI assistant, running in production on this site and built to scale: one platform serves many sites and any number of simultaneous conversations, each in its own isolated session. Visitors ask in their own words and in their language; it reads the page of your site that answers them, replies in a few sentences with a link to that page, and offers the case study closest to what they asked. When someone wants to talk, it takes their details and your team gets them by email, with the conversation, in a console where every chat is on record.

The problem it solves

Most website chatbots fail in one of two ways. Scripted ones only know the questions someone wrote in advance, so real visitors hit a dead end. Generative ones answer anything, including prices you never quoted, services you don’t offer and promises nobody made, and a confident wrong answer to a buyer costs more than no answer at all.

A public chat is also an open door. Anyone can script it, run up the bill or switch it off for real visitors, and a prompt stuffed with your whole site pays for every page on every message.

What you get

  • Answers your buyers can trust: every reply comes from a page of your site that was read for that question, and links to it.
  • Interest turned into leads: visitors leave their details in the chat, and the lead reaches your inbox and your console with the whole conversation.
  • Your best work in front of the right visitor: technical questions get a short answer and the case study that shows you’ve built it before.
  • No invented prices, timelines or promises: figures appear only when a page states them, and a reply that claims something that didn’t happen is replaced.
  • A bill you can predict: nothing runs while nobody is chatting, and a daily cap per site stops spend at a number you choose.
  • Always up to date: publish a page and the assistant can answer from it, with nothing to retrain.

How we deliver it

As an AI & Data Sprint: we connect the assistant to your site, set its persona, scope and languages, run it against an evaluation set built from your real questions, and switch it on. Ongoing tuning, new tools (booking, your CRM) or content beyond the site come as an Engineering Retainer. We need your site and a person who reviews the first conversations with us.

Is it for you

It fits when your website explains what you sell and visitors arrive with questions before they talk to anyone: services firms, B2B products, agencies, clinics. It is not for you if answers depend on private data about each customer (accounts, orders, tickets); that is an in-app agent, a different system. Nor if you need instant, word-by-word replies: here every answer is checked before it shows, so it takes a few seconds.

Tech

  1. A visitor opens the chat on your site
  2. It reads only the page that answers the question
  3. Every answer is checked in code before it shows
  4. It offers the case study closest to their question
  5. Interested visitors leave their details in the chat
  6. Your team gets the lead by email and console

Design goals

  1. Every factual answer comes from a page read for that question, and cites it.
  2. The assistant never claims something that didn’t happen: a saved lead, a notified team, a price.
  3. Nothing in the prompt that the question doesn’t need.
  4. The model never chooses whose data it touches.
  5. Nothing runs, and almost nothing costs, while nobody is chatting; spend has a hard daily ceiling.

Architecture

  1. Visitors and sites

    VisitorAny page, any language
    Your websitePages plus a site map
  2. Edge and API

    Chat widgetOne script tag
    Public APISessions, limits, budgets
  3. Agent

    Agent runtimeGraph, tools, answer checks
    GuardrailsInput and output filters
  4. Your team

    Leads and chatsOne space per account
    ConsoleReview, setup, accounts
    EmailLeads and handoffs

The chat widget is one script tag. It renders in its own isolated part of the page, so it can’t clash with your styles, and it appears only when the assistant can talk on that site. When a visitor opens it, an invisible human check runs, a session starts, and the agent is warmed up while they read the welcome message.

The public API owns every rule that costs money: which sites an account’s key works on, the human check, limits per visitor, per conversation and per day, and the daily budgets. It saves each message, then calls the agent with only what the turn needs: the account’s setup, the conversation so far and a short-lived signed token.

The agent runtime is a graph of model calls, tools and checks on a managed runtime that bills only while a turn runs and keeps each conversation’s session isolated, so it scales with the number of conversations, not with servers we run. Guardrails filter prompt attacks and harmful content on the way in and on the way out.

Your team’s side keeps every lead and conversation under the account it belongs to. The console shows each answer with its sources, lets someone mark answers good or bad, and lets an administrator switch the assistant on or off per account.

How the hard parts work

Reading the site on demand

The prompt holds the rules and a site map in the visitor’s language, read from a plain-text file the site publishes: every page and every section, with a one-line description. No page text. The model calls a read tool for the one page or section that answers the question and gets only its main text, without menus, forms or footers. The tool reads only secure pages on the account’s own sites that are listed in that map, so it can’t be pointed anywhere else. Publishing a page is all it takes for the assistant to know about it.

Checking every answer in code

  1. Read the pageOnly what the question needs
  2. Draft the answerReply, sources, case studies
  3. Check it in codeSources read, figures stated
  4. Show itWith links and next questions

Never shows what it cannot back. If the checks still fail after a couple of retries, a fixed, honest sentence replaces the reply and offers the team.

The model answers through a structured final step: the reply, what kind of answer it is, the pages it used, the case studies it offers and follow-up questions. Plain rules then check it, with no second model as a judge: an answer must cite pages read in this turn, money amounts and durations must appear in those pages, “your details were sent” needs the lead tool to have succeeded, and the reply must be in the visitor’s language. A failed check sends a hidden correction and a retry; declining a question without reading anything counts as a failure, so a capability question is never brushed off as off-topic.

Leads the model can’t fake

Saving a lead and asking for a person go back to the API, carrying the signed token the model never sees. The API takes the account and the conversation from that token alone, and refuses an email address the visitor never typed in the conversation, so the model can neither invent a contact nor write into another account.

A public chat that can’t run up a bill

A script can’t open a session without passing the human check, and the key only works on the account’s own sites. After that, limits apply per visitor, per conversation and per day, and every turn’s cost is added to a daily budget per account and to a ceiling across all accounts. When a budget is spent, the assistant switches off until the next day and the account is notified, instead of the bill growing.

Decisions

Question Options We chose Why
Where knowledge comes from Whole site in the prompt; a vector index; read pages on demand Read pages on demand, from a site map Small prompts, always current, no index to keep in sync
How answers are checked Trust the model; a second model as judge; rules in code Rules in code, retries, fixed fallbacks Predictable, testable, no extra cost per turn
Where the agent runs Inside the API function; always-on containers; a managed agent runtime Managed runtime, isolated per session Scales per conversation, bills only while working
How tools know the account The model passes it; a shared key; a signed short-lived token Signed token the model never sees The model can’t reach another account’s data
Bot protection Web application firewall; visible captcha; invisible human check with limits and budgets Invisible check, limits, daily budgets No fixed monthly cost, no friction for real visitors
How replies arrive Stream words as generated; progress steps, then a checked answer Progress steps, then the checked answer A retry never has to take back text already shown

Guardrails

  • Security. The widget’s key works only on the account’s listed sites; sessions need the human check and are tied to the site that opened them. The agent can only be invoked by the API, and its write tools only through signed, short-lived tokens.
  • Least privilege. The public API can’t reach the console’s routes or user directory; the console can’t call the agent. The read tool can open only the account’s own listed pages.
  • Cost. Pay-per-use everywhere, small prompts, a cap on tool rounds and output, daily budgets per account and a ceiling across all accounts.
  • Reliability. The visitor always gets a reply: errors, blocked messages and failed checks end in a fixed, honest sentence. The contact form keeps working if the assistant is off.
  • User data. Logs never contain visitors’ messages or contact details. Leads and conversations are stored per account and visible only to that account’s people and our administrators.

Failure modes

What breaks What happens
A page can’t be read The assistant says it isn’t sure and offers the team
The model invents a figure or a claim The check catches it; after retries, a fixed sentence replaces it
The daily budget is spent The assistant switches off until tomorrow; the account is notified
Someone scripts the chat No session without the human check; limits and budgets cap the rest
The email service is down The lead is still saved and shown in the console

Trade-offs, and when not to use this

Answers arrive whole after a few seconds of visible progress, not word by word, because each one is checked first. The assistant knows only what the site’s pages say: documents, catalogues or help-centre content outside the site need a knowledge base, which plugs in as one more tool. The checks catch invented figures and false claims, not every overstatement, so the review loop in the console matters. The human check needs a browser that runs it; a visitor who blocks it gets the contact form instead. If answers depend on each customer’s private data, build an in-app agent instead.

What we would measure

  • Share of answers with sources, and of replies replaced by a check.
  • Conversations that become leads, and handoffs requested.
  • Questions answered “not sure”, by topic: gaps in the site.
  • Case studies offered, and opened.
  • Cost per conversation and per lead.
  • Time to answer (p95), first message and later ones.

Want something like this in your stack?

Tell us about your context and we will tell you what it would take.

Let's talk