Skip to Content

Product types

The ten product types, the products each covers and the photo it needs from the shopper.

productType tells the AI where the product goes on the shopper's body, and so what photo it needs. It is required, and it must be one of the ten values below. Pick the type by where the product is worn, not by what it is called in your store.

productTypeIn the dashboardForThe shopper's photo
full-bodyFull BodyDresses, jumpsuits, coats, suits, setsHead to toe, standing
upper-bodyUpper BodyT-shirts, shirts, sweaters, hoodies, jackets, blazers, tops, blousesFrom the hips up, arms relaxed, facing the camera
lower-bodyLower BodyJeans, pants, skirts, shorts, leggingsFrom the waist to the feet, standing
footwearFootwearSneakers, shoes, boots, sandalsBoth feet in the frame, standing on a plain floor
headwearHeadwearBeanies, caps, hats, bucket hats, headbandsHead and shoulders, the whole head in view, no hat
eyewearEyewearSunglasses, optical glassesThe face straight on, eyes visible, no glasses
neckNeck & EarsEarrings, necklaces, chokers, scarves, kerchiefsNeck and ears visible: hair back, open neckline
wristWrist & HandsWatches, bracelets, rings, glovesA close-up of the wrist, sleeve pulled back, hand relaxed
bagBagsBags, backpacks, clutchesFull body, with one hand or shoulder free
waistWaistBelts, waist bagsThe waistline visible, top tucked in, standing

The first time a shopper tries on a product of a type, AI Try-On shows them two good and two poor example photos for it, so you do not need to explain this on your page.

<button type="button" data-vizbl-ai-try-on-dialog data-vizbl-ai-try-on-product-type="footwear" ...>
  Try on
</button>

A missing or unknown type stops the dialog from opening, with an error in the console that lists the ten values. The TypeScript type ProductType lists them too.

One key per type

The AI Try-On dashboard keeps one widget per product type. Each widget has its own key, and the dashboard reports try-ons and spend per widget: give each button the key of its type's widget so they count there.

The product image

productImageSrc is the image the AI puts on the shopper. The shopper's browser downloads it, so:

  • Use an absolute address that loads in a new browser tab, such as https://your-store.example/images/aviator.jpg.
  • Allow other sites to load it. The image's host must send an Access-Control-Allow-Origin header that admits your store's origin, as most store CDNs do. Without it the try-on fails after the shopper's photo is chosen.
  • Show the product alone, whole and on a plain background, like a catalogue photo. A photo of a model wearing it, or of several products, gives the AI more to guess.

productName is shown in the dialog beside the image and is required as well.

On this page