How store-bot-accuracy-test works
A store chatbot is a salesperson who never sleeps and never checks the price tag. It answers from whatever data it was given, and fills the gaps with confident guesses: last month’s price, a color you never made, a product you don’t sell, a 60-day return window you never offered, a “VIP50” discount code. Customers believe it, and you pay for it in refunds, returns and complaints.
store-bot-accuracy-test checks your bot against the truth:
- Your real catalog: it picks products, including sale items, sold-out items and products with colors and sizes, and asks about prices, stock and options.
- Your policies: returns, shipping costs and thresholds, delivery times, countries and payment methods, from a short facts file you fill in once.
- Traps: products you don’t sell, false claims about your policies, and requests for discount codes.
Every answer is graded with fixed rules and comes back as correct, wrong (with the reason and the bot’s own words) or needs a human look. You get a score for each topic and a list of what to fix first.
Try it
You need Node.js 18.17 or newer.
npx store-bot-accuracy-test init
npx store-bot-accuracy-test questions --catalog https://your-store.com --facts store-facts.json
Paste your bot’s answers into questions.csv, then:
npx store-bot-accuracy-test run --suite suite.json --answers questions.csv
If your bot has an API, the tool can ask it directly. It works with any JSON chat endpoint, OpenAI-compatible endpoints and your own code. See the README for examples.
Why I built it
I work on AI for e-commerce and on the security of AI systems. Most store chatbot reviews stop at “is it safe from attacks?”. The more common, quieter failure is the bot that is simply wrong about your own products. That is easy to measure, so it should be measured.
Free and open source under the MIT license. Want your store bot tested and fixed? Book a call.