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

# Proactive message

> Proactive messages reach shoppers before they type, such as a sizing offer after a pause. Each one belongs to a Journey and shows when its rule is met.

A proactive message is one Crossword sends without waiting for the shopper to type. It appears as a nudge from the widget while the shopper is on a page: a sizing offer after fifteen seconds of silence, or "Still deciding between these?" after they open two product pages. Each proactive message belongs to a [Journey](https://crossword.ai/docs/orchestration/journeys.md), carries a "shows when" rule, and routes to a named Agent. When the shopper replies or taps a chip, the message goes straight to that Agent.

![An inactivity nudge offering to narrow a long collection](https://mintcdn.com/crossword/1ix7eW-R8_36LH_u/images/conversation/proactive-message.png?fit=max\&auto=format\&n=1ix7eW-R8_36LH_u\&q=85\&s=eb6147ede14a75bb1445f92fd919c223)

An inactivity nudge offering to narrow a long collection

## What it contains

| Property | What it holds |
| - | - |
| Content | The text and media the message carries |
| Embedded components | Any card or interactive component from the [Component library](https://crossword.ai/docs/components/overview.md), plus an optional suggestion set |
| Presentation | How the message appears on the surface, such as a widget bubble or an expanded panel |
| Shows when | The rule that decides when it appears inside the active Journey, with optional delivery restrictions |
| Routes to | The Agent that answers when the shopper replies or taps a chip |
| Dismiss behavior | What happens when the shopper closes the message, and whether it can return |

The text and media belong to the proactive message. The cards it embeds are plain components with no rule of their own. They show because the message that carries them was delivered.

A proactive message answers one of two questions, and the answer decides where it lives. **Contextual** asks what should happen right now, given this session. On a product page, fifteen seconds idle, show sizing help. That belongs in a Journey, as a message with a "shows when" rule. **Lifecycle** asks what should happen to this person over the next hours or days. Cart abandoned, wait 30 minutes, send a message, wait 6 hours, check for purchase. That belongs in a Campaign. A Campaign step can deliver a proactive message directly. The message then carries a Campaign reference instead of a rule, and the Campaign's own delivery limits and suppression govern it. Read [Journeys vs campaigns](https://crossword.ai/docs/orchestration/journeys-vs-campaigns.md#proactive-messages-which-one) for the full test.

## Rule

Because it interrupts, a proactive message carries a "shows when" rule. The message can show only while its Journey is the active one, selected by the shopper's [entry point](https://crossword.ai/docs/orchestration/rules.md#entry-points). Inside that Journey, it shows when its rule is met.

| Rule field | What you can set |
| - | - |
| Conditions | Page or URL, arrival source and UTM parameters, segment membership, logged in, past orders, cart contents, time on page, scroll, and inactivity |
| Condition combinations | All, any, and exclusions |
| Delivery restrictions | Frequency cap, suppression, and repeat behavior after the shopper dismisses or acts on it |

Conditions combine. A rule can require that the shopper is on a product page **and** has been idle for fifteen seconds **and** has nothing in the cart.

A message that has hit its frequency cap is skipped even when its rule is met. When the shopper moves to a page that selects a different Journey, that Journey's proactive messages apply instead.

## Examples

Two proactive messages. Each describes the configuration, not the exact copy.

### Inactivity

Reaches a shopper who has stopped on a long page without acting.

```yaml theme={null}
Journey: Product Discovery
Shows when: The shopper is on a collection with many products and has not scrolled or tapped for a few seconds
Message: Acknowledges the long list and offers to pick a few
Buttons: One to ask anything, one to accept the picks
Routes to: Product Discovery Agent
Delivery: Once per session
```

### Home welcome

Introduces the assistant shortly after a shopper lands on the home page, before they open the chat.

```yaml theme={null}
Journey: Default
Shows when: The shopper has been on the home page for a few seconds and has not opened the chat
Message: Introduces the assistant and what it can help with, such as discovering products and comparing options
Buttons: None; the shopper replies in the chat bar or closes the card
Routes to: Product Discovery Agent
Delivery: Once per session
```

![A home page welcome nudge above the chat bar](https://mintcdn.com/crossword/1ix7eW-R8_36LH_u/images/conversation/proactive-message-home.png?fit=max\&auto=format\&n=1ix7eW-R8_36LH_u\&q=85\&s=2979a207d22dd754e7c740e9ef0ed688)

A home page welcome nudge above the chat bar

Every condition you can use in "shows when" is in [Rules](https://crossword.ai/docs/orchestration/rules.md).

## Related

> [card] [Campaigns](https://crossword.ai/docs/orchestration/campaigns.md)

> [card] [Journeys vs campaigns](https://crossword.ai/docs/orchestration/journeys-vs-campaigns.md)

> [card] [Rules](https://crossword.ai/docs/orchestration/rules.md)

> [card] [Journeys](https://crossword.ai/docs/orchestration/journeys.md)


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