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.
productType | In the dashboard | For | The shopper's photo |
|---|---|---|---|
full-body | Full Body | Dresses, jumpsuits, coats, suits, sets | Head to toe, standing |
upper-body | Upper Body | T-shirts, shirts, sweaters, hoodies, jackets, blazers, tops, blouses | From the hips up, arms relaxed, facing the camera |
lower-body | Lower Body | Jeans, pants, skirts, shorts, leggings | From the waist to the feet, standing |
footwear | Footwear | Sneakers, shoes, boots, sandals | Both feet in the frame, standing on a plain floor |
headwear | Headwear | Beanies, caps, hats, bucket hats, headbands | Head and shoulders, the whole head in view, no hat |
eyewear | Eyewear | Sunglasses, optical glasses | The face straight on, eyes visible, no glasses |
neck | Neck & Ears | Earrings, necklaces, chokers, scarves, kerchiefs | Neck and ears visible: hair back, open neckline |
wrist | Wrist & Hands | Watches, bracelets, rings, gloves | A close-up of the wrist, sleeve pulled back, hand relaxed |
bag | Bags | Bags, backpacks, clutches | Full body, with one hand or shoulder free |
waist | Waist | Belts, waist bags | The 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-Originheader 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.