top of page

How Are You Testing Your Retail AI Agent?

Writer: Jovanca Garnadi
Jovanca Garnadi
1 day ago
2 min read

A retail AI agent may be able to answer a straightforward order-tracking question. But real customer-service workflows rarely depend on the question alone.


A useful test may also need:

  • the customer’s account and order history;

  • the products and variants involved;

  • delivery dates and fulfilment status;

  • the company’s returns or cancellation policy;

  • information the agent must collect;

  • tools the agent is permitted to use;

  • and a clear definition of the correct outcome.


Preparing this context manually can become one of the most time-consuming parts of AI agent testing.


Datafactory is now in beta


Datafactory provides a structured starting point for building these test cases.


The beta launches with a retail customer-support benchmark, covering scenarios including:

  • customer identification;

  • order tracking;

  • cancellations and order changes;

  • returns and exchanges;

  • delivery problems.


Teams can explore the benchmark, choose scenarios relevant to their agents and customise the resulting cases using their organisation’s products, policies and use cases.



What goes into a generated test case?


A Datafactory test case can bring together:

  • a scenario and user goal;

  • an initial customer message;

  • instructions defining what the simulated customer knows;

  • supporting product, customer and order records;

  • relevant company policies;

  • information the agent must collect;

  • the expected outcome and success criteria;

  • and any changes that should be made to the supporting records.


This allows teams to generate different outcomes within the same scenario.


A return request, for example, might need to be accepted, refused or escalated depending on the order date, product condition and applicable policy.


The resulting test set can be reviewed and exported as JSON or Excel.


From a generic benchmark to your business rules


A benchmark offers a useful starting point, but an agent ultimately needs to be tested against the rules of the organisation deploying it.


The same scenario can produce different correct outcomes under different policies. What matters is whether the test case contains enough context to determine what the agent should do.


This is also why fair comparisons require shared scenarios, data and scoring criteria. In our earlier evaluation, we tested Intercom Fin and Zendesk against the same knowledge base and policy rules to identify where their behaviour diverged.



Turn the cases into repeatable validation


Generating test data is the beginning of the validation process.


Once useful cases have been defined, teams can rerun them after changing the agent’s model, prompt, knowledge sources, tools or workflow. This helps identify whether a change fixed the intended problem or introduced a new regression.


Our practical guide explains how Spec27 evaluations can also be connected to CI so important agent behaviours are checked repeatedly.



Try Datafactory


You can browse the retail benchmark without creating an account.


To customise the scenarios and generate a test set for your organisation, open Datafactory in Spec27 and select Create test set.



bottom of page