> ## Documentation Index
> Fetch the complete documentation index at: https://help.experro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recently Purchased

The **Recently Purchased** algorithm capitalizes on a shopper’s most recent transactions to suggest complementary products. By leveraging the user’s latest purchase history, you can deliver highly relevant cross-sell opportunities and keep customers engaged with items that naturally align with their current interests.

<img src="https://mintcdn.com/experro/4fPtPqhyselHfqmM/images/discovery/rp_example.png?fit=max&auto=format&n=4fPtPqhyselHfqmM&q=85&s=6e40966dbb64363cff2b64927952debd" alt="" width="1348" height="532" data-path="images/discovery/rp_example.png" />

<Tip>Recommended Placements
<br /><br />**Order Confirmation Page**: Upsell complementary items right after a purchase completes.\
<br />**Product Pages**: Suggest related accessories (e.g., laptops & laptop bags) based on the latest order.\
<br />**Cart**: Introduce add-ons or warranty products that pair with the recently purchased item.</Tip>

## How It Works

1. **Purchase History Retrieval**\
   Fetches the user’s last N orders (configurable, e.g., 3–5 most recent transactions).

2. **Complementary Item Identification**\
   Analyzes attributes (category, tags, brand) of those purchased products to find related or accessory items.

3. **Dynamic Updating**\
   Continuously refreshes suggestions in real time as new purchases occur, ensuring recommendations reflect the shopper’s evolving preferences.

## Supported Rule Types

* **Global**
* **Home Page**
* **Category**
* **Product**
* **Cart**
* **Search**

## When to Use

* **Post-Purchase Cross-Sell:** Drive incremental revenue by offering accessories and complementary products immediately after a sale.
* **Re-Engagement:** Retain and re-engage customers by reminding them of items that go well with their last purchase.
* **Subscription & Consumables:** Ideal for consumable goods—remind users to reorder refills or related consumables.

## Example

A shopper buys a **Yoga Mat**:

1. On the **Order Confirmation** page, the **Recently Purchased** widget displays complementary items like yoga blocks, straps, and towels.
2. When the user visits the **Cart** for a new purchase, they see prompts to add matching gear based on their last order.

By surfacing contextually relevant items tied to recent purchases, you create seamless, value-driven cross-sell journeys that boost average order value and deepen customer loyalty.
