Test questions are available on the Pro and Scale plans, for team owners.
Add a test question
Click Add test question and fill in:- Question: write it the way a customer would ask, in your customers’ language.
- Expected source (optional): the knowledge entries that hold the answer. Pick up to 10 Q&A, text, files, or pages.
- Key facts (optional, one per line): what the answer must say, for example “Unopened food: 14 days with receipt”. Up to 10 facts.
What is checked
- Search: passes (Found) when one of the expected sources is among the top six results when the agent searches your knowledge for the question. Use it to check your knowledge is found.
- Answer: the agent answers the question, then an AI judge checks that every key fact is in the answer. Wording and language don’t matter, only the facts. Questions without key facts only check search; the agent doesn’t answer them.
When tests run
- After training: once your agent finishes training, the test questions run automatically.
- Before you save a prompt or model change: when you change the instructions or the model in Settings → AI and save, Totebot offers to test the change first. Click Run tests to answer each question that has key facts with your live agent and with your change, side by side. Questions with only an expected source check search, not answers, so add key facts to the questions you want to compare. The summary shows how many pass with each and what the change fixed or broke. Then click Save change, or Save anyway if the change broke something and you still want it. To skip the test, click Save without testing.
- On demand: click Run tests on the Test questions page.
Read the results
The page lists your questions with the latest result next to each one, and a Runs list with past runs (After training, Manual run, or Change preview). Pick a run to see the result for each question. Click a question to read the agent’s answer. When a question fails:- Search shows Not found: the answer is missing from your knowledge or worded too differently. Check the expected source, or add a Q&A that uses the customer’s wording.
- Answer fails: the source is found but the reply misses a fact. Make the source clearer, or check your instructions don’t tell the agent to leave that detail out.
Use test questions as a gate
Test questions can also stop a bad change before it goes live when changes are made from code or by a coding agent. The Totebot CLI runs them and fails when too few pass:--format junit writes a report most CI tools can show. Add --prompt-file proposed.md or --model <model id> to test instructions or a model that are not saved yet; the run compares them with your live agent.
Keep the questions in version control next to your instructions:
quality:read and quality:write scopes, which an owner turns on under Team settings → API keys → Edit access. Test runs started this way show up in the Runs list like any other run.