> ## 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.

# Comparison card

> The comparison card sets two or more products side by side across the attributes that matter and explains the differences, so the shopper can choose.

A comparison card lays two or more products side by side across the attributes that matter and explains the differences. It answers the question shoppers ask most often once they have narrowed the field: which one of these should I pick? It turns a list of specifications into a decision the shopper can make in one glance.

![A comparison card across five attributes](https://mintcdn.com/crossword/1ix7eW-R8_36LH_u/images/cards/comparison-card.png?fit=max\&auto=format\&n=1ix7eW-R8_36LH_u\&q=85\&s=1584e42a36f9220d64eb7f1708d783a2)

A comparison card across five attributes

## Anatomy

The diagram shows a comparison card as its items, its attribute rows with their values and explanations, the optional recommendation, and the controls.

```mermaid theme={null}
flowchart TB
  CMP["Comparison card<br/><small>no rule</small>"]
  CMP --> ITEMS
  CMP --> ATTR
  CMP --> REC["Recommendation<br/><small>optional: which product and why</small>"]
  CMP --> CTRL
  subgraph ITEMS["Items, two or more products"]
    I1["Product A<br/><small>image, title, price</small>"]
    I2["Product B<br/><small>image, title, price</small>"]
  end
  subgraph ATTR["Attributes, one row each"]
    A1["Attribute<br/><small>such as weight or cushioning</small>"]
    A1 --> V["Values<br/><small>one per product</small>"]
    A1 --> E["Explanation<br/><small>what the difference means for the shopper</small>"]
  end
  subgraph CTRL["Selection or next-step controls"]
    C1["Choose Product A"]
    C2["Show me a third option"]
  end
  PC["Product card"]
  ITEMS -. "each shown as" .-> PC
```

| Property | What it holds |
| - | - |
| Items | The products being compared, each shown as a [product card](https://crossword.ai/docs/components/cards/product-card.md) with its image, title, and price. |
| Attributes | The rows of the comparison, such as weight, material, or cushioning. |
| Values and explanations | The value of each attribute for each product, with a short explanation of what the difference means for the shopper. |
| Recommendation | Optional. Which product the Agent suggests and why, based on what the shopper said. |
| Selection or next-step controls | Buttons that let the shopper pick one, such as **Choose Product A**, or move on, such as **Show me a third option**. |

The attributes can be fixed for a category, such as the three specifications that always matter for running shoes, or chosen by the Agent from what the shopper asked about.

## Where it appears

A comparison card never shows on its own. One of these components includes it.

* In the [welcome message](https://crossword.ai/docs/components/conversation/welcome-message.md), for example your two best sellers side by side, shown to every shopper when the widget opens.
* In a [proactive message](https://crossword.ai/docs/components/conversation/proactive-message.md), for example when a shopper has viewed two products in a row and stalled. A message such as **Still deciding between these?** can carry the card.
* In the [assistant reply](https://crossword.ai/docs/components/conversation/assistant-reply.md), where the Agent chooses it. The shopper asks to compare, or taps a follow-up suggestion such as **Compare the first two**, and the Agent answers with the card.
* On a page, inside a [comparison section](https://crossword.ai/docs/components/dynamic/overview.md), for example on a product page to compare the product with its nearest alternative.

## Rules

A comparison card carries no rule. It shows because the welcome message, or a proactive message or comparison 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

Products side by side, compared on the attributes that matter for the choice.

```yaml theme={null}
Products: Two or more, each with an image and title; more scroll in from the right
Attributes: Best for, cushioning, weight, upper, price
Details: A View link on each product that opens its page
```

The shopper reads down a row to see how the products differ, and scrolls sideways when there are more than two.

## Related

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

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

> [card] [Follow-up suggestions](https://crossword.ai/docs/components/conversation/follow-up-suggestion.md)

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


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