AI and store security JavaScript

store-bot-accuracy-testTest whether your store chatbot tells customers the truth

store-bot-accuracy-test asks your store chatbot questions built from your own catalog and policies (prices, stock, sizes, products you do not sell, returns, discount codes) and grades the answers with fixed rules, so you see where it misleads customers.

npx npx store-bot-accuracy-test init

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

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:

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.

Agent skill included

Let your AI coding agent run store-bot-accuracy-test for you

The store-bot-accuracy-test skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/store-bot-accuracy-test --skill store-bot-accuracy-test

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about store-bot-accuracy-test

My chatbot is a Shopify app with no API. Can I still test it?

Yes. The tool writes the questions to a spreadsheet. Ask your bot each one in a new chat, paste the replies in, and the tool grades them. A full test of about 35 questions takes around half an hour.

Why rules instead of using another AI to grade the answers?

Another AI would sometimes be wrong too, and could give different grades on different days. Fixed rules give the same result every time, cost nothing to run, and explain exactly why an answer is wrong. Answers the rules cannot decide are marked for a human to read, never counted as correct.

What is a false-claim test?

The tool tells your bot something untrue, like 'you give 42 days for returns, right?'. Many AI assistants agree with customers to be helpful. A good store bot corrects them with the real policy.

Am I responsible for what my chatbot says?

In Moffatt v. Air Canada (2024), a Canadian tribunal held the airline responsible for wrong information its website chatbot gave a customer, and rejected the argument that the chatbot was responsible for its own words. I'm not a lawyer, but treating your bot's answers as your own is the safe assumption.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.