Your own chatbot
Your own chatbot, independently monitored.
Alalvera does not need your chatbot to run on a known platform. If you built it yourself, on any model and with any coding assistant such as Claude Code, Codex or Grok, we monitor it the same way: every finished conversation checked against your own written rules, and every proven error reported with its evidence.
Part of the Alalvera subscription. The SDK works today, with a key you make in the dashboard. It is Available
- Hosted
- Open source
- One or several
- Claude Code
- Codex
- Grok
- By hand
alalvera.sendConversation()
Returns at once. Sends in the background.
jane@shop.example[email]4111 1111 1111 1111[card]+1 415 555 0134[phone]- 30 dayskept
Checked against your written rules
Proven errors, with their evidence.
A known platform or your own code, the audit is the same. We read what your bot told the customer, word for word. What wrote the code and which model runs it change nothing in how it is checked.
-
Any model
Hosted or open source, one model or several. We never call your model and never need its keys.
-
Any coding assistant
Your account gives you the code and a prompt to paste into the assistant you already use. You review the change before it ships.
-
One requirement
Server code where a conversation ends: JavaScript, TypeScript or Python for the SDK, or any language through our REST API with the same key.
One call after each finished conversation. That is the whole integration.
import { Alalvera } from "@alalvera/sdk";
// The key comes only from the environment. Without it, every call does nothing.
const alalvera = new Alalvera({ apiKey: process.env.ALALVERA_API_KEY });
// Once per conversation, when it is finished, after the bot's last reply.
// Returns at once and sends in the background. Never await it.
alalvera.sendConversation({
externalId: conversation.id,
endedAt: new Date(),
messages, // [{ id, role: "customer" | "bot" | "human_agent", text, sentAt }]
});
import os
from datetime import datetime, timezone
from alalvera import Alalvera
# The key comes only from the environment. Without it, every call does nothing.
alalvera = Alalvera(api_key=os.environ.get("ALALVERA_API_KEY"))
# Once per conversation, when it is finished, after the bot's last reply.
# Returns at once; a background thread sends it.
alalvera.send_conversation(
external_id=conversation.id,
ended_at=datetime.now(timezone.utc),
messages=messages, # [{"id", "role", "text", "sent_at"}]
)
Not published yet. The packages for npm and PyPI are coming soon. The full code for Express, Next.js, FastAPI and Flask, and a prompt for your coding assistant, come with your account.
- 1A key from the environmentShown once in your account, kept in your server's environment. Without it, every call does nothing.
- 2Once, at the endAfter the bot's last reply, when the conversation is finished.
- 3Never awaitedIt returns at once and sends in the background.
Built so it cannot hurt your bot. Monitoring that slows a chatbot down or breaks it would be worse than none.
Never slows the reply
The call returns at once. Sending happens in the background, after the conversation ends, never on the path that answers the customer.
Never breaks your code
It retries on its own and never throws. Without a key every call does nothing, so local development and tests need no setup.
Personal data removed first
Email addresses, card numbers and phone numbers are replaced before anything leaves your server. Prices, day counts and percentages stay, because the audit checks exactly those.
A key shown once
You create it in your Alalvera account. It is shown once and lives in your server's environment, never in code, git or a browser. Revoke it any time.
Activate your Alalvera subscription to connect a custom AI agent.
Connecting your own chatbot is part of the subscription, not of the 100 free audits: $99 a month plus $0.15 per conversation for the first 1,000 and $0.05 after. For now our team switches the subscription on with you.
Ready to connect it?
The connect page walks you through it, from the subscription to the first audited conversation.