Blog · A self-service help assistant
Eighty test questions between an edit and a wrong answer
Tests that stop the build turn "keep the answers accurate" into a rule.
In this seriesShow all 5 partsHide the list
- 01Why I built my help assistant without AI
- 02What my help assistant does when it doesn't know
- 03The feature I built and cut on the same day
- 04Eighty test questions between an edit and a wrong answer
- 05How working with an AI coding assistant shaped the build
A help assistant is only as good as the documents behind it. If the help text is wrong, the assistant is wrong, confidently and at any hour. So the most important part of this project wasn't the search. It was keeping the answers accurate as the app changes.
One source of truth
Every answer is built from the app's own help topics, shown the way a user sees them in the app, plus the questions on the app's website. The answers are rebuilt every time the website is published. When I fix a help topic, the assistant's answer changes with it. There's nothing separate to keep in sync.
That only works if the help text is good, and it had been rewritten a week earlier to a written style guide. Topics are grouped by task, articles are short, and the same thing always has the same name, enforced by a fixed word list. Each topic has a date it was last reviewed and a list of search words: the words people actually type that the article itself doesn't use.
Eighty questions stand guard
Every build runs 80 realistic test questions. About a third of them are misspelled, because that's how people ask. There are also questions that must get no answer, so the assistant can't start guessing. If any question gets the wrong answer, the build stops. One wrong answer blocks the release.
Fixing the documents fixes the assistant
The night after launch, I asked for the help text to be gone over with a fine-tooth comb, made factual and direct, because it was maybe over-explained. My AI coding assistant ran six reviews in parallel, each checking the help text's labels and claims against the app's actual code. They found dozens of mistakes: button names that didn't match the screen, wrong details about how often a file is read and how many backups are kept, and gaps in what the privacy section said.
Fixing the help text fixed the assistant's answers at the same time. One fix was in the search itself: "app" had been treated as a filler word, so "how do I install the app" missed the install topic. A new test question makes sure it never misses again.
The day the tests caught a regression
On October 13, the website build stopped. A help edit from the day before had broken the test questions, and there were two failures, one hidden behind the other. One question now matched the wrong topic. Another became falsely sure of an answer because two very common words happened to appear in a topic, so the assistant would have answered when it should have asked.
The fix didn't touch the tests. It reworded one line in a help topic, added a few search words, and reworded two sentences to remove the accidental matches. Then it checked five similar phrasings, all 244 of the website's tests, and the full build. I approved it with "yes please fix it."
I have a firm rule on every project: never change a test to make a change pass. If a test fails, the change is what gets fixed.
The numbers
The assistant knew 185 answers on the day it was built, 190 after the review, and 210 when the app's website was published on October 14. Every one of those versions passed the same 80 questions first.
The one rule
Eighty real questions run before every change, including some it has to refuse. When one fails, I fix the document, not the test. Everything else depends on that.