> ## Documentation Index
> Fetch the complete documentation index at: https://crossword.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Product card

> The product card shows one product in the conversation with its image, price, stock, and variants, so the shopper can add it to the cart in one step.

A product card shows one product and lets the shopper act on it without leaving the conversation. It is the most common card in Crossword, and every product collection is built from it. Its job is to turn a mention of a product into something the shopper can see, pick a variant of, and add to the cart in one step.

![A product card with a badge, rating, sale price, and actions](https://mintcdn.com/crossword/1ix7eW-R8_36LH_u/images/cards/product-card.png?fit=max\&auto=format\&n=1ix7eW-R8_36LH_u\&q=85\&s=31cb68d7ae9ce036c8a81c1f2df806db)

A product card with a badge, rating, sale price, and actions

## Anatomy

| Property | What it holds |
| - | - |
| Product info | The title, a short description, and any badges such as **New** or **Best seller**. |
| Image | The product image. |
| Price | The current price, and the original price when the product is discounted. |
| Availability | Whether the product is in stock, low in stock, or out of stock. Read [States](#states). |
| Variant selection | A selector for size, color, or other options, so the shopper can pick a variant on the card. |
| Buttons | A primary call to action such as **Add to cart**, plus secondary actions such as **View details** or **Compare**. |
| Wishlist save | A heart on the image that saves the product to the shopper's wishlist. Tapping it again removes it. |

Product data comes from your catalog. The card renders whichever product the Agent, or the component that included it, selects. You do not write a card per product.

## States

A card shows the state of the product, from your catalog, as a badge or ribbon and a change to its buttons.

| State | What the shopper sees |
| - | - |
| Sold out | A **Sold out** badge. **Add to cart** is replaced by **Notify me** or **Show similar**. |
| Low stock | A line such as **Only 3 left** under the price. |
| On sale | The sale price with the original price struck through, and a discount badge. |
| New | A **New** badge. |
| Preorder | A **Preorder** badge, the expected ship date, and **Preorder** in place of **Add to cart**. |

## Where it appears

A product card never shows on its own. One of these components includes it. Where that component carries a rule, the rule decides when the shopper sees it.

* In the [welcome message](https://crossword.ai/docs/components/conversation/welcome-message.md), for example a new arrival every shopper sees when the widget opens. For the product a shopper arrived to see from a video or an ad, use a proactive message, because the welcome message is the same for everyone and conversation starters belong to the Journey, not the arrival source.
* In a [proactive message](https://crossword.ai/docs/components/conversation/proactive-message.md), for example a nudge on a product page that shows the item with its size selector ready.
* In the [assistant reply](https://crossword.ai/docs/components/conversation/assistant-reply.md), where the Agent chooses it. The Agent shows one card when there is a single clear match and a [product collection](https://crossword.ai/docs/components/cards/product-collection.md) when there are several.
* On a page, inside a [recommendation and upsell section](https://crossword.ai/docs/components/dynamic/overview.md), for example three add-ons on the cart page. On a page the card usually arrives as part of a collection rather than alone.

The card is also the building block of other components. A [product collection](https://crossword.ai/docs/components/cards/product-collection.md) is a set of product cards. A [comparison card](https://crossword.ai/docs/components/cards/comparison-card.md) shows each compared product as a card. [Complete the look](https://crossword.ai/docs/components/interactive/complete-the-look.md) shows each piece of the look as a product card.

## Rules

A product card carries no rule. It shows because the welcome message, or a proactive message or page section with a rule, included it, or because the Agent composed it into the assistant reply. The rule that decides whether and when the shopper sees it lives on that component, not on the card. The welcome message is the exception: it carries no rule and is global, so every shopper sees what it embeds. Read [Rules](https://crossword.ai/docs/orchestration/rules.md).

## Example

A single product the Agent recommends, marked new and on sale.

```yaml theme={null}
Image: Photo carousel with page dots and an expand control
Badge: New
Brand and title: Shown
Rating: Stars with the review count
Price: Current price with the original struck through
Actions: Save to wishlist, ask about this product, Add to cart
```

The shopper can page through the photos, tap the heart to save the product, ask the Agent about it, add it to the cart, or expand it to see more.

## Related

> [card] [Product collection](https://crossword.ai/docs/components/cards/product-collection.md)

> [card] [Assistant reply](https://crossword.ai/docs/components/conversation/assistant-reply.md)

> [card] [Dynamic components](https://crossword.ai/docs/components/dynamic/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.