---
title: "How to create a retention flow triggered off of RFM groups and customer behavior changes"
description: "Learn how to build a retention flow based on RFM properties to target customers who have not recently purchased. Retention flows are useful drivers in helping to win back customers, reaching them at the right time with the right message. You can automatically reach these subscribers at the point in which their customer group changes, potentially decreasing revenue and churn risks."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/25408596027547"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/25408596027547.md"
locale: "en-us"
category: "Advanced KDP & Personalization"
section: "Customer insights"
updated: "2026-10-29"
---

# How to create a retention flow triggered off of RFM groups and customer behavior changes

## You will learn

Learn how to build a retention flow based on RFM properties to target customers who have not recently purchased. Retention flows are useful drivers in helping to win back customers, reaching them at the right time with the right message. You can automatically reach these subscribers when they join a segment based on their RFM group, potentially decreasing revenue and churn risks. 

**📝 Note:** [Advanced KDP](https://help.klaviyo.com/hc/en-us/articles/17655007276059.md) and [Personalization](https://help.klaviyo.com/hc/en-us/articles/33789259613595.md) are paid add-ons to Klaviyo’s standard marketing application. RFM analysis is also available during an active trial of either product. Head to our [billing guide](https://help.klaviyo.com/hc/en-us/articles/115000976672.md) to learn about how to purchase these plans.

## Before you begin

Your account needs to meet these requirements to use the RFM report:

- Have at least 500 customers who have placed an order.
Note that this does not refer to total profiles, but rather the number of people who have actually made an order with your business.

- You have an ecommerce integration (e.g., Shopify, BigCommerce, Magento, etc.) or use the Klaviyo API to send placed orders.

- You have at least 180 days of order history and have orders within the last 30 days.

- You have at least some customers who have placed 3 or more orders.

- Only Owners, Admins, Managers, and Analysts can access this report. To create and turn on the flow, you need an Owner, Admin, or Manager role.



**📝 Note:** If you have created a [new custom metric](https://help.klaviyo.com/hc/en-us/articles/22311085738395.md) to use in your RFM report, it may take up to 48 hours for this change to be reflected.

## How to create the flow

You can explore the [flows library](https://help.klaviyo.com/hc/en-us/articles/115002774932.md#h_01H9JGTZ8Q0PAF1FY71QDZBJ7M) to use one of the pre-built templates or follow the guide below to create a custom retention flow. In either case, it's important to trigger your flows based on your RFM group segments.

### Create your segment

If you have not already done so, you will need to create a segment that includes your *At Risk* or *Needs Attention* customers. If you have already set up your segment, skip ahead to the [section on creating your flow below](#h_01JCNG895SY86NN11V59RY58SJ). 

1. Navigate to **Personalization** > **Customer insights** > **RFM analysis**. 

2. Scroll to find the **RFM segments** card and click on **Create segment**.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/7d7dde4a47e8dc3097425a7e9a53836d05e01775-1600x675.png?auto=format)

If the card does not show **Create segment**, go to **Audience > Lists & segments** and select **Create > Segment**. If a naming window opens, enter a name and any tags, then click **Create segment** to open the builder.

1. In the segment builder, name your segment if you have not already done so and add any applicable tags from the *Tags* dropdown. For example, you could name your segment “Needs Attention or At Risk segment” or “Needs Attention or At Risk segment - one-time buyers only” depending on how you plan to set up your flow.

2. In the **Definition** section, choose **Properties about someone**. 

3. Under the **Property** dropdown, choose the **Current RFM group** option. Make sure that *equals* is chosen in the second dropdown.

4. In the *Enter a value* field, find and choose **At Risk**. Make sure that *Type* is set to *Text*. Your segment should look like the image below.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/2f010269702b5b2217744326aab037b30ff78c3a-1600x155.png?auto=format)

5. **Click Add condition**. Make sure that your connector is set to *OR*.

6. Repeat the property condition above, but instead of choosing *At Risk*, choose **Needs Attention** as your RFM group.
Once done, the first 2 conditions of your segment should look like the below and include anyone who is in your *Needs Attention* or *At Risk* groups.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/39fc941bf2f43b0f0da989e4c2de9cee79991304-1600x338.png?auto=format)

7. Optional: *At Risk* and *Needs Attention* groups can include those who have made at least 1 purchase in the past. However, if you would like to target customers who have purchased a certain number of times in the past (e.g., only one-time buyers), but are now in the *At Risk* or *Needs Attention* groups, you can use **Add condition** to add an *AND* connector. 

8. Optional: choose **What someone has done (or not done)**.

9. Optional: select your *Placed Order* metric.

10. Optional: choose **equals** and enter the number of orders you want to target. Then select **over all time**. This should look like the example below.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/252bed9d02dbe5bdd8173c1d0f66af0c2d515bbe-1322x220.png?auto=format)

