The brief
The client runs a large platform where members check their accounts, orders and earnings. Many of the questions members bring to support are personal: why is my balance this figure, what do I need for the next level, where is my order. A generic chatbot cannot help, because every one of those questions is about that member's own data.
The client wanted an assistant inside the platform that could answer those questions for each member, explain the company's rules in plain language, and hand anything else to the support team.
What we built
The assistant is built around tools: small, tested functions the language model can call to fetch a member's data from the platform's APIs. Each tool checks who is asking and returns only what that user is allowed to see. The model never queries the database directly.
Questions about rules and policies are answered from documents the client approved, not from what the model happens to know. Every tool call is logged with the question that triggered it, so the client can audit any answer after the fact.
- Chat assistant inside the client's existing member platform.
- A set of permission-checked tools covering accounts, orders, earnings and progress.
- Answers on rules and policies from client-approved documents.
- Logging of every conversation and tool call for review and audit.
- Handover to the support team for anything outside the assistant's scope.
Evaluation before every release
The assistant is judged on test conversations with known correct answers, not on a demo.
Build the test set
Real member questions, with the correct answer for a given test account, written with the client's support team.
Run on staging
Each new version of the assistant runs the full test set on a staging copy of the platform.
Review the failures
Wrong or unsafe answers are traced to a tool, a document or an instruction and fixed.
Release
A version reaches members only when it passes the suite; new failure cases found in production are added to it.
What took the time
Most of the work was not the language model. It was the data layer: making the platform's data available through safe, well-defined APIs, and writing tools that return exactly the right slice of it. That part took longer than the client first expected, and it is the part that makes the assistant trustworthy.
The same lesson applies to most AI agent projects we see. If the data an assistant needs is scattered or only reachable by someone with database access, budget for fixing that first.
Related
- AI agentsWe design and deploy AI agents for support, sales, back-office and documents, built on kaag.ai and leading language models, with EU hosting on request.
- kaag.aikaag.ai is our AI agent platform: a branded agent for your website and phone that answers from your documents, captures leads and hands over to staff.
- TechnologiesThe stack Eupract builds with: Laravel, Next.js, React, Flutter, Python, language-model tooling, PostgreSQL, MySQL, Cloudflare and EU hosting.