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

# Widget

> The chat widget holds the header, conversation, and chat bar on your storefront. Set its logo, accent color, and theme so it looks like your store.

The widget is where the conversation happens. It opens from a bar or a launcher on your storefront, and everything a shopper sees in the chat lives inside it: the header, the conversation, and the chat bar.

![The widget open beside a storefront, with the brand's name and logo in the header](https://mintcdn.com/crossword/1ix7eW-R8_36LH_u/images/widget/widget.png?fit=max\&auto=format\&n=1ix7eW-R8_36LH_u\&q=85\&s=900335efb86d36746f11423713177698)

The widget open beside a storefront, with the brand's name and logo in the header

## What it contains

```mermaid theme={null}
flowchart TB
  W["Widget"]
  W --> PARTS
  subgraph PARTS["Inside the widget"]
    H["Header<br/><small>history · new chat · expand · close</small>"]
    DI["Dynamic island<br/><small>shows what is happening</small>"]
    C["Conversation<br/><small>messages, cards, and states</small>"]
    B["Chat bar<br/><small>type · starters · photo upload</small>"]
  end
  PARTS -. "styled by" .-> CU["Customization"]
```

| Part | What it does |
| - | - |
| Header | Shows your brand name and logo, with controls for chat history, a new chat, expand, and close. During a handoff it shows the person's name. |
| Dynamic island | A small pill in the header that shows what is happening, such as searching, added to cart, order status, or a person joining. |
| Conversation | The messages, the [assistant reply](https://crossword.ai/docs/components/conversation/assistant-reply.md) with its cards, and states such as thinking, a person joining, or a turn that fails. |
| Chat bar | Where the shopper types or uploads a photo. It can show [conversation starters](https://crossword.ai/docs/components/conversation/conversation-starter.md) and a first answer before the chat opens. |

## Customization

You set how the widget looks once for the experience. It applies everywhere the widget appears.

| Setting | What it changes |
| - | - |
| Brand name and logo | What the header shows |
| Accent color | Buttons, chips, and highlights |
| Theme | Light or dark |
| Material | Glass or solid surfaces |
| Placement | Where the widget sits on the page. Read [Placements](https://crossword.ai/docs/components/widget/placements.md). |

## Related

> [card] [Placements](https://crossword.ai/docs/components/widget/placements.md)

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

> [card] [Conversation starter](https://crossword.ai/docs/components/conversation/conversation-starter.md)

> [card] [Escalation and handoff](https://crossword.ai/docs/agents/escalation-and-handoff.md)


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