# Smart Chat Triggers (/docs/portal/webchat/smart-chat-triggers)





**Smart Chat Triggers** invite a shopper to chat when they do something on your website that
suggests they want help, such as spending a while on one vehicle or browsing several. Open
**Webchat**, then **Smart Chat Triggers**.

<img alt="Webchat Smart Chat Triggers" src="__img0" />

Triggers are off by default. Turn on **Enable Smart Chat Triggers** to let them run on your
website. While it's off, the rest of the page is greyed out and nothing on it has any effect.

Kinds of trigger [#kinds-of-trigger]

| Trigger             | Fires when the shopper…                                       |
| ------------------- | ------------------------------------------------------------- |
| **Time on page**    | Stays on one page for a number of seconds                     |
| **Scroll reversal** | Scrolls back up a number of times, as if hunting for a detail |
| **Vehicle revisit** | Comes back to the same vehicle a number of times              |
| **Pages browsed**   | Has viewed a number of different vehicle detail pages         |

You can add the same kind more than once, to invite differently on different pages. For example,
one **Time on page** trigger for your homepage and another for vehicle pages, each with its own
message.

Set up a trigger [#set-up-a-trigger]

<Steps>
  <Step>
    Click 

    **Add trigger**

     and choose the kind. The new trigger opens, switched off.
  </Step>

  <Step>
    Set the threshold, such as 

    **Seconds on page**

     or 

    **Visits to the same vehicle**

    . The description at the top explains what it means with the number you entered.
  </Step>

  <Step>
    Choose the 

    **Page types**

     it runs on. Leave it empty for any page.
  </Step>

  <Step>
    Choose the 

    **Invite Action**

     and set the 

    **Trigger Priority**

    .
  </Step>

  <Step>
    Write the 

    **Message**

    , if the action has one.
  </Step>

  <Step>
    Turn the trigger's switch to 

    **On**

     and click 

    **Done**

    .
  </Step>

  <Step>
    Click 

    **Save**

     at the bottom of the page.
  </Step>
</Steps>

Changes in a trigger aren't saved until you press **Save** on the page.

Each trigger is listed as a card showing its kind, its page types, its threshold, action and
priority, and the start of its message. Click a card to edit it. Use the switch on the card to turn
it on or off, and the bin icon to remove it. A removed trigger and its messages are deleted when
you save.

Page types [#page-types]

Page types come from your [Conversation Starters](/docs/portal/webchat/conversation-starters).
Until you've saved conversation starters, the built-in **VLP**, **VDP**, and **TRADE\_IN** are
offered instead.

If a trigger uses a page type that no longer exists, it's flagged, because it will never fire
there. Deleting a page type in Conversation Starters removes it from your triggers. A trigger left
with no page types is switched off.

Invite Action [#invite-action]

| Action           | What the shopper sees                                                             |
| ---------------- | --------------------------------------------------------------------------------- |
| **Whisper pill** | A small prompt beside the chat button                                             |
| **Starter card** | A card with suggested questions to start with. It's the only action with buttons. |
| **Toast**        | A short message bubble                                                            |
| **Open chat**    | The chat panel opens, showing the page's conversation starter                     |
| **Ripple only**  | The chat button pulses, with no message                                           |

**Open chat** and **Ripple only** have no message of their own.

Trigger Priority [#trigger-priority]

When two triggers fire at the same moment, the one with the higher number wins and the others
are skipped on that page. If you have one trigger for every page and another for vehicle pages,
give the vehicle page trigger the higher priority and the same or a shorter threshold.
Otherwise the every-page trigger fires first.

Message [#message]

The message is what the invite says. Leave it blank to use the page's conversation starter.

* Write a message for each language on its own tab. **Translate … to other languages** fills the
  other tabs from the one you're on. Check the translation before saving.
* Type `@` to insert a variable. Variables work as they do in
  [conversation starters](/docs/portal/webchat/conversation-starters#messages-and-buttons).
  Vehicle details such as `{model}` are only available when all the trigger's page types are
  vehicle pages.
* Keep it within 140 characters so the invite doesn't cut it off. A longer message can still be
  saved.
* A **Starter card** also has buttons, set up the same way as conversation starter buttons.

Configuration [#configuration]

These settings apply to every trigger, so a shopper who sets off several isn't invited over and
over.

| Setting                                                | What it does                                                                                                                                             |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Max invites per session (default: 1)**               | The most invites a shopper sees in one visit                                                                                                             |
| **Don't invite while a conversation is in progress**   | No invites while the shopper is already chatting                                                                                                         |
| **Stop inviting once the shopper dismisses an invite** | No more invites after the shopper closes one                                                                                                             |
| **Invite dismissal lasts**                             | Shown when the switch above is on. **This visit only** lets invites return next visit. **Remembered on this device** keeps them dismissed across visits. |
| **Mobile toast position**                              | Where **Toast** invites appear on phones: **Bottom, above the chat button** or **Top of the page**                                                       |

Dealer website invites [#dealer-website-invites]

**Allow dealer website invites** lets your own website show an invite through the
[webchat SDK](/docs/webchat/sdk), for example after a shopper has looked through a vehicle's
photos. These invites follow the same limits as triggers. It does nothing unless your website has
been set up to use it.

Saving [#saving]

**Save** checks every trigger first. If one has a problem, such as a missing threshold, a message
names the trigger and the problem, and nothing is saved. **Cancel** puts back what was last saved.
