Skip to main content

How to narrow a dynamic category with AI criteria

This page explains how to let an AI model keep only the products that fit a description, out of those a dynamic category's conditions select. Use it when the conditions can't express what you want, for example "only yoga mats, no straps or blocks". What each field and status means is described on the AI criteria page.

1. Set up an AI provider​

  • Go to Stores -> Configuration -> Mirasvit Extensions -> Developer -> AI Configuration.
  • Set Enable AI features to Yes, choose the provider and model, and enter the provider's API key.

2. Select the candidates with conditions​

  • Open a dynamic category in Catalog -> Categories and set its conditions as described in how to configure dynamic category.
  • Keep the conditions broad enough to include every product that might fit. The criteria only remove products; they never add one the conditions don't select.

3. Write the criteria​

  • Turn on AI criteria.
  • In Criteria, describe the products the category should hold in one to a few sentences, for example "Yoga mats only. Not straps, blocks or bags."
  • To use different criteria in a store view, switch the form to that store view and change them there.

4. Preview a sample​

  • Click Preview Products. A random sample of 25 candidates is judged against the criteria as they are in the form, and the list of judgements opens with each product's verdict and reason.
  • Adjust the criteria and preview again until the verdicts are what you want.
tip

A preview spends tokens only on products it hasn't judged with these criteria yet, and the pass reuses its judgements.


5. Save the category​

  • Click Save. A background pass starts, and the status block shows its progress.
  • The category keeps its current products until the pass completes, then holds only the products the model kept.
  • Click See how each candidate was judged to check every candidate's verdict.

If the pass fails, the status block names the cause. Fix it, for example the API key, and click Resume.