

# Get started with Predictive Intents

Predictive Intents use a managed AI model, the Intent Model, in Customer Profiles. It predicts what a customer needs right now, based on their live web activity. Most profile data describes what a customer did in the past. Predictive Intents focus on the customer's current and recent sessions, so you can act while the customer is still engaged.

Predictive Intents work without any model setup. You don't provide training data, label events, or train and deploy a model. You turn on the Intent Types that you need, and Customer Profiles can generate predictions for any profile that has enough recent web activity.

## Intent Types
<a name="predictive-intents-intent-types"></a>

Predictive Intents support the following Intent Types. You can turn on any combination of them.


| **Intent Type** | **What it tells you** | **Output** | 
| --- | --- | --- | 
| Web Session Summary | What the customer did in their recent web session | A natural language summary of about 2–4 sentences | 
| Price Sensitivity | How strongly price and discounts are likely to influence the customer | `HIGH` or `LOW` | 
| Upgrade / Upsell Propensity | How likely the customer is to accept an upgrade or a higher-tier offer | `HIGH` or `LOW` | 
| Last Search Intent | What the customer was most recently trying to find or do | A short phrase of up to 255 characters | 

The examples in this section use an auto insurance customer whose premium increased at renewal.

### Web session summary
<a name="predictive-intents-web-session-summary"></a>

Summarizes what the customer did in their latest browsing session, including the pages that they visited, the products that they viewed, and the actions that they took, such as searches and add-to-cart actions. AI agents and human agents can use the summary to understand what the customer was doing without asking.

*Example output:* "The customer viewed their renewal notice, reran the quote tool with a higher deductible, read the home and auto bundle page, and opened the cancellation FAQ."

### Price sensitivity
<a name="predictive-intents-price-sensitivity"></a>

Indicates how strongly price and discounts are likely to influence the customer. Behaviors that can raise price sensitivity include sorting by price, viewing discounted items, comparing prices, and searching for promotions.

*Example output:* `HIGH`

### Upgrade or upsell propensity
<a name="predictive-intents-upgrade-upsell-propensity"></a>

Indicates how likely the customer is to be interested in an upgraded or additional product, plan, or service. Behaviors that can raise upsell propensity include viewing premium features, comparing tiers, and reading upgrade or bundle pages.

*Example output:* `HIGH`

### Last search intent
<a name="predictive-intents-last-search-intent"></a>

Describes what the customer is trying to accomplish or needs help with, based on their most recent activity.

*Example output:* "Customer wants to lower their bill and might cancel their policy."

### How you can use Predictive Intents
<a name="predictive-intents-how-you-can-use"></a>
+ **Proactive outreach** – Outbound campaigns use intent filters to send event-triggered messages only when the customer's current intent matches. For example, you can send a bundle discount only to customers whose price sensitivity is `HIGH`.
+ **Agentic conversations** – Connect AI agents read the customer's intent when a conversation starts. The AI agent can help from the first message, and the customer doesn't need to repeat what they were just doing.
+ **Agent assistance** – When a conversation is transferred to a human agent, the same context is available in the agent workspace.
+ **Knowing when not to sell** – When a customer's intent is to get help, such as filing a claim, and their upsell propensity is `LOW`, you can hold back offers and focus on resolving their request.
+ **Your own applications** – Retrieve predictions by using the [BatchGetIntentForProfile](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-customer-profiles_BatchGetIntentForProfile.html) API, and use them to personalize your websites and mobile apps.

## How Predictive Intents work
<a name="predictive-intents-how-it-works"></a>

Predictive Intents collect customer web activity, analyze recent interactions by using a managed AI model, and generate intent predictions that you can use across Connect Customer and in your own applications. The process has four stages:

1. **Customer activity:** Customers browse your website, search for products or services, view pages, and add items to their carts.

1. **Collect:** The Connect Customer web data tracker captures customer interactions, including clicks, searches, and page content, and sends the events to Customer Profiles.