11. Click **Create segment** to save your segment.



### Set up your flow

1. Head to the **Flows** tab.

2. Click **Create flow**.

3. Click **Build your own.**

4. In the *Create flow* window, name your flow something recognizable and select any tags you want it to have. For example, something like “At Risk or Needs Attention flow.”




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/9023dacfb681814335226382183d2c89a6a8340a-680x788.png?auto=format)

5. Click **Create manually**. If the window has a **Create flow** button instead, click that button.

6. In the right-hand trigger panel, select **Added to segment**.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/88464e7f3705dfbf6ed44d48c35253147a34496e-678x254.png?auto=format)

7. In the *Added to segment* section, find and select your segment. This should be the segment that includes your *At Risk* or *Needs Attention* groups. Your trigger should look similar to the example below.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/6c9cb1127f7eab68ce8cbb20ad39a919adafd1b7-686x612.png?auto=format)

8. Choose **Re-entry criteria** before saving the trigger. Keep **No re-entry** to let each customer enter once. To contact customers again after they leave and rejoin the segment, select **Allow re-entry**, or select **Allow re-entry after a time period** and enter the minimum time between entries.

9. Click **Save** when you are done creating your trigger. Then click **Confirm and save** on the pop-up to save your trigger.

10. Drag in your first retention-style email message from the left-side panel. This should be a message welcoming back your customers.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/f68ad1f18c928d230d9a26da228e750d19eb4386-488x414.png?auto=format)

11. Drag in a time delay after this first message so that your customers do not immediately receive all messages in the flow. It is suggested to wait at least 2-3 days before a customer receives their next message.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/fee1574422762249adf0f412234594bacca43766-498x588.png?auto=format)

12. Drag in your second retention-style email message from the left-side panel. This should be a message that is different from your first email and encourages your customers to come back and visit your store.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/ab3846d8cc031bd16a41cda1ae623503de1c98da-480x872.png?auto=format)

13. Optional: if you want to add further messages to your flow, add another time delay. Make sure this is at least 2-3 days after your last message.

14. Optional: drag in your third email message from the left-side panel. This message should be different from your first 2 messages and could include things like time-sensitive discounts or offers.

15. Configure each email: select it, enter its subject line and sender details, and click **Select template** to build the message. Preview the content and save your changes before returning to the flow builder.

