Stop shipping AI responses that should've gone to a human. Guardrail scores every response and routes it: deliver, flag for review, or escalate instantly.
We don't generate text. We don't consume your AI tokens. We only read the response text and score it in milliseconds.
Four tools built in. All browser-based. No installs required beyond the SDK snippet.
One API, five ways to plug in. Pick the one that matches your stack.
gr.check(). Works in the browser or server-side Node.js. One line added to your existing pipeline.<script> tag adds a floating ๐ก๏ธ AI chat to any site. Every response shows a confidence badge. Zero config, dark/light theme./api/check. Works from any language or tool. Pass your text and get a decision back in JSON. No SDK required.Every AI response is scored 0โ1 and routed to one of three paths.
Guardrail runs every response through 74 pattern-matching signals across 12 categories before making a routing decision.
Add Guardrail to any existing AI app in under 60 seconds.
<!-- 1. Load the SDK -->
<script src="https://guardrail-mvp-production.up.railway.app/sdk/guardrail.js"></script>
<!-- 2. Initialize -->
<script>
const gr = new Guardrail({
apiKey: 'YOUR_API_KEY',
context: 'medical', // or 'legal', 'financial', 'general'โฆ
onEscalate: (result) => notifyHuman(result),
onFlag: (result) => showDisclaimer(result),
});
<!-- 3. Wrap your AI call -->
const aiResponse = await openai.chat("...");
const result = await gr.check(aiResponse, { userId: 'u_123' });
if (result.decision === 'deliver') {
showToUser(aiResponse); // confidence: 0.92
}
</script>