03 · How it works
Deterministic where it matters, generative where it helps.
The model only drafts the answer. Routing, safety screening and the final escalation call are plain, testable code, so the model can't talk its way past them.
Curated, in-memory knowledge base
The help-centre corpus was distilled into a compact knowledge base per company instead of a vector database. Retrieval is instant and deterministic, and every answer traces back to a section you can read. The trade-off is manual curation, which wouldn't scale to thousands of articles.
Fail closed, never guess
A rate limit, a timeout, malformed output or a missing key all lead to the same place: the ticket is escalated to a human with a safe message. In a support queue, a wrong answer costs more than a slow one.
Screens before and after the model
Injection attempts never reach the model. High-risk tickets still get a drafted answer, but the guardrail stage replaces a direct reply with an escalation, so the final call stays outside the model's control.
Built to be shown in public
The API key never leaves the server. Requests are rate-limited per visitor, inputs are capped, ticket text is never logged, and the trace you see here is exactly what the pipeline produced.