16. When you are done creating your flow, click **Review and turn on** (or **Update status** for a flow that already has active messages) in the upper right and choose *Live* or *Manual*. Configured messages set to Live are sent automatically, while a manual flow requires you to manually review and send all scheduled messages. Learn more about [flow statuses](https://help.klaviyo.com/hc/en-us/articles/115002774932.md#h_01H9JGTZ8RVQANQHGVRJ6V4W63).

17. Keep **Update status now** selected, then click **Save**.



The flow starts when someone newly joins your segment. Moving between *At Risk* and *Needs Attention* while remaining in the combined segment does not start it again. Turning on the flow also does not automatically include customers who are already in the segment. To include them, follow the steps to [add past profiles to a flow](https://help.klaviyo.com/hc/en-us/articles/360049924272.md).

## Retention email best practices

### Use splits

You can use a [split](https://help.klaviyo.com/hc/en-us/articles/115003872171.md) based on a customer’s purchase history or RFM group to send different product recommendations. This way you can target customers with products related to what they have previously purchased or highlight best-selling products that they may be interested in based on their RFM group (e.g., lower cost or entry-level items).

### Use template tags

It’s important that customers feel as though the email they are receiving is completely relevant and personal to them. Consider using [template tags](https://help.klaviyo.com/hc/en-us/articles/4408802648731.md) to pull in information from the customer’s profile to personalize the email to them. Pull in simple items like first name or region, or use more advanced techniques to pull in items they may have recently viewed, especially for emails later in the flow once you have initially re-engaged them. Additionally, if you need to better align your data and make it more actionable, consider [data transformation](https://help.klaviyo.com/hc/en-us/articles/17760400736539.md) to standardize these profile properties. 

### Convert an HTML template for drag-and-drop editing

If your existing design is an HTML template, you can create a drag-and-drop copy before tailoring its blocks for your RFM groups. The original HTML template is kept.

1. Navigate to **Content > Templates** and find your saved HTML template. Open its menu and select **Clone to drag and drop**.

2. Open **Converted templates** to check the conversion status. When the copy is **Ready to use**, open it and review its layout, links, and personalized content.

3. Use the converted template when choosing content for your flow email. If the email already has a template, use **Change template** from its template menu to select the converted copy, then preview the email before sending.



### Use show/hide logic in existing emails

You can also [use the drag-and-drop editor’s ](https://help.klaviyo.com/hc/en-us/articles/7655965301531.md)[*Show/hide logic* ](https://help.klaviyo.com/hc/en-us/articles/7655965301531.md)[feature](https://help.klaviyo.com/hc/en-us/articles/7655965301531.md) to tailor individual blocks or sections within your existing emails and target those just in the *Needs Attention* or *At Risk* RFM groups. 

#### *Needs Attention* content

Since customers in this group are more likely to engage than *At Risk* customers, and may have moved into this group after being a prior *Loyal* or *Recent* member, you may want‌ to consider the following email blocks:

- Discounts or incentives

- Show their current loyalty points status

- Similar or adjacent products to ones they have purchased before

- Your most viewed products

- Your highest rated products

- Your newest products



#### *At Risk* content

*At Risk* customers are more highly susceptible to churn and it may be a longer time since their last purchase than *Needs Attention* members. In addition to the above types of messages, you may want‌ to consider the following for customers in the *At Risk* group:

- Lower cost or entry level items, including those that also are:

  - Similar or adjacent products to ones they have purchased before

  - Your most viewed products

  - Your highest rated products



### Run A/B tests

Use A/B tests to continue to refine what email content is motivating your *Needs Attention* or *At Risk* RFM groups to purchase and move out of these groups.

For example, you may want to test different product recommendations based on:

- Your best-selling products

- Similar or adjacent products to ones they have purchased before

- Refills or reorders of previously purchased products, if applicable

- Your most viewed products

- Your highest rated products

- Your newest products



Additionally, make sure to test things like your subject line, send time, and how many emails you send in a specific period, to see what may help motivate these customer groups. You may want to use subject lines along with your content that creates a sense of urgency. 

Learn more about [A/B testing your flow emails](https://help.klaviyo.com/hc/en-us/articles/6960371049115.md).

## Additional resources

- [How to build a segment using RFM properties](https://help.klaviyo.com/hc/en-us/articles/18193920339483.md)
  Learn how to use RFM values and customer groupings as properties in your segments. Using RFM properties in a segment is useful for creating segment-based recommendations in your marketing content. For example, you may want to provide discounts to some of your current At Risk or Inactive customers, or use cross-selling content with customers in your Recent group.

- [How to strategically use RFM properties in campaigns and flows](https://help.klaviyo.com/hc/en-us/articles/18194102384539.md)
  Learn how to use RFM (recency, frequency, and monetary) properties to target specific types of campaigns and content to your customer groups. Either by using the profile properties themselves or by using a segment with the RFM properties, you can tailor your marketing even further.

- [Ruffwear uses Klaviyo CDP to drive incremental revenue and improve margins (case study)](https://www.klaviyo.com/customers/case-studies/ruffwear-cdp)