1. **Store and predict:** Customer Profiles stores the events as `WebAnalytics-Clickstream` objects that are associated with the customer profile. After an administrator turns on the supported Intent Types, the Intent Model uses a managed AI model to analyze recent customer sessions and generate predictions, including web session summaries, price sensitivity, upgrade or upsell propensity, and last search intent. No model training is required.

1. **Use:** You can use intent predictions in the following ways:
   + **Outbound campaigns:** Evaluate intent filters when an event trigger fires. For example, send a promotional message after a cart-abandonment event only when the customer's price sensitivity matches the configured condition. Supported channels include email, SMS, and web notifications.
   + **Connect Customer AI agents:** Provide recent customer activity and predicted intent as context for self-service AI agents and agent-assisted interactions.
   + **APIs:** Use `BatchGetIntentForProfile` to retrieve intent predictions and personalize web and mobile applications.

**Note**  
Predictive Intents don't require an item catalog or the Recommendations capability.

The following diagram shows the four stages: customer activity on your website, collection by the web data tracker, storage and prediction in Customer Profiles, and use of the predictions in outbound campaigns, AI agents, and the `BatchGetIntentForProfile` API.

![Flowchart of the four stages of Predictive Intents: customer activity, collect with the web data tracker, store and predict in Customer Profiles, and use in outbound campaigns, AI agents, and the BatchGetIntentForProfile API.](https://docs.aws.amazon.com/connect/latest/adminguide/images/predictive-intents-how-it-works-diagram.png)


### Input data
<a name="predictive-intents-input-data"></a>

Predictive Intents use the web activity that's stored on the customer's profile as `WebAnalytics-Clickstream` objects. This activity includes:
+ **Clickstream events** – Clicks, searches, form events, cart actions, and time spent on a page.
+ **Page content** – What the customer saw on each page they viewed, such as product names, prices, and plan details.

The web data tracker captures both types of data automatically. Events reach the customer's profile within a few seconds.

### How the Intent Model generates predictions
<a name="predictive-intents-how-model-generates"></a>
+ **It uses recent activity.** The Intent Model analyzes the customer's current session and recent sessions, and gives the most weight to the latest activity. A session ends when its session ID changes or after inactivity.
+ **It generates only the Intent Types that you turn on.**
+ **It requires a minimum amount of activity.** A profile needs at least three clickstream events. If a profile has less activity, the Intent Model returns no prediction instead of an unreliable one.
+ **It returns structured output.** Price sensitivity and upgrade or upsell propensity return a level. Web session summary and last search intent return natural language text.

### When predictions are generated
<a name="predictive-intents-when-generated"></a>

Customer Profiles generates a prediction in real time, when a consumer requests it.


| **Consumer** | **When the prediction is generated** | 
| --- | --- | 
| Outbound campaigns | After an event matches the event conditions of a trigger, and before the intent filter is evaluated | 
| Connect AI agents | When the AI agent requests the customer's intent during a conversation | 
| Your application | When your application calls the `BatchGetIntentForProfile` API | 

**Note**  
Web Session Summary and Last Search Intent results are cached for 1 hour. Price Sensitivity and Upgrade / Upsell Propensity results are cached for 24 hours.

### Data freshness and missing predictions
<a name="predictive-intents-data-freshness"></a>
+ **Predictions use the latest available data.** A prediction is based on the activity that has reached the profile when the prediction is generated. It might not include the customer's activity from the last few seconds.
+ **Missing predictions don't cause errors.** If a prediction isn't available, the experience continues without it. For example, an AI agent continues the conversation, and an outbound campaign with an intent filter doesn't send the message.

## Prerequisites
<a name="predictive-intents-prerequisites"></a>

Before you use Predictive Intents, complete the following tasks in your Connect Customer instance:
+ **Turn on Customer Profiles.** For more information, see [Enable Customer Profiles for your Connect Customer instance](enable-customer-profiles.md).
+ **Set up a web activity source.** Predictive Intents generate predictions from how visitors interact with your website.
+ **Associate events with the correct profiles.** Make sure that each customer's web events are linked to that customer's profile.
+ **Configure security profile permissions.** Turn on **Customer Profiles - Predictive Insights** in the security profiles of the users who manage Predictive Intents, with the following permissions:
  + **View** – List and view Predictive Insights.
  + **Edit** – Turn individual Intent Types on or off.
+ **Check Region availability.** Make sure that Predictive Intents are available in your AWS Region. For more information, see [Predictive Insights (Recommendations and Predictive Intents) API availability by Region](regions.md#customerprofiles_predictiveinsightsregion).

## Step 1: Set up web activity collection
<a name="predictive-intents-step-1-web-activity"></a>

Use the web data tracker to collect web activity. The web data tracker runs with the Connect Customer communications widget. It automatically captures clicks, searches, form events, time on page, and page content, with no changes to your website code.

**To set up the web data tracker**

1. In the Connect Customer admin website, open the web data tracker settings.

1. Add the web data tracker to your website.

1. Choose the `WebAnalytics-Clickstream` object type template.

1. To verify the setup, browse your website as a test user, and then confirm that events appear on the test user's profile.

For more information, see [Web data tracker and web notification](customer-profiles-web-tracker-and-notification.md).

## Step 2: Turn on Intent Types
<a name="predictive-intents-step-2-turn-on"></a>

You can turn on Intent Types in the Connect Customer admin website or by using the API. Customer Profiles generates, returns, and makes available as intent filters only the Intent Types that you turn on.

### Turn on Intent Types in the Connect Customer admin website
<a name="predictive-intents-turn-on-admin-website"></a>

**To turn on an Intent Type**

1. Log in to the Connect Customer admin website.

1. In the navigation menu, choose **Customer Profiles**, **Predictive Insights**.

1. Choose the **Intents** tab. The tab lists each Intent Type and its status. If you haven't turned on any Intent Types, all of them show the status **Disabled**.

1. Choose **Enable** next to each Intent Type that you want to use. A success banner confirms each change.

The following screenshot shows the **Intents** tab with all Intent Types disabled. Each Intent Type shows the status **Disabled** and an **Enable** action.

![Intents configuration table with four disabled Intent Types: Price sensitivity, Upgrade/upsell propensity, Last search intent, and Web session summary. Each row shows a description and an Enable action button.](https://docs.aws.amazon.com/connect/latest/adminguide/images/predictive-intents-intents-tab-disabled.png)


After you enable **Price sensitivity**, a green banner confirms the change and the Intent Type shows the status **Enabled**, as shown in the following screenshot.

![Predictive Insights interface with two sections: Recommendations and Intents. Green banner confirms price sensitivity feature is enabled. Table displays price sensitivity intent with "Enabled" status.](https://docs.aws.amazon.com/connect/latest/adminguide/images/predictive-intents-intent-enabled.png)


**Important**  
Turning off an Intent Type affects it across the entire domain. Before you turn off an Intent Type, make sure that no active campaigns or AI agent workflows use it.

**To turn off an Intent Type**

1. On the **Intents** tab, choose **Disable** next to the Intent Type.

1. In the confirmation dialog box, choose **Disable**.

The following screenshot shows the confirmation dialog box for disabling **Price sensitivity**. The dialog box warns that disabling an intent turns it off for the domain, and asks you to confirm that the intent isn't used in active campaigns or AI agent workflows before you continue.

![Modal dialog for disabling "Price sensitivity" intent. Warning message states disabling turns off the intent domain-wide and to confirm it's not used in active campaigns or AI workflows. Two buttons: Cancel and Disable.](https://docs.aws.amazon.com/connect/latest/adminguide/images/predictive-intents-disable-dialog.png)


### Turn on Intent Types by using the API
<a name="predictive-intents-turn-on-api"></a>

To turn on an Intent Type, use the [PutIntentDefinition](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-customer-profiles_PutIntentDefinition.html) API. Each request replaces the domain's whole intent definition, so include every Intent Type and set `Enabled` to `true` or `false` for each one.

```bash
aws customer-profiles put-intent-definition \
    --region your-region \
    --domain-name your-domain-name \
    --intent-domain DEFAULT \
    --intents '[
      {"PriceSensitivityConfig": {"Enabled": true}},
      {"UpgradeUpsellPropensityConfig": {"Enabled": false}},
      {"LastSearchIntentConfig": {"Enabled": true}},
      {"WebSessionSummaryConfig": {"Enabled": true}}
    ]'
```

## Step 3: Use intent predictions
<a name="predictive-intents-step-3-use"></a>

You can use intent predictions in the following ways:
+ **Target outbound campaigns** – Use intent filters in event triggers. For more information, see [Use Predictive Insights with Outbound Campaigns](predictive-insights-outbound-campaigns.md).
+ **Give Connect AI agents context** – For more information, see [Use Predictive Insights for proactive self-service and agent assistance](predictive-insights-connect-ai-agents.md).
+ **Personalize your own applications** – Retrieve predictions by using the [BatchGetIntentForProfile](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-customer-profiles_BatchGetIntentForProfile.html) API.

**Example request and response**

```
aws customer-profiles batch-get-intent-for-profile \
    --region your-region \
    --domain-name your-domain-name \
    --intent-domain DEFAULT \
    --intents PRICE_SENSITIVITY UPGRADE_UPSELL_PROPENSITY WEB_SESSION_SUMMARY LAST_SEARCH_INTENT \
    --key-name _profileId \
    --key-values some-profile-id

{
    "Intents": [
        {
            "IntentType": "PRICE_SENSITIVITY",
            "Value": "LOW"
        },
        {
            "IntentType": "UPGRADE_UPSELL_PROPENSITY",
            "Value": "HIGH"
        },
        {
            "IntentType": "WEB_SESSION_SUMMARY",
            "Summary": "The user is browsing the menu, searched for 'Chicken Burrito', added Caesar Salad and Margherita Pizza to the cart, and purchased Spicy Ramen. They appear to be exploring menu options and are ready to buy."
        },
        {
            "IntentType": "LAST_SEARCH_INTENT",
            "Summary": "Chicken Burrito"
        }
    ],
    "Errors": []
}
```

The API can partly succeed. If it can't return an Intent Type, that type appears in `Errors` instead of `Intents`:

```json
"Errors": [
    {
        "IntentType": "UPGRADE_UPSELL_PROPENSITY",
        "Code": "INTENT_NOT_ENABLED",
        "Message": "This intent is not enabled for the domain. Enable the intent, and try again."
    }
]
```

## When a prediction isn't available
<a name="predictive-intents-no-prediction"></a>

A prediction might not be available in the following situations:
+ The profile has fewer than three clickstream events in its recent activity.
+ Required event or page content attributes are missing.
+ The Intent Type isn't turned on.
+ The prediction hasn't been generated yet.
+ The request failed or was throttled.

Design your customer experience so that it works without a prediction. For example, a Connect AI agent continues the conversation without the prediction, and an event trigger with an intent filter doesn't send the message.

## Data considerations
<a name="predictive-intents-data-considerations"></a>

To get accurate predictions, follow these guidelines:
+ **Collect events.** Capture events that show customer intent, such as searches, product views, selections, and cart actions. Avoid frequent, low-value events, such as scroll and heartbeat events. Each profile needs at least three events to generate a prediction.
+ **Include required fields.** Each clickstream event must include the following fields: `EventType`, `EventTimestamp`, `Page.Title`, `Page.Location`. The element click event should include: `Element.Type`, `Element.Context`, `Element.Text`; the form submit event should include: `Form.Name`, `Form.Inputs`; the search event should include `Search.Query`. For the above field definition, please [refer to the Customer Profiles standard-web-analytics-object-fields definition](standard-web-analytics-object-fields.md).
+ **Include the page content** surrounding the click up to 2KB. Some Intent Types use page content in addition to events.
+ **Keep profile IDs consistent.** Make sure that all events from a customer are associated with the same profile.
+ **Plan for the object limit.** Clickstream events count toward the Customer Profiles limit on objects per profile, which all object types share. When a profile reaches the limit, Customer Profiles removes the oldest objects first. This can reduce the amount of history that Predictive Intents can use.