Skip to main content
Test questions are the questions your agent must always get right. Totebot runs them after every training and before you save a new prompt or model, so you see what a change fixes or breaks before your customers do. Open it from AI Lab → Test questions in your agent’s sidebar. To run them on an unsaved change, use the Experiment tab.
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.
Each question needs an expected source, at least one key fact, or both. You can add up to 40 questions per agent.
Start with the 10 to 20 questions customers ask most, and the ones where a wrong answer would hurt, such as prices, delivery times, and return rules.

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.
During a test, the agent can’t send emails, save leads, open tickets, call your actions or MCP servers, or send MyRent inquiries. Store tools stay on so the agent can look up products, so a test question that asks to add something to the cart can still create a cart in your store, but never an order. Test runs don’t use messages from your plan.

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.
Only one run per agent happens at a time.

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 Show bot reasoning steps in the live preview to see what the agent searched for when you ask the question yourself.

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:
The command waits for the run and exits with code 10 when fewer than 90% of the questions pass, or when the run fails, so a CI job (GitHub Actions, GitLab CI and others) stops there. --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:
Import matches questions by their text. It adds new ones and updates changed ones, and never deletes any. The key the CI job uses needs the 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.