# How to set up an email sunset flow

Sunset emails help validate whether inactive or low-engagement users still wish to receive your communications. This process helps improve list hygiene and protect your sender reputation. 

Follow the steps below to automate an email sunset flow using [Customer Journey](/product/customer-journey/pushwoosh-journey-overview/):

## Create a new journey

1. Go to **Campaigns → Customer Journey Builder**, then click **Create Campaign → Email**.

2. Select **Build a Journey from Scratch** to start configuring your journey.

## Configure the Audience-based entry element 

Use an [Audience-based Entry](/product/customer-journey/journey-elements/#audience-based-entry) to target users you want to reconfirm.  

For example, you can target users who haven’t opened any emails in the last 90 days. To do this, in the Audience-based Entry element, select an [existing segment](/product/audience-data-and-segmentation/segmentation/) or click **Create Segment**. 

![Set the Audience-based entry element ](/lifecycle-marketing-campaigns-how-to-set-up-email-sunset-flow-1.webp)

If you're creating a new segment, in the Segment editor, name the segment (e.g., **"Didn't open for 90 days"**) and configure it with the following criteria:

* **Event:** PW\_EmailOpen  
* **Condition:** never  
* **Timeframe:** during the last 90 days

![Create a segment](/lifecycle-marketing-campaigns-how-to-set-up-email-sunset-flow-2.webp)

This configuration filters users who haven’t opened any emails within the past 90 days, allowing you to target disengaged recipients for reconfirmation.

Click **Save** to create and use the segment.

## Add the Email element

Drag an [Email element](/product/customer-journey/journey-elements/#email) onto the canvas and select a sunset email preset or create a new one. Your message should clearly ask users to confirm whether they still want to receive emails from you.

Make sure the email contains a confirmation link that triggers the [default PW\_EmailLinkClicked event](/product/audience-data-and-segmentation/events/default-events/#pw_emaillinkclicked) when clicked. This link is essential for tracking user interaction and progressing users through the reconfirmation flow.
<Aside type="note" title="Example email content">

***Subject:** Do You Still Want to Hear from Us?*

***Body:***  
 *We noticed you haven’t engaged with our emails in a while. If you'd still like to receive updates, news, and special offers, please confirm by clicking the link below:*

*👉 \[Yes, keep me subscribed\]*

*If you don’t respond, we’ll stop sending you emails to avoid cluttering your inbox.*

*Thank you for being with us\!*
</Aside>



## Add a Wait for trigger element 

1. After the Email element, drag a [Wait for Trigger element](/product/customer-journey/journey-elements/#wait-for-trigger) onto the canvas to monitor whether the user clicks the confirmation link.

2. Set the waiting period, for example, 3 days, to specify how long the system should wait for a response.

3. Next, configure a trigger branch to detect users who interact with the confirmation link:

* Set the **Branch Name** to something like Reconfirmed.

* Under **Event**, choose PW\_EmailLinkClicked.  
   This event is triggered when a user clicks the confirmation link in the email.

![Set the Wait for trigger element](/lifecycle-marketing-campaigns-how-to-set-up-email-sunset-flow-3.webp)

A **Not Triggered** branch is created automatically. Any users who do not click the link within the specified waiting period will follow this path.

4. Click **Save** to apply the changes and continue building the Journey.

## Update the user profile based on response

**Triggered Path**  
After the user clicks the confirmation link, you can optionally send a thank-you email or continue with regular communication as part of your engagement strategy. Then, connect this path to an [Exit element](/product/customer-journey/journey-elements/#exit-from-journey) to complete the journey for confirmed users.

**Not Triggered path**  
 For users who do not click the confirmation link within the specified wait period:

1. Add an **Update User Profile** element to the "Not Triggered" branch.

2. Set the tag **Unsubscribed Emails \= true** to exclude these users from your email list.

![Update the user profile](/lifecycle-marketing-campaigns-how-to-set-up-email-sunset-flow-4.webp)

3. Connect this path to an [Exit element](/product/customer-journey/journey-elements/#exit-from-journey) as well.

![Sunset journey](/lifecycle-marketing-campaigns-how-to-set-up-email-sunset-flow-5.webp)

## Activate the Journey

Click **Launch campaign** to launch the reconfirmation journey